#include <model_part_wrapper.h>
|
| ModelPartWrapper (Kratos::ModelPart &mModelPart, std::vector< NodeType::Pointer > &fixedNodes) |
|
| ModelPartWrapper (Kratos::ModelPart &mModelPart, std::vector< NodeType::Pointer > &fixedNodes, ModelPartWrapper *parent) |
|
| ~ModelPartWrapper () |
|
ModelPartWrapper * | getSubmodelPart (char *name) |
|
bool | hasSubmodelPart (char *name) |
|
float * | getXCoordinates () |
|
float * | getYCoordinates () |
|
float * | getZCoordinates () |
|
int | getNodesCount () |
|
int * | getTriangles () |
|
int | getTrianglesCount () |
|
void | updateNodePos (const int nodeId, const float x, const float y, const float z) |
|
void | retrieveResults () |
|
void | enableSurfaceStressResults () |
|
float * | getSurfaceStress () |
|
ModelPart & | getKratosModelPart () |
|
void | recreateProcessedMesh () |
|
ModelPartWrapper * | createSubmodelPart (char *name) |
|
NodeType * | createNewNode (int id, double x, double y, double z) |
|
ElementType * | createNewElement (char *name, int id, int *nodeIds) |
|
ConditionType * | createNew2dCondition (char *name, int id, int *nodeIds) |
|
void | removeNode (int id) |
|
void | removeElement (int id) |
|
void | removeCondition (int id) |
|
void | addNodes (int *nodeIds, int nodeCount) |
|
void | addElements (int *elementIds, int elementCount) |
|
void | addConditions (int *conditionIds, int elementCount) |
|
int | getMaxElementId () |
|
int | getMaxNodeId () |
|
NodeType * | getNode (int id) |
|
NodeType ** | getNodes () |
|
int | getNumberOfNodes () |
|
ElementType * | getElement (int id) |
|
ElementType ** | getElements () |
|
int | getNumberOfElements () |
|
ConditionType * | getCondition (int id) |
|
ConditionType ** | getConditions () |
|
int | getNumberOfConditions () |
|
IdTranslator * | getIdTranslator () |
|
double * | getNodalVariable1d (Kratos::Variable< double > &variable) |
|
double * | getNodalVariable3d (Kratos::Variable< Kratos::array_1d< double, 3 >> &variable) |
|
bool | hasNodalVariable1d (Kratos::Variable< double > &variable) |
|
bool | hasNodalVariable3d (Kratos::Variable< Kratos::array_1d< double, 3 >> &variable) |
|
◆ ModelPartWrapper() [1/2]
CSharpKratosWrapper::ModelPartWrapper::ModelPartWrapper |
( |
Kratos::ModelPart & |
mModelPart, |
|
|
std::vector< NodeType::Pointer > & |
fixedNodes |
|
) |
| |
|
inline |
◆ ModelPartWrapper() [2/2]
◆ ~ModelPartWrapper()
ModelPartWrapper::~ModelPartWrapper |
( |
| ) |
|
◆ addConditions()
void ModelPartWrapper::addConditions |
( |
int * |
conditionIds, |
|
|
int |
elementCount |
|
) |
| |
◆ addElements()
void ModelPartWrapper::addElements |
( |
int * |
elementIds, |
|
|
int |
elementCount |
|
) |
| |
◆ addNodes()
void ModelPartWrapper::addNodes |
( |
int * |
nodeIds, |
|
|
int |
nodeCount |
|
) |
| |
◆ createNew2dCondition()
ConditionType * ModelPartWrapper::createNew2dCondition |
( |
char * |
name, |
|
|
int |
id, |
|
|
int * |
nodeIds |
|
) |
| |
◆ createNewElement()
ElementType * ModelPartWrapper::createNewElement |
( |
char * |
name, |
|
|
int |
id, |
|
|
int * |
nodeIds |
|
) |
| |
◆ createNewNode()
NodeType * ModelPartWrapper::createNewNode |
( |
int |
id, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ createSubmodelPart()
◆ enableSurfaceStressResults()
void ModelPartWrapper::enableSurfaceStressResults |
( |
| ) |
|
Enables calculation of surface stress values. Call retrieveResults
after each simulation to recalculate stress.
◆ getCondition()
◆ getConditions()
◆ getElement()
◆ getElements()
◆ getIdTranslator()
◆ getKratosModelPart()
ModelPart & ModelPartWrapper::getKratosModelPart |
( |
| ) |
|
◆ getMaxElementId()
int ModelPartWrapper::getMaxElementId |
( |
| ) |
|
◆ getMaxNodeId()
int ModelPartWrapper::getMaxNodeId |
( |
| ) |
|
◆ getNodalVariable1d()
double * ModelPartWrapper::getNodalVariable1d |
( |
Kratos::Variable< double > & |
variable | ) |
|
◆ getNodalVariable3d()
◆ getNode()
NodeType * ModelPartWrapper::getNode |
( |
int |
id | ) |
|
◆ getNodes()
NodeType ** ModelPartWrapper::getNodes |
( |
| ) |
|
◆ getNodesCount()
int ModelPartWrapper::getNodesCount |
( |
| ) |
|
◆ getNumberOfConditions()
int ModelPartWrapper::getNumberOfConditions |
( |
| ) |
|
◆ getNumberOfElements()
int ModelPartWrapper::getNumberOfElements |
( |
| ) |
|
◆ getNumberOfNodes()
int ModelPartWrapper::getNumberOfNodes |
( |
| ) |
|
◆ getSubmodelPart()
◆ getSurfaceStress()
float * ModelPartWrapper::getSurfaceStress |
( |
| ) |
|
◆ getTriangles()
int * ModelPartWrapper::getTriangles |
( |
| ) |
|
◆ getTrianglesCount()
int ModelPartWrapper::getTrianglesCount |
( |
| ) |
|
◆ getXCoordinates()
float * ModelPartWrapper::getXCoordinates |
( |
| ) |
|
◆ getYCoordinates()
float * ModelPartWrapper::getYCoordinates |
( |
| ) |
|
◆ getZCoordinates()
float * ModelPartWrapper::getZCoordinates |
( |
| ) |
|
◆ hasNodalVariable1d()
bool ModelPartWrapper::hasNodalVariable1d |
( |
Kratos::Variable< double > & |
variable | ) |
|
◆ hasNodalVariable3d()
◆ hasSubmodelPart()
bool ModelPartWrapper::hasSubmodelPart |
( |
char * |
name | ) |
|
◆ recreateProcessedMesh()
void ModelPartWrapper::recreateProcessedMesh |
( |
| ) |
|
Recreates surface mesh after changes to its structure, like creation of new nodes and elements
◆ removeCondition()
void ModelPartWrapper::removeCondition |
( |
int |
id | ) |
|
◆ removeElement()
void ModelPartWrapper::removeElement |
( |
int |
id | ) |
|
◆ removeNode()
void ModelPartWrapper::removeNode |
( |
int |
id | ) |
|
◆ retrieveResults()
void ModelPartWrapper::retrieveResults |
( |
| ) |
|
Extracts new node positions and stress values
◆ updateMaxElementId()
void ModelPartWrapper::updateMaxElementId |
( |
int |
maxId | ) |
|
|
protected |
◆ updateMaxNodeId()
void ModelPartWrapper::updateMaxNodeId |
( |
int |
maxId | ) |
|
|
protected |
◆ updateNodePos()
void ModelPartWrapper::updateNodePos |
( |
const int |
nodeId, |
|
|
const float |
x, |
|
|
const float |
y, |
|
|
const float |
z |
|
) |
| |
Fixes and updates DISPLACEMENT variable of a node, so that final position is as given. X0 + DISPLACEMENT_X = x
- Parameters
-
nodeId | Surface id of the node to update |
x | X coordinate |
y | Y coordinate |
z | Z coordinate |
The documentation for this class was generated from the following files:
- /home/runner/work/Documentation/Documentation/master/applications/CSharpWrapperApplication/custom_includes/model_part_wrapper.h
- /home/runner/work/Documentation/Documentation/master/applications/CSharpWrapperApplication/custom_sources/model_part_wrapper.cpp