10 #if !defined(KRATOS_TRANSFER_MODEL_PART_ELEMENTS_PROCESS_H_INCLUDED)
11 #define KRATOS_TRANSFER_MODEL_PART_ELEMENTS_PROCESS_H_INCLUDED
44 ModelPart &rGuestModelPart) : mrHostModelPart(rHostModelPart), mrGuestModelPart(rGuestModelPart)
73 const int nel = mrGuestModelPart.
Elements().size();
77 ModelPart::ElementsContainerType::iterator el_begin = mrGuestModelPart.
ElementsBegin();
80 for (
int i = 0;
i < nel;
i++)
82 ModelPart::ElementsContainerType::iterator
el = el_begin +
i;
84 mrHostModelPart.
Elements().push_back(*(
el.base()));
104 std::string
Info()
const override
106 return "TransferModelPartElementsProcess";
112 rOStream <<
"TransferModelPartElementsProcess";
197 rOStream << std::endl;
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ElementIterator ElementsBegin(IndexType ThisIndex=0)
Definition: model_part.h:1169
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
The base class for all processes in Kratos.
Definition: process.h:49
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: process.h:210
The base class for assigning a value to scalar variables or array_1d components processes in Kratos.
Definition: transfer_model_part_elements_process.hpp:32
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: transfer_model_part_elements_process.hpp:110
std::string Info() const override
Turn back information as a string.
Definition: transfer_model_part_elements_process.hpp:104
void Execute() override
Execute method is used to execute the TransferModelPartElementsProcess algorithms.
Definition: transfer_model_part_elements_process.hpp:69
TransferModelPartElementsProcess(ModelPart &rHostModelPart, ModelPart &rGuestModelPart)
Definition: transfer_model_part_elements_process.hpp:43
virtual ~TransferModelPartElementsProcess()
Destructor.
Definition: transfer_model_part_elements_process.hpp:52
TransferModelPartElementsProcess(TransferModelPartElementsProcess const &rOther)
Copy constructor.
KRATOS_CLASS_POINTER_DEFINITION(TransferModelPartElementsProcess)
Pointer definition of TransferModelPartElementsProcess.
void operator()()
This operator is provided to call the process as a function and simply calls the Execute method.
Definition: transfer_model_part_elements_process.hpp:59
#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
el
Definition: read_stl.py:25
integer i
Definition: TensorModule.f:17