14 #if !defined(KRATOS_MODEL_H_INCLUDED )
15 #define KRATOS_MODEL_H_INCLUDED
20 #include <unordered_map>
59 class KRATOS_API(KRATOS_CORE)
Model final
81 mRootModelPartMap.clear();
114 void DeleteModelPart(
const std::string& ModelPartName );
122 void RenameModelPart(
const std::string& OldName,
const std::string& NewName );
130 ModelPart& GetModelPart(
const std::string& rFullModelPartName);
138 const ModelPart& GetModelPart(
const std::string& rFullModelPartName)
const;
146 bool HasModelPart(
const std::string& rFullModelPartName)
const;
153 std::vector<std::string> GetModelPartNames()
const;
170 std::string
Info()
const;
173 void PrintInfo(std::ostream& rOStream)
const;
176 void PrintData(std::ostream& rOStream)
const;
231 std::map< std::string, std::unique_ptr<ModelPart> > mRootModelPartMap;
248 ModelPart* RecursiveSearchByName(
const std::string& rModelPartName,
ModelPart* pModelPart)
const;
255 std::vector<std::string> SplitSubModelPartHierarchy(
const std::string& rFullModelPartName)
const;
318 rOStream << std::endl;
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
Model(const Model &)=delete
ModelPart::IndexType IndexType
Definition of the index type.
Definition: model.h:66
Model()
Default constructor.
Definition: model.h:76
~Model()
Destructor.
Definition: model.h:79
void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: model.cpp:249
Model & operator=(const Model &)=delete
void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: model.cpp:256
KRATOS_CLASS_POINTER_DEFINITION(Model)
Pointer definition of Model.
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
std::size_t IndexType
Pointer definition of ModelPart.
Definition: model_part.h:105
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
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
def load(f)
Definition: ode_solve.py:307
def CreateModelPart(model_part)
Definition: test_utilities.py:61