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.
|
A tool to generate a copy of a ModelPart, sharing the same nodes as the original. More...
#include <connectivity_preserve_modeler.h>
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 | |
ConnectivityPreserveModeler & | operator= (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 |
A tool to generate a copy of a ModelPart, sharing the same nodes as the original.
|
default |
Default Constructor.
|
delete |
Copy constructor.
|
overridedefault |
Destructor.
|
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.
|
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.
|
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.
rOriginModelPart | The source ModelPart. |
rDestinationModelPart | The ModelPart to be filled by this function. |
rReferenceElement | The Element type for rDestinationModelPart. |
rReferenceBoundaryCondition | The Condition type for rDestinationModelPart. |
Reimplemented from Kratos::Modeler.
Kratos::ConnectivityPreserveModeler::KRATOS_CLASS_POINTER_DEFINITION | ( | ConnectivityPreserveModeler | ) |
|
delete |
Assignment operator.