#include <local_refine_prism_mesh.hpp>
|
|
| LocalRefinePrismMesh (ModelPart &model_part) |
| Default constructors. More...
|
|
| ~LocalRefinePrismMesh () override=default |
| Destructor. More...
|
|
|
void | CalculateCoordinateCenterNodeAndInsertNewNodes (ModelPart &this_model_part) |
|
void | EraseOldElementAndCreateNewElement (ModelPart &this_model_part, const compressed_matrix< int > &Coord, PointerVector< Element > &New_Elements, bool interpolate_internal_variables) override |
|
void | EraseOldConditionsAndCreateNew (ModelPart &this_model_part, const compressed_matrix< int > &Coord) override |
|
void | CalculateEdges (Element::GeometryType &geom, const compressed_matrix< int > &Coord, int *edge_ids, std::vector< int > &aux) override |
|
| LocalRefineGeometryMesh (ModelPart &model_part) |
| Default constructors. More...
|
|
virtual | ~LocalRefineGeometryMesh ()=default |
| Destructor. More...
|
|
virtual void | LocalRefineMesh (bool refine_on_reference, bool interpolate_internal_variables) |
|
virtual void | CSRRowMatrix (ModelPart &this_model_part, compressed_matrix< int > &Coord) |
|
virtual void | SearchEdgeToBeRefined (ModelPart &this_model_part, compressed_matrix< int > &Coord) |
|
virtual void | CreateListOfNewNodes (ModelPart &this_model_part, compressed_matrix< int > &Coord, std::vector< int > &List_New_Nodes, std::vector< array_1d< int, 2 > > &Position_Node) |
|
virtual void | CalculateCoordinateAndInsertNewNodes (ModelPart &this_model_part, const std::vector< array_1d< int, 2 > > &Position_Node, const std::vector< int > &List_New_Nodes) |
|
void | CreatePartition (unsigned int number_of_threads, const int number_of_rows, vector< unsigned int > &partitions) |
|
template<typename TGeometricalObjectPointerType > |
void | InterpolateInteralVariables (const int &number_elem, const TGeometricalObjectPointerType father_elem, TGeometricalObjectPointerType child_elem, const ProcessInfo &rCurrentProcessInfo) |
|
virtual void | UpdateSubModelPartNodes (ModelPart &rModelPart) |
|
virtual void | ResetFatherNodes (ModelPart &rModelPart) |
|
◆ LocalRefinePrismMesh()
Kratos::LocalRefinePrismMesh::LocalRefinePrismMesh |
( |
ModelPart & |
model_part | ) |
|
|
inline |
◆ ~LocalRefinePrismMesh()
Kratos::LocalRefinePrismMesh::~LocalRefinePrismMesh |
( |
| ) |
|
|
overridedefault |
◆ CalculateCoordinateCenterNodeAndInsertNewNodes()
void Kratos::LocalRefinePrismMesh::CalculateCoordinateCenterNodeAndInsertNewNodes |
( |
ModelPart & |
this_model_part | ) |
|
|
inline |
Computes the coordinate of the baricenter node of the element (mean of the faces's baricenter) Insert the news nodes in the center of elements and interopolate the variables.
- Returns
- this_model_part: The model part of the model (it is the input too)
◆ CalculateEdges()
void Kratos::LocalRefinePrismMesh::CalculateEdges |
( |
Element::GeometryType & |
geom, |
|
|
const compressed_matrix< int > & |
Coord, |
|
|
int * |
edge_ids, |
|
|
std::vector< int > & |
aux |
|
) |
| |
|
inlineoverridevirtual |
It calculates the new edges of the new prisms, first it calculates the new edges correspondign to the lower face (as a triangle), later it added to the upper face
- Parameters
-
geom | The prism element geometry |
edge_ids | The ids of the edges |
- Returns
- aux: The vector that includes the index of the new edges
Reimplemented from Kratos::LocalRefineGeometryMesh.
◆ EraseOldConditionsAndCreateNew()
void Kratos::LocalRefinePrismMesh::EraseOldConditionsAndCreateNew |
( |
ModelPart & |
this_model_part, |
|
|
const compressed_matrix< int > & |
Coord |
|
) |
| |
|
inlineoverridevirtual |
Remove the old conditions and creates new ones
- Parameters
-
Coord | The coordinates of the nodes of the geometry |
- Returns
- this_model_part: The model part of the model (it is the input too)
Reimplemented from Kratos::LocalRefineGeometryMesh.
◆ EraseOldElementAndCreateNewElement()
void Kratos::LocalRefinePrismMesh::EraseOldElementAndCreateNewElement |
( |
ModelPart & |
this_model_part, |
|
|
const compressed_matrix< int > & |
Coord, |
|
|
PointerVector< Element > & |
New_Elements, |
|
|
bool |
interpolate_internal_variables |
|
) |
| |
|
inlineoverridevirtual |
It erases the old elements and it creates the new ones
- Parameters
-
Coord | The coordinates of the element |
New_Elements | The new elements created |
interpolate_internal_variables | A boolean that defines if it is necessary to interpolate the internal variables |
- Returns
- this_model_part: The model part of the model (it is the input too)
Reimplemented from Kratos::LocalRefineGeometryMesh.
The documentation for this class was generated from the following file: