67 using HashMapVectorIntType = std::unordered_map<VectorIndexType, std::size_t, VectorIndexHasherType, VectorIndexComparorType>;
91 : mrConditionsModelPart(rConditionsModelPart),
92 mrElementsModelPart(rElementsModelPart)
107 ) : mrConditionsModelPart(rModel.GetModelPart(ThisParameters[
"conditions_model_part_name"].GetString())),
108 mrElementsModelPart(rModel.GetModelPart(ThisParameters[
"elements_model_part_name"].GetString()))
112 Parameters default_parameters = GetDefaultParameters();
115 mEchoLevel = ThisParameters[
"echo_level"].
GetInt();
161 void Execute()
override;
171 void ExecuteInitializeSolutionStep()
override;
176 const Parameters GetDefaultParameters()
const override;
191 std::string
Info()
const override
193 return "AssignParentElementConditionsProcess";
199 rOStream <<
"AssignParentElementConditionsProcess";
219 HashMapVectorIntType mMapFaceIds;
269 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
void ExecuteInitialize() override
Definition: periodic_interface_process.hpp:37
This process initializes the variables related with the ALM.
Definition: assign_parent_element_conditions_process.h:49
AssignParentElementConditionsProcess(ModelPart &rConditionsModelPart, ModelPart &rElementsModelPart)
Constructor that takes the conditions and elements model parts.
Definition: assign_parent_element_conditions_process.h:87
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: assign_parent_element_conditions_process.h:203
std::unordered_map< VectorIndexType, std::size_t, VectorIndexHasherType, VectorIndexComparorType > HashMapVectorIntType
Define the map considered for face ids.
Definition: assign_parent_element_conditions_process.h:67
void operator()()
Executes the function.
Definition: assign_parent_element_conditions_process.h:149
~AssignParentElementConditionsProcess() override=default
Destructor.
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: assign_parent_element_conditions_process.h:197
ModelPart::NodesContainerType NodesArrayType
Nodes array type definition.
Definition: assign_parent_element_conditions_process.h:73
AssignParentElementConditionsProcess(Model &rModel, Parameters ThisParameters)
Constructs an AssignParentElementConditionsProcess object.
Definition: assign_parent_element_conditions_process.h:104
KRATOS_CLASS_POINTER_DEFINITION(AssignParentElementConditionsProcess)
Pointer definition of AssignParentElementConditionsProcess.
std::string Info() const override
Turn back information as a string.
Definition: assign_parent_element_conditions_process.h:191
std::vector< std::size_t > VectorIndexType
Definition of the vector indexes considered.
Definition: assign_parent_element_conditions_process.h:58
ModelPart::ConditionsContainerType ConditionsArrayType
Conditions array type definition.
Definition: assign_parent_element_conditions_process.h:76
AssignParentElementConditionsProcess(AssignParentElementConditionsProcess const &rOther)=delete
Copy constructor.
Geometry base class.
Definition: geometry.h:71
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
int GetInt() const
This method returns the integer contained in the current Parameter.
Definition: kratos_parameters.cpp:666
void RecursivelyValidateAndAssignDefaults(const Parameters &rDefaultParameters)
This function is designed to verify that the parameters under testing match the form prescribed by th...
Definition: kratos_parameters.cpp:1389
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
This is a key comparer between two vectors of indexes.
Definition: key_hash.h:351
This is a hasher between two vectors of indexes.
Definition: key_hash.h:333