Trigen PFEM refine

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
== Variables Needed and their meaning ==  
 
== Variables Needed and their meaning ==  
== Input needed to the function ==  
+
== Input needed to the function ==
 +
 
 +
For re-meshing using "Trigen PFEM refine" you need to execute one single function '''ReGenerateMesh'''. The function is defined as follows:
 +
 
 +
  ReGenerateMesh( ModelPart& ThisModelPart , Element const& rReferenceElement, Condition const& rReferenceBoundaryCondition, NodeEraseProcess& node_erase, bool rem_nodes = true, bool add_nodes=true, double my_alpha = 1.4, double h_factor=0.5)
 +
 
 +
We shall have a closer look at each argument one has to pass to the function.
 +
 
 +
1. ModelPart& ThisModelPart: this is the model part you would like to re-mesh. see (Link to model_part for its meaning)
 +
 
 +
2. Element const& rReferenceElement: is the name (of type string) of the element that has to be re-created, e.g. if you are using standard incompressible fluid element of Kratos, you have to pass "Fluid2D" as an argument.
 +
 
 +
3. Condition const& rReferenceBoundaryCondition: is the name of condition that is to be re-created. If you are not using any condition (such as Face Pressure, or any of your custom-defined condition), just pass "Condition2D". Otherwise the name of you condition (e.g. "FacePressure2D")
 +
 
 +
4. NodeEraseProcess& node_erase: the function re-generate permits one to have control over the mesh quality. For this reason some nodes that cause mesh distortion (e.g. get too close to one another) have to be removed from the mesh. The "Trigen Mesh refine" identifies those nodes automatically, but to remove those nodes from the database, one needs to use the NodeEraseProcess, which is a standard process of Kratos. Therefore, you should create this process beforehand, and then pass it to the ReGenerateMesh function as an argument. This looks like
 +
 
 
== brief description of the algorithm ==
 
== brief description of the algorithm ==
 
== Common Usage Errors ==
 
== Common Usage Errors ==

Revision as of 08:21, 30 March 2009

Contents

Variables Needed and their meaning

Input needed to the function

For re-meshing using "Trigen PFEM refine" you need to execute one single function ReGenerateMesh. The function is defined as follows:

 ReGenerateMesh(	ModelPart& ThisModelPart , Element const& rReferenceElement, Condition const& rReferenceBoundaryCondition, NodeEraseProcess& node_erase, bool rem_nodes = true, bool add_nodes=true,	double my_alpha = 1.4, double h_factor=0.5)

We shall have a closer look at each argument one has to pass to the function.

1. ModelPart& ThisModelPart: this is the model part you would like to re-mesh. see (Link to model_part for its meaning)
2. Element const& rReferenceElement: is the name (of type string) of the element that has to be re-created, e.g. if you are using standard incompressible fluid element of Kratos, you have to pass "Fluid2D" as an argument.
3. Condition const& rReferenceBoundaryCondition: is the name of condition that is to be re-created. If you are not using any condition (such as Face Pressure, or any of your custom-defined condition), just pass "Condition2D". Otherwise the name of you condition (e.g. "FacePressure2D")
4. NodeEraseProcess& node_erase: the function re-generate permits one to have control over the mesh quality. For this reason some nodes that cause mesh distortion (e.g. get too close to one another) have to be removed from the mesh. The "Trigen Mesh refine" identifies those nodes automatically, but to remove those nodes from the database, one needs to use the NodeEraseProcess, which is a standard process of Kratos. Therefore, you should create this process beforehand, and then pass it to the ReGenerateMesh function as an argument. This looks like

brief description of the algorithm

Common Usage Errors

Validation example

  • Description of the Validation Example
  • File to be looked at to get an example of use
Personal tools
Categories