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::CopyPropertiesModeler Class Reference

Copy the properties from one model part to another. More...

#include <copy_properties_modeler.h>

Inheritance diagram for Kratos::CopyPropertiesModeler:
Collaboration diagram for Kratos::CopyPropertiesModeler:

Public Member Functions

Pointer Definition
 KRATOS_CLASS_POINTER_DEFINITION (CopyPropertiesModeler)
 
Life Cycle
 CopyPropertiesModeler ()
 Default constructor. More...
 
 CopyPropertiesModeler (Model &rModel, Parameters ModelerParameters)
 Constructor with Model and Parameters. More...
 
 CopyPropertiesModeler (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart)
 Constructor with origin and destination model parts. More...
 
 CopyPropertiesModeler (CopyPropertiesModeler const &rOther)=delete
 Copy constructor. More...
 
 ~CopyPropertiesModeler () override=default
 Destructor. More...
 
Operators
CopyPropertiesModeleroperator= (CopyPropertiesModeler const &rOther)=delete
 Assignment operator. More...
 
Stages
void SetupModelPart () override
 Create a copy of the properties from the origin ModelPart to the destination ModelPart. More...
 
Input and output
std::string Info () const override
 Turn back information as a string. 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)
 
virtual void PrintInfo (std::ostream &rOStream) const
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream) const
 Print object's data. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (Modeler)
 Pointer definition of Modeler. More...
 

Operations

Modeler::Pointer Create (Model &rModel, const Parameters ModelParameters) const override
 Creates the Modeler Pointer and returns a pointer to a new CopyPropertiesModeler. More...
 
const Parameters GetDefaultParameters () const override
 Get the Default Parameters object. More...
 

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

Copy the properties from one model part to another.

Author
Miguel Maso Sotomayor

The properties of the elements and conditions of the destination model part are replaced by the copies.

Constructor & Destructor Documentation

◆ CopyPropertiesModeler() [1/4]

Kratos::CopyPropertiesModeler::CopyPropertiesModeler ( )
inline

Default constructor.

◆ CopyPropertiesModeler() [2/4]

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

Constructor with Model and Parameters.

Parameters
rModelReference of the Model
ModelerParametersParameters of the Modeler

◆ CopyPropertiesModeler() [3/4]

Kratos::CopyPropertiesModeler::CopyPropertiesModeler ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart 
)

Constructor with origin and destination model parts.

Parameters
rOriginModelPartReference of the origin ModelPart
rDestinationModelPartReference of the destination ModelPart

◆ CopyPropertiesModeler() [4/4]

Kratos::CopyPropertiesModeler::CopyPropertiesModeler ( CopyPropertiesModeler const &  rOther)
delete

Copy constructor.

◆ ~CopyPropertiesModeler()

Kratos::CopyPropertiesModeler::~CopyPropertiesModeler ( )
overridedefault

Destructor.

Member Function Documentation

◆ Create()

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

Creates the Modeler Pointer and returns a pointer to a new CopyPropertiesModeler.

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

Reimplemented from Kratos::Modeler.

◆ GetDefaultParameters()

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

Get the Default Parameters object.

Returns
* This const

Reimplemented from Kratos::Modeler.

◆ Info()

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

Turn back information as a string.

Reimplemented from Kratos::Modeler.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::CopyPropertiesModeler::KRATOS_CLASS_POINTER_DEFINITION ( CopyPropertiesModeler  )

◆ operator=()

CopyPropertiesModeler& Kratos::CopyPropertiesModeler::operator= ( CopyPropertiesModeler const &  rOther)
delete

Assignment operator.

◆ SetupModelPart()

void Kratos::CopyPropertiesModeler::SetupModelPart ( )
overridevirtual

Create a copy of the properties from the origin ModelPart to the destination ModelPart.

Reimplemented from Kratos::Modeler.


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