KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This modeler combines several model parts into a new one. All input model parts should share the same root model part. More...
#include <combine_model_part_modeler.h>
Public Member Functions | |
Type Definitions | |
KRATOS_CLASS_POINTER_DEFINITION (CombineModelPartModeler) | |
Pointer definition of CombineModelPartModeler. More... | |
Life Cycle | |
CombineModelPartModeler () | |
CombineModelPartModeler (Model &rModel, Parameters ModelerParameters) | |
Constructor using a Model and Parameters. More... | |
virtual | ~CombineModelPartModeler ()=default |
Destructor. More... | |
Operations | |
const Parameters | GetDefaultParameters () const override |
This method provides the defaults parameters to avoid conflicts between the different constructors. More... | |
Modeler::Pointer | Create (Model &rModel, const Parameters ModelParameters) const override |
Creates the Modeler Pointer and returns a pointer to a new CombineModelPartModeler, created using the given input. More... | |
void | SetupModelPart () override |
Convert the geometry into an analysis suitable ModePart. More... | |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::Modeler | |
Modeler (Parameters ModelerParameters=Parameters()) | |
Default constructor. More... | |
Modeler (Model &rModel, Parameters ModelerParameters=Parameters()) | |
Constructor with Model. More... | |
virtual | ~Modeler ()=default |
Destructor. More... | |
virtual void | SetupGeometryModel () |
Import or generate geometry models from external input. More... | |
virtual void | PrepareGeometryModel () |
Prepare or update the geometry model_part. More... | |
virtual void | GenerateModelPart (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart, Element const &rReferenceElement, Condition const &rReferenceBoundaryCondition) |
virtual void | GenerateMesh (ModelPart &ThisModelPart, Element const &rReferenceElement, Condition const &rReferenceBoundaryCondition) |
virtual void | GenerateNodes (ModelPart &ThisModelPart) |
KRATOS_CLASS_POINTER_DEFINITION (Modeler) | |
Pointer definition of Modeler. More... | |
Protected Member Functions | |
Protected Operations | |
void | DuplicateElements (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart, const Element &rReferenceElement) const |
void | DuplicateConditions (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart, const Condition &rReferenceBoundaryCondition) const |
void | DuplicateCommunicatorData (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart) const |
void | DuplicateSubModelParts (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart) const |
void | CopyCommonData (ModelPart &rCombinedModelPart) const |
void | DuplicateMesh () const |
void | CreateSubModelParts () |
void | CreateCommunicators () |
void | PopulateCommunicators () |
void | PopulateLocalMesh (Communicator &rReferenceComm, Communicator &rDestinationComm, ModelPart &rDestinationModelPart) const |
void | ResetModelPart (ModelPart &rCombinedModelPart) const |
void | CheckOriginModelPartsAndAssignRoot () |
Serialization | |
class | Serializer |
Additional Inherited Members | |
Public Types inherited from Kratos::Modeler | |
typedef std::size_t | SizeType |
typedef std::size_t | IndexType |
Protected Attributes inherited from Kratos::Modeler | |
Parameters | mParameters |
SizeType | mEchoLevel |
This modeler combines several model parts into a new one. All input model parts should share the same root model part.
ProcessInfo is shallow-copied from root origin model part.
|
inline |
Kratos::CombineModelPartModeler::CombineModelPartModeler | ( | Model & | rModel, |
Parameters | ModelerParameters | ||
) |
Constructor using a Model and Parameters.
rModel | Reference of the Model |
ModelerParameters | Parameters of the discretization |
|
virtualdefault |
Destructor.
|
protected |
|
protected |
|
overridevirtual |
Creates the Modeler Pointer and returns a pointer to a new CombineModelPartModeler, created using the given input.
rModel | Reference of the Model |
ModelerParameters | Parameters of the discretization |
Reimplemented from Kratos::Modeler.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
This method provides the defaults parameters to avoid conflicts between the different constructors.
Reimplemented from Kratos::Modeler.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::Modeler.
Kratos::CombineModelPartModeler::KRATOS_CLASS_POINTER_DEFINITION | ( | CombineModelPartModeler | ) |
Pointer definition of CombineModelPartModeler.
|
protected |
|
protected |
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::Modeler.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::Modeler.
|
protected |
|
overridevirtual |
Convert the geometry into an analysis suitable ModePart.
Reimplemented from Kratos::Modeler.
|
friend |