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

A tool to generate a copy of a ModelPart, sharing the same nodes as the original. More...

#include <connectivity_preserve_modeler.h>

Inheritance diagram for Kratos::ConnectivityPreserveModeler:
Collaboration diagram for Kratos::ConnectivityPreserveModeler:

Public Member Functions

Type Definitions
 KRATOS_CLASS_POINTER_DEFINITION (ConnectivityPreserveModeler)
 
Life Cycle
 ConnectivityPreserveModeler ()=default
 Default Constructor. More...
 
 ConnectivityPreserveModeler (ConnectivityPreserveModeler const &rOther)=delete
 Copy constructor. More...
 
 ~ConnectivityPreserveModeler () override=default
 Destructor. More...
 
Operators
ConnectivityPreserveModeleroperator= (ConnectivityPreserveModeler const &rOther)=delete
 Assignment operator. More...
 
Operations
void GenerateModelPart (ModelPart &OriginModelPart, ModelPart &DestinationModelPart, const Element &rReferenceElement, const Condition &rReferenceBoundaryCondition) override
 Generate a copy of rOriginModelPart in rDestinationModelPart, using the given element and condtion types. More...
 
virtual void GenerateModelPart (ModelPart &OriginModelPart, ModelPart &DestinationModelPart, const Element &rReferenceElement)
 Generate a copy of rOriginModelPart in rDestinationModelPart, using the given element type. More...
 
virtual void GenerateModelPart (ModelPart &OriginModelPart, ModelPart &DestinationModelPart, const Condition &rReferenceCondition)
 Generate a copy of rOriginModelPart in rDestinationModelPart, using the given condition type. 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 Modeler::Pointer Create (Model &rModel, const Parameters ModelParameters) const
 Creates the Modeler Pointer. 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 SetupModelPart ()
 Convert the geometry model or import analysis suitable models. More...
 
virtual const Parameters GetDefaultParameters () const
 This method provides the defaults parameters to avoid conflicts between the different constructors. More...
 
virtual void GenerateMesh (ModelPart &ThisModelPart, Element const &rReferenceElement, Condition const &rReferenceBoundaryCondition)
 
virtual void GenerateNodes (ModelPart &ThisModelPart)
 
virtual std::string Info () const
 Turn back information as a string. More...
 
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...
 

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

A tool to generate a copy of a ModelPart, sharing the same nodes as the original.

Constructor & Destructor Documentation

◆ ConnectivityPreserveModeler() [1/2]

Kratos::ConnectivityPreserveModeler::ConnectivityPreserveModeler ( )
default

Default Constructor.

◆ ConnectivityPreserveModeler() [2/2]

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

Copy constructor.

◆ ~ConnectivityPreserveModeler()

Kratos::ConnectivityPreserveModeler::~ConnectivityPreserveModeler ( )
overridedefault

Destructor.

Member Function Documentation

◆ GenerateModelPart() [1/3]

void Kratos::ConnectivityPreserveModeler::GenerateModelPart ( ModelPart OriginModelPart,
ModelPart DestinationModelPart,
const Condition rReferenceCondition 
)
virtual

Generate a copy of rOriginModelPart in rDestinationModelPart, using the given condition type.

This function fills rDestinationModelPart using data obtained from rOriginModelPart. The conditions of rDestinationModelPart part use the same connectivity (and id) as in rOriginModelPart but their type is determined by rReferenceCondition. In this variant, elements are not copied. Note that both ModelParts will share the same nodes, as well as ProcessInfo and tables. SubModelParts and, in MPI, communicator data will be replicated in DestinationModelPart.

Parameters
rOriginModelPartThe source ModelPart.
rDestinationModelPartThe ModelPart to be filled by this function.
rReferenceConditionThe Condition type for rDestinationModelPart.

◆ GenerateModelPart() [2/3]

void Kratos::ConnectivityPreserveModeler::GenerateModelPart ( ModelPart OriginModelPart,
ModelPart DestinationModelPart,
const Element rReferenceElement 
)
virtual

Generate a copy of rOriginModelPart in rDestinationModelPart, using the given element type.

This function fills rDestinationModelPart using data obtained from rOriginModelPart. The elements of rDestinationModelPart part use the same connectivity (and id) as in rOriginModelPart but their type is determined by rReferenceElement. In this variant, conditions are not copied. Note that both ModelParts will share the same nodes, as well as ProcessInfo and tables. SubModelParts and, in MPI, communicator data will be replicated in DestinationModelPart.

Parameters
rOriginModelPartThe source ModelPart.
rDestinationModelPartThe ModelPart to be filled by this function.
rReferenceElementThe Element type for rDestinationModelPart.

◆ GenerateModelPart() [3/3]

void Kratos::ConnectivityPreserveModeler::GenerateModelPart ( ModelPart OriginModelPart,
ModelPart DestinationModelPart,
const Element rReferenceElement,
const Condition rReferenceBoundaryCondition 
)
overridevirtual

Generate a copy of rOriginModelPart in rDestinationModelPart, using the given element and condtion types.

This function fills rDestinationModelPart using data obtained from rOriginModelPart. The elements and conditions of rDestinationModelPart part use the same connectivity (and id) as in rOriginModelPart but their type is determined by rReferenceElement and rReferenceBoundaryCondition. Note that both ModelParts will share the same nodes, as well as ProcessInfo and tables. SubModelParts and, in MPI, communicator data will be replicated in DestinationModelPart.

Parameters
rOriginModelPartThe source ModelPart.
rDestinationModelPartThe ModelPart to be filled by this function.
rReferenceElementThe Element type for rDestinationModelPart.
rReferenceBoundaryConditionThe Condition type for rDestinationModelPart.

Reimplemented from Kratos::Modeler.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::ConnectivityPreserveModeler::KRATOS_CLASS_POINTER_DEFINITION ( ConnectivityPreserveModeler  )

◆ operator=()

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

Assignment operator.


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