16 #ifndef KRATOSMULTIPHYSICS_MODEL_PART_WRAPPER_H
17 #define KRATOSMULTIPHYSICS_MODEL_PART_WRAPPER_H
43 : mModelPart(mModelPart), mFixedNodes(fixedNodes), pmParentModelPart(NULL) {
49 : mModelPart(mModelPart), mFixedNodes(fixedNodes), pmParentModelPart(parent) {
79 void updateNodePos(
const int nodeId,
const float x,
const float y,
const float z);
114 void addNodes(
int *nodeIds,
int nodeCount);
116 void addElements(
int *elementIds,
int elementCount);
160 std::vector<NodeType::Pointer> &mFixedNodes;
164 float *pmXCoordinates;
165 float *pmYCoordinates;
166 float *pmZCoordinates;
170 float *pmSurfaceStress;
171 bool mStressResultsEnabled;
Definition: id_translator.h:30
Definition: mesh_converter.h:35
Definition: model_part_wrapper.h:38
ConditionType * getCondition(int id)
Definition: model_part_wrapper.cpp:364
ElementType ** getElements()
Definition: model_part_wrapper.cpp:350
bool hasNodalVariable1d(Kratos::Variable< double > &variable)
Definition: model_part_wrapper.cpp:416
int getTrianglesCount()
Definition: model_part_wrapper.cpp:65
int getNumberOfElements()
Definition: model_part_wrapper.cpp:360
double * getNodalVariable1d(Kratos::Variable< double > &variable)
Definition: model_part_wrapper.cpp:385
ModelPartWrapper(Kratos::ModelPart &mModelPart, std::vector< NodeType::Pointer > &fixedNodes)
Definition: model_part_wrapper.h:42
void removeElement(int id)
Definition: model_part_wrapper.cpp:282
ModelPart & getKratosModelPart()
Definition: model_part_wrapper.cpp:214
void enableSurfaceStressResults()
Definition: model_part_wrapper.cpp:190
float * getYCoordinates()
Definition: model_part_wrapper.cpp:38
ModelPartWrapper(Kratos::ModelPart &mModelPart, std::vector< NodeType::Pointer > &fixedNodes, ModelPartWrapper *parent)
Definition: model_part_wrapper.h:47
NodeType ** getNodes()
Definition: model_part_wrapper.cpp:331
void recreateProcessedMesh()
Definition: model_part_wrapper.cpp:238
int getNumberOfNodes()
Definition: model_part_wrapper.cpp:342
int getNodesCount()
Definition: model_part_wrapper.cpp:46
NodeType * createNewNode(int id, double x, double y, double z)
Definition: model_part_wrapper.cpp:255
~ModelPartWrapper()
Definition: model_part_wrapper.cpp:204
bool hasSubmodelPart(char *name)
Definition: model_part_wrapper.cpp:30
void updateMaxElementId(int maxId)
Definition: model_part_wrapper.cpp:228
ElementType * createNewElement(char *name, int id, int *nodeIds)
Definition: model_part_wrapper.cpp:260
ModelPartWrapper * getSubmodelPart(char *name)
Definition: model_part_wrapper.cpp:210
void updateMaxNodeId(int maxId)
Definition: model_part_wrapper.cpp:233
NodeType * getNode(int id)
Definition: model_part_wrapper.cpp:327
int getMaxNodeId()
Definition: model_part_wrapper.cpp:223
void retrieveResults()
Definition: model_part_wrapper.cpp:160
ElementType * getElement(int id)
Definition: model_part_wrapper.cpp:346
void removeCondition(int id)
Definition: model_part_wrapper.cpp:286
float * getZCoordinates()
Definition: model_part_wrapper.cpp:42
int getNumberOfConditions()
Definition: model_part_wrapper.cpp:377
void updateNodePos(const int nodeId, const float x, const float y, const float z)
Definition: model_part_wrapper.cpp:69
ConditionType ** getConditions()
Definition: model_part_wrapper.cpp:368
ConditionType * createNew2dCondition(char *name, int id, int *nodeIds)
Definition: model_part_wrapper.cpp:269
bool hasNodalVariable3d(Kratos::Variable< Kratos::array_1d< double, 3 >> &variable)
Definition: model_part_wrapper.cpp:421
ModelPartWrapper * createSubmodelPart(char *name)
Definition: model_part_wrapper.cpp:250
int * getTriangles()
Definition: model_part_wrapper.cpp:50
int getMaxElementId()
Definition: model_part_wrapper.cpp:218
void removeNode(int id)
Definition: model_part_wrapper.cpp:278
void addConditions(int *conditionIds, int elementCount)
Definition: model_part_wrapper.cpp:304
float * getXCoordinates()
Definition: model_part_wrapper.cpp:34
void addElements(int *elementIds, int elementCount)
Definition: model_part_wrapper.cpp:297
double * getNodalVariable3d(Kratos::Variable< Kratos::array_1d< double, 3 >> &variable)
Definition: model_part_wrapper.cpp:400
float * getSurfaceStress()
Definition: model_part_wrapper.cpp:200
void addNodes(int *nodeIds, int nodeCount)
Definition: model_part_wrapper.cpp:290
IdTranslator * getIdTranslator()
Definition: model_part_wrapper.cpp:381
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
Definition: id_translator.h:28
z
Definition: GenerateWind.py:163
y
Other simbols definition.
Definition: generate_axisymmetric_navier_stokes_element.py:54
x
Definition: sensitivityMatrix.py:49