15 #if !defined(KRATOS_MODELER_H_INCLUDED )
16 #define KRATOS_MODELER_H_INCLUDED
59 ModelerParameters.
Has(
"echo_level")
60 ? ModelerParameters[
"echo_level"].GetInt()
70 ModelerParameters.
Has(
"echo_level")
71 ? ModelerParameters[
"echo_level"].GetInt()
82 KRATOS_ERROR <<
"Trying to Create Modeler. Please check derived class 'Create' definition." << std::endl;
104 KRATOS_ERROR <<
"Calling the base Modeler class GetDefaultParameters. Please implement the GetDefaultParameters in your derived model class." << std::endl;
106 return default_parameters;
115 KRATOS_ERROR <<
"This modeler CAN NOT be used for mesh generation." << std::endl;
120 KRATOS_ERROR <<
"This modeler CAN NOT be used for mesh generation." << std::endl;
125 KRATOS_ERROR <<
"This modeler CAN NOT be used for node generation." << std::endl;
133 virtual std::string
Info()
const
176 rOStream << std::endl;
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
KratosComponents class encapsulates a lookup table for a family of classes in a generic way.
Definition: kratos_components.h:49
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Modeler to interact with ModelParts.
Definition: modeler.h:39
virtual void SetupModelPart()
Convert the geometry model or import analysis suitable models.
Definition: modeler.h:98
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: modeler.h:145
virtual void GenerateNodes(ModelPart &ThisModelPart)
Definition: modeler.h:123
Modeler(Parameters ModelerParameters=Parameters())
Default constructor.
Definition: modeler.h:55
KRATOS_CLASS_POINTER_DEFINITION(Modeler)
Pointer definition of Modeler.
std::size_t IndexType
Definition: modeler.h:48
virtual void GenerateModelPart(ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart, Element const &rReferenceElement, Condition const &rReferenceBoundaryCondition)
Definition: modeler.h:113
virtual Modeler::Pointer Create(Model &rModel, const Parameters ModelParameters) const
Creates the Modeler Pointer.
Definition: modeler.h:79
virtual ~Modeler()=default
Destructor.
virtual const Parameters GetDefaultParameters() const
This method provides the defaults parameters to avoid conflicts between the different constructors.
Definition: modeler.h:102
Parameters mParameters
Definition: modeler.h:155
virtual void PrepareGeometryModel()
Prepare or update the geometry model_part.
Definition: modeler.h:94
Modeler(Model &rModel, Parameters ModelerParameters=Parameters())
Constructor with Model.
Definition: modeler.h:65
virtual std::string Info() const
Turn back information as a string.
Definition: modeler.h:133
virtual void GenerateMesh(ModelPart &ThisModelPart, Element const &rReferenceElement, Condition const &rReferenceBoundaryCondition)
Definition: modeler.h:118
std::size_t SizeType
Definition: modeler.h:47
virtual void SetupGeometryModel()
Import or generate geometry models from external input.
Definition: modeler.h:90
SizeType mEchoLevel
Definition: modeler.h:157
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: modeler.h:139
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
#define KRATOS_ERROR
Definition: exception.h:161
#define KRATOS_API_EXTERN
Definition: kratos_export_api.h:57
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
bool Has(const std::string &ModelerName)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:24
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
void AddKratosComponent(std::string const &Name, ExplicitBuilderType const &ThisComponent)
Definition: register_factories.cpp:23
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432