64 mrModelPart(rModel.GetModelPart(Settings[
"model_part_name"].GetString())),
65 mSettings( Settings.WriteJsonString())
70 InitializeMemberVariables();
84 mrModelPart(rModelPart),
85 mSettings( Settings.WriteJsonString())
90 InitializeMemberVariables();
124 return Kratos::make_shared<ReplaceElementsAndConditionsProcess>(rModel, ThisParameters);
130 void Execute()
override;
138 "model_part_name" : "PLEASE_CHOOSE_MODEL_PART_NAME",
139 "element_name" : "PLEASE_CHOOSE_ELEMENT_NAME",
140 "condition_name" : "PLEASE_CHOOSE_CONDITION_NAME"
142 return default_parameters;
150 std::string
Info()
const override
152 return "ReplaceElementsAndConditionsProcess";
158 rOStream <<
"ReplaceElementsAndConditionsProcess";
188 void InitializeMemberVariables();
207 rOStream << std::endl;
Template struct for entity identifier.
Definition: entities_utilities.h:43
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
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
The base class for all processes in Kratos.
Definition: process.h:49
This methods replaces elements and conditions in a model part by a given name.
Definition: replace_elements_and_condition_process.h:43
ReplaceElementsAndConditionsProcess(Model &rModel, Parameters Settings)
Default constructor.
Definition: replace_elements_and_condition_process.h:60
~ReplaceElementsAndConditionsProcess() override=default
Destructor.
Parameters mSettings
The main model part where the elements and conditions will be replaced.
Definition: replace_elements_and_condition_process.h:172
ReplaceElementsAndConditionsProcess & operator=(ReplaceElementsAndConditionsProcess const &rOther)=delete
Assignment operator.
KRATOS_CLASS_POINTER_DEFINITION(ReplaceElementsAndConditionsProcess)
Pointer definition of ReplaceElementsAndConditionsProcess.
ReplaceElementsAndConditionsProcess(ReplaceElementsAndConditionsProcess const &rOther)=delete
Copy constructor.
EntitiesUtilities::EntitityIdentifier< Element > mElementIdentifier
The settings of the problem (names of the conditions and elements)
Definition: replace_elements_and_condition_process.h:173
Process::Pointer Create(Model &rModel, Parameters ThisParameters) override
This method creates an pointer of the process.
Definition: replace_elements_and_condition_process.h:119
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: replace_elements_and_condition_process.h:162
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: replace_elements_and_condition_process.h:156
ModelPart & mrModelPart
Definition: replace_elements_and_condition_process.h:171
ReplaceElementsAndConditionsProcess(ModelPart &rModelPart, Parameters Settings)
Default constructor.
Definition: replace_elements_and_condition_process.h:80
const Parameters GetDefaultParameters() const override
This method provides the defaults parameters to avoid conflicts between the different constructors.
Definition: replace_elements_and_condition_process.h:135
std::string Info() const override
Turn back information as a string.
Definition: replace_elements_and_condition_process.h:150
EntitiesUtilities::EntitityIdentifier< Condition > mConditionIdentifier
This variable stores the identifier of the elements.
Definition: replace_elements_and_condition_process.h:174
#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