10 #if !defined(KRATOS_COMPOSITE_CONDITION_H_INCLUDED )
11 #define KRATOS_COMPOSITE_CONDITION_H_INCLUDED
93 return mChildConditions.size();
98 void AddChild(ConditionType::Pointer pNewChildCondition);
103 return (mChildConditions)(ChildConditionId);
109 return (mChildConditions)[ChildConditionId];
116 mChildConditions.erase(ChildConditionId);
123 mChildConditions.erase(ThisChildCondition.
Id());
130 mChildConditions.erase(pThisChildCondition->Id());
135 return mChildConditions.begin();
140 return mChildConditions.begin();
145 return mChildConditions.end();
150 return mChildConditions.end();
155 return mChildConditions;
160 return ConditionsContainerType::Pointer(&mChildConditions);
165 mChildConditions = (*pOtherChildConditions);
170 return mChildConditions.GetContainer();
182 PropertiesType::Pointer pProperties)
const override;
192 GeometryType::Pointer pGeom,
193 PropertiesType::Pointer pProperties)
const override;
216 void GetDofList(DofsVectorType& rConditionalDofList,
const ProcessInfo& rCurrentProcessInfo)
const override;
221 void EquationIdVector(EquationIdVectorType& rResult,
const ProcessInfo& rCurrentProcessInfo)
const override;
226 void GetValuesVector(
Vector& rValues,
int Step = 0)
const override;
231 void GetFirstDerivativesVector(
Vector& rValues,
int Step = 0)
const override;
236 void GetSecondDerivativesVector(
Vector& rValues,
int Step = 0)
const override;
270 void Initialize(
const ProcessInfo& rCurrentProcessInfo)
override;
281 void InitializeNonLinearIteration(
const ProcessInfo& CurrentProcessInfo)
override;
286 void FinalizeSolutionStep(
const ProcessInfo& CurrentProcessInfo)
override;
308 void CalculateRightHandSide(
VectorType& rRightHandSideVector,
const ProcessInfo& rCurrentProcessInfo)
override;
316 void CalculateLeftHandSide (
MatrixType& rLeftHandSideMatrix,
const ProcessInfo& rCurrentProcessInfo)
override;
332 void CalculateDampingMatrix(
MatrixType& rDampingMatrix,
const ProcessInfo& rCurrentProcessInfo)
override;
377 int Check(
const ProcessInfo& rCurrentProcessInfo)
const override;
394 std::string
Info()
const override
396 std::stringstream buffer;
397 buffer <<
"Condition CompositeCondition #" << Id();
405 rOStream <<
"Condition CompositeCondition #" << Id();
444 bool mInitializedChildren;
455 void InitializeChildren();
461 template<
class TVariableType>
void SetValueToChildren(
const TVariableType& rThisVariable){
463 for (
ConditionIterator cn = mChildConditions.begin() ; cn != mChildConditions.end(); ++cn)
465 typename TVariableType::Type
const& rValue = this->
GetValue(rThisVariable);
466 cn->SetValue(rThisVariable,rValue);
474 virtual SizeType GetDofsSize(
const ProcessInfo& rCurrentProcessInfo);
492 void save(
Serializer& rSerializer)
const override;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Updated Total Lagrangian element for 2D and 3D geometries.
Definition: composite_condition.hpp:49
ConditionType & GetChild(IndexType ChildConditionId)
Definition: composite_condition.hpp:107
ConditionsContainerType::iterator ConditionIterator
Definition: composite_condition.hpp:57
ConditionsContainerType::Pointer pChildConditions()
Definition: composite_condition.hpp:158
SizeType NumberOfChildren() const
Definition: composite_condition.hpp:91
void RemoveChild(ConditionType &ThisChildCondition)
Definition: composite_condition.hpp:121
std::string Info() const override
Turn back information as a string.
Definition: composite_condition.hpp:394
ConditionConstantIterator ChildConditionsBegin() const
Definition: composite_condition.hpp:138
void RemoveChild(ConditionType::Pointer pThisChildCondition)
Definition: composite_condition.hpp:128
void RemoveChild(IndexType ChildConditionId)
Definition: composite_condition.hpp:114
ConditionConstantIterator ChildConditionsEnd() const
Definition: composite_condition.hpp:148
ConditionType::Pointer pGetChild(IndexType ChildConditionId)
Definition: composite_condition.hpp:101
ConditionIterator ChildConditionsEnd()
Definition: composite_condition.hpp:143
PointerVectorSet< ConditionType, IndexedObject > ConditionsContainerType
Definition: composite_condition.hpp:56
ConditionIterator ChildConditionsBegin()
Definition: composite_condition.hpp:133
Condition ConditionType
Definition: composite_condition.hpp:55
ConditionsContainerType::const_iterator ConditionConstantIterator
Definition: composite_condition.hpp:58
void SetChildConditions(ConditionsContainerType::Pointer pOtherChildConditions)
Definition: composite_condition.hpp:163
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: composite_condition.hpp:403
ConditionsContainerType::ContainerType & ChildConditionsArray()
Definition: composite_condition.hpp:168
ConditionsContainerType & ChildConditions()
Definition: composite_condition.hpp:153
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(CompositeCondition)
Counted pointer of CompositeCondition.
GeometryData::SizeType SizeType
Definition: composite_condition.hpp:59
Base class for all Conditions.
Definition: condition.h:59
std::size_t SizeType
Definition: condition.h:94
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
std::size_t SizeType
Definition: geometry_data.h:173
IndexType Id() const
Definition: indexed_object.h:107
boost::indirect_iterator< typename TContainerType::iterator > iterator
Definition: pointer_vector_set.h:95
std::vector< typename TDataType::Pointer > ContainerType
Definition: pointer_vector_set.h:90
boost::indirect_iterator< typename TContainerType::const_iterator > const_iterator
Definition: pointer_vector_set.h:96
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void SetValuesOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const std::vector< TDataType > &values, const ProcessInfo &rCurrentProcessInfo)
Definition: add_mesh_to_python.cpp:185
pybind11::list CalculateOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo)
Definition: add_mesh_to_python.cpp:142
void InitializeSolutionStep(ConstructionUtility &rThisUtil, std::string ThermalSubModelPartName, std::string MechanicalSubModelPartName, std::string HeatFluxSubModelPartName, std::string HydraulicPressureSubModelPartName, bool thermal_conditions, bool mechanical_conditions, int phase)
Definition: add_custom_utilities_to_python.cpp:45
TDataType Calculate(GeometryType &dummy, const Variable< TDataType > &rVariable)
Definition: add_geometries_to_python.cpp:103
Parameters GetValue(Parameters &rParameters, const std::string &rEntry)
Definition: add_kratos_parameters_to_python.cpp:53
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
ConditionsContainerType::iterator ConditionIterator
Definition: settle_model_structure_process.hpp:51
ModelPart::ConditionsContainerType ConditionsContainerType
Definition: find_conditions_neighbours_process.h:45
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
def load(f)
Definition: ode_solve.py:307