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.
List of all members
Kratos::CombineModelPartModeler Class Reference

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>

Inheritance diagram for Kratos::CombineModelPartModeler:
Collaboration diagram for Kratos::CombineModelPartModeler:

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
 

Detailed Description

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.

Author
Daniel Diez @ddiezrod

Constructor & Destructor Documentation

◆ CombineModelPartModeler() [1/2]

Kratos::CombineModelPartModeler::CombineModelPartModeler ( )
inline

◆ CombineModelPartModeler() [2/2]

Kratos::CombineModelPartModeler::CombineModelPartModeler ( Model rModel,
Parameters  ModelerParameters 
)

Constructor using a Model and Parameters.

Parameters
rModelReference of the Model
ModelerParametersParameters of the discretization

◆ ~CombineModelPartModeler()

virtual Kratos::CombineModelPartModeler::~CombineModelPartModeler ( )
virtualdefault

Destructor.

Member Function Documentation

◆ CheckOriginModelPartsAndAssignRoot()

void Kratos::CombineModelPartModeler::CheckOriginModelPartsAndAssignRoot ( )
protected

◆ CopyCommonData()

void Kratos::CombineModelPartModeler::CopyCommonData ( ModelPart rCombinedModelPart) const
protected

◆ Create()

Modeler::Pointer Kratos::CombineModelPartModeler::Create ( Model rModel,
const Parameters  ModelParameters 
) const
overridevirtual

Creates the Modeler Pointer and returns a pointer to a new CombineModelPartModeler, created using the given input.

Parameters
rModelReference of the Model
ModelerParametersParameters of the discretization
Returns
a Pointer to the new Modeler

Reimplemented from Kratos::Modeler.

◆ CreateCommunicators()

void Kratos::CombineModelPartModeler::CreateCommunicators ( )
protected

◆ CreateSubModelParts()

void Kratos::CombineModelPartModeler::CreateSubModelParts ( )
protected

◆ DuplicateCommunicatorData()

void Kratos::CombineModelPartModeler::DuplicateCommunicatorData ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart 
) const
protected

◆ DuplicateConditions()

void Kratos::CombineModelPartModeler::DuplicateConditions ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart,
const Condition rReferenceBoundaryCondition 
) const
protected

◆ DuplicateElements()

void Kratos::CombineModelPartModeler::DuplicateElements ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart,
const Element rReferenceElement 
) const
protected

◆ DuplicateMesh()

void Kratos::CombineModelPartModeler::DuplicateMesh ( ) const
protected

◆ DuplicateSubModelParts()

void Kratos::CombineModelPartModeler::DuplicateSubModelParts ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart 
) const
protected

◆ GetDefaultParameters()

const Parameters Kratos::CombineModelPartModeler::GetDefaultParameters ( ) const
overridevirtual

This method provides the defaults parameters to avoid conflicts between the different constructors.

Reimplemented from Kratos::Modeler.

◆ Info()

std::string Kratos::CombineModelPartModeler::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::Modeler.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::CombineModelPartModeler::KRATOS_CLASS_POINTER_DEFINITION ( CombineModelPartModeler  )

Pointer definition of CombineModelPartModeler.

◆ PopulateCommunicators()

void Kratos::CombineModelPartModeler::PopulateCommunicators ( )
protected

◆ PopulateLocalMesh()

void Kratos::CombineModelPartModeler::PopulateLocalMesh ( Communicator rReferenceComm,
Communicator rDestinationComm,
ModelPart rDestinationModelPart 
) const
protected

◆ PrintData()

void Kratos::CombineModelPartModeler::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::Modeler.

◆ PrintInfo()

void Kratos::CombineModelPartModeler::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::Modeler.

◆ ResetModelPart()

void Kratos::CombineModelPartModeler::ResetModelPart ( ModelPart rCombinedModelPart) const
protected

◆ SetupModelPart()

void Kratos::CombineModelPartModeler::SetupModelPart ( )
overridevirtual

Convert the geometry into an analysis suitable ModePart.

Reimplemented from Kratos::Modeler.

Friends And Related Function Documentation

◆ Serializer

friend class Serializer
friend

The documentation for this class was generated from the following files: