SU2
Public Member Functions | Protected Attributes | List of all members
CGridAdaptation Class Reference

Parent class for defining the grid adaptation. More...

#include <grid_adaptation_structure.hpp>

Public Member Functions

 CGridAdaptation (CGeometry *geometry, CConfig *config)
 Constructor of the class. More...
 
 ~CGridAdaptation (void)
 Destructor of the class.
 
void GetFlowSolution (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void GetFlowResidual (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void GetAdjSolution (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void GetAdjResidual (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void SetComplete_Refinement (CGeometry *geometry, unsigned short strength)
 Do a complete adaptation of the computational grid. More...
 
void SetNo_Refinement (CGeometry *geometry, unsigned short strength)
 Do not do any kind of adaptation. More...
 
void SetWake_Refinement (CGeometry *geometry, unsigned short strength)
 Do an adaptation of the computational grid on the wake. More...
 
void SetSupShock_Refinement (CGeometry *geometry, CConfig *config)
 Do an adaptation of the computational grid on the supersonic shock region. More...
 
void SetNearField_Refinement (CGeometry *geometry, CConfig *config)
 Do an adaptation of the computational grid on a near field boundary. More...
 
void SetHomothetic_Adaptation2D (CGeometry *geometry, CPhysicalGeometry *geo_adapt, CConfig *config)
 Do a complete adaptation of the computational grid using a homothetic technique (2D). More...
 
void SetHomothetic_Adaptation3D (CGeometry *geometry, CPhysicalGeometry *geo_adapt, CConfig *config)
 Do a complete adaptation of the computational grid using a homothetic technique (3D). More...
 
long CheckTriangleCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
long CheckRectCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
long CheckRectExtCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
long CheckTetraCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
long CheckHexaCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
long CheckPyramCode (bool *AdaptCode)
 Find the adaptation code for each element in the fine grid. More...
 
void TriangleDivision (long code, long *nodes, long *edges, long **Division, long *nPart)
 Division pattern of the element. More...
 
void RectDivision (long code, long *nodes, long **Division, long *nPart)
 Division pattern of the element. More...
 
void RectExtDivision (long code, long *nodes, long **Division, long *nPart)
 Division pattern of the element. More...
 
void TetraDivision (long code, long *nodes, long *edges, long **Division, long *nPart)
 Division pattern of the element. More...
 
void HexaDivision (long code, long *nodes, long **Division, long *nPart)
 Division pattern of the element. More...
 
void PyramDivision (long code, long *nodes, long **Division, long *nPart)
 Division pattern of the element. More...
 
void SetIndicator_Flow (CGeometry *geometry, CConfig *config, unsigned short strength)
 Do a complete adaptation of the computational grid. More...
 
void SetIndicator_Adj (CGeometry *geometry, CConfig *config, unsigned short strength)
 Do a complete adaptation of the computational grid. More...
 
void SetIndicator_FlowAdj (CGeometry *geometry, CConfig *config)
 Do a complete adaptation of the computational grid. More...
 
void SetIndicator_Robust (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void SetIndicator_Computable (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void SetIndicator_Computable_Robust (CGeometry *geometry, CConfig *config)
 Read the flow solution from the restart file. More...
 
void SetRestart_FlowSolution (CConfig *config, CPhysicalGeometry *geo_adapt, string mesh_flowfilename)
 Write the restart file with the adapted grid. More...
 
void SetRestart_AdjSolution (CConfig *config, CPhysicalGeometry *geo_adapt, string mesh_adjfilename)
 Write the restart file with the adapted grid. More...
 
void SetRestart_LinSolution (CConfig *config, CPhysicalGeometry *geo_adapt, string mesh_linfilename)
 Read the flow solution from the restart file. More...
 
void SetSensorElem (CGeometry *geometry, CConfig *config, unsigned long max_elem)
 Read the flow solution from the restart file. More...
 

Protected Attributes

unsigned long nPoint_new
 Number of new points.
 
unsigned long nElem_new
 Number of new elements.
 
unsigned short nDim
 Number of dimensions of the problem.
 
unsigned short nVar
 Number of variables in the problem.
 
su2double ** ConsVar_Sol
 Conservative variables (original solution).
 
su2double ** ConsVar_Res
 Conservative variables (residual).
 
su2double ** ConsVar_Adapt
 Conservative variables (adapted solution).
 
su2double ** AdjVar_Sol
 Adjoint variables (original solution).
 
su2double ** AdjVar_Res
 Adjoint variables (residual).
 
su2double ** AdjVar_Adapt
 Adjoint variables (adapted solution).
 
su2double ** LinVar_Sol
 Linear variables (original solution).
 
su2double ** LinVar_Res
 Linear variables (residual).
 
su2double ** LinVar_Adapt
 Linear variables (adapted solution).
 
su2double ** Gradient
 Gradient value.
 
su2double ** Gradient_Flow
 Gradient of the flow variables.
 
su2double ** Gradient_Adj
 Fradient of the adjoint variables.
 
su2double * Index
 Adaptation index (indicates the value of the adaptation).
 

Detailed Description

Parent class for defining the grid adaptation.

Author
F. Palacios
Version
2.0.7

Constructor & Destructor Documentation

§ CGridAdaptation()

CGridAdaptation::CGridAdaptation ( CGeometry geometry,
CConfig config 
)

Constructor of the class.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

Member Function Documentation

§ CheckHexaCode()

long CGridAdaptation::CheckHexaCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ CheckPyramCode()

long CGridAdaptation::CheckPyramCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ CheckRectCode()

long CGridAdaptation::CheckRectCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ CheckRectExtCode()

long CGridAdaptation::CheckRectExtCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ CheckTetraCode()

long CGridAdaptation::CheckTetraCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ CheckTriangleCode()

long CGridAdaptation::CheckTriangleCode ( bool *  AdaptCode)

Find the adaptation code for each element in the fine grid.

Parameters
[in]AdaptCode- Edge combination to stablish the right elemeent division.
Returns
Adaptation code for the element.

§ GetAdjResidual()

void CGridAdaptation::GetAdjResidual ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ GetAdjSolution()

void CGridAdaptation::GetAdjSolution ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ GetFlowResidual()

void CGridAdaptation::GetFlowResidual ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ GetFlowSolution()

void CGridAdaptation::GetFlowSolution ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ HexaDivision()

void CGridAdaptation::HexaDivision ( long  code,
long *  nodes,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

§ PyramDivision()

void CGridAdaptation::PyramDivision ( long  code,
long *  nodes,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

§ RectDivision()

void CGridAdaptation::RectDivision ( long  code,
long *  nodes,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

§ RectExtDivision()

void CGridAdaptation::RectExtDivision ( long  code,
long *  nodes,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

§ SetComplete_Refinement()

void CGridAdaptation::SetComplete_Refinement ( CGeometry geometry,
unsigned short  strength 
)

Do a complete adaptation of the computational grid.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]strength- Adaptation Strength.

§ SetHomothetic_Adaptation2D()

void CGridAdaptation::SetHomothetic_Adaptation2D ( CGeometry geometry,
CPhysicalGeometry geo_adapt,
CConfig config 
)

Do a complete adaptation of the computational grid using a homothetic technique (2D).

Parameters
[in]geometry- Geometrical definition of the problem.
[in]geo_adapt- Geometrical definition of the adapted grid.
[in]config- Definition of the particular problem.

§ SetHomothetic_Adaptation3D()

void CGridAdaptation::SetHomothetic_Adaptation3D ( CGeometry geometry,
CPhysicalGeometry geo_adapt,
CConfig config 
)

Do a complete adaptation of the computational grid using a homothetic technique (3D).

Parameters
[in]geometry- Geometrical definition of the problem.
[in]geo_adapt- Geometrical definition of the adapted grid.
[in]config- Definition of the particular problem.

§ SetIndicator_Adj()

void CGridAdaptation::SetIndicator_Adj ( CGeometry geometry,
CConfig config,
unsigned short  strength 
)

Do a complete adaptation of the computational grid.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]strength_________________________.

§ SetIndicator_Computable()

void CGridAdaptation::SetIndicator_Computable ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetIndicator_Computable_Robust()

void CGridAdaptation::SetIndicator_Computable_Robust ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetIndicator_Flow()

void CGridAdaptation::SetIndicator_Flow ( CGeometry geometry,
CConfig config,
unsigned short  strength 
)

Do a complete adaptation of the computational grid.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]strength_________________________.

§ SetIndicator_FlowAdj()

void CGridAdaptation::SetIndicator_FlowAdj ( CGeometry geometry,
CConfig config 
)

Do a complete adaptation of the computational grid.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetIndicator_Robust()

void CGridAdaptation::SetIndicator_Robust ( CGeometry geometry,
CConfig config 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetNearField_Refinement()

void CGridAdaptation::SetNearField_Refinement ( CGeometry geometry,
CConfig config 
)

Do an adaptation of the computational grid on a near field boundary.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetNo_Refinement()

void CGridAdaptation::SetNo_Refinement ( CGeometry geometry,
unsigned short  strength 
)

Do not do any kind of adaptation.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]strength- Adaptation Strength.

§ SetRestart_AdjSolution()

void CGridAdaptation::SetRestart_AdjSolution ( CConfig config,
CPhysicalGeometry geo_adapt,
string  mesh_adjfilename 
)

Write the restart file with the adapted grid.

Parameters
[in]config- Definition of the particular problem.
[in]mesh_adjfilename- _________________________.

§ SetRestart_FlowSolution()

void CGridAdaptation::SetRestart_FlowSolution ( CConfig config,
CPhysicalGeometry geo_adapt,
string  mesh_flowfilename 
)

Write the restart file with the adapted grid.

Parameters
[in]config- Definition of the particular problem.
[in]mesh_flowfilename- _________________________.

§ SetRestart_LinSolution()

void CGridAdaptation::SetRestart_LinSolution ( CConfig config,
CPhysicalGeometry geo_adapt,
string  mesh_linfilename 
)

Read the flow solution from the restart file.

Parameters
[in]config- Definition of the particular problem.
[in]mesh_linfilename- _________________________.

§ SetSensorElem()

void CGridAdaptation::SetSensorElem ( CGeometry geometry,
CConfig config,
unsigned long  max_elem 
)

Read the flow solution from the restart file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]max_elem- _________________________.

§ SetSupShock_Refinement()

void CGridAdaptation::SetSupShock_Refinement ( CGeometry geometry,
CConfig config 
)

Do an adaptation of the computational grid on the supersonic shock region.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

§ SetWake_Refinement()

void CGridAdaptation::SetWake_Refinement ( CGeometry geometry,
unsigned short  strength 
)

Do an adaptation of the computational grid on the wake.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]strength- Adaptation Strength.

§ TetraDivision()

void CGridAdaptation::TetraDivision ( long  code,
long *  nodes,
long *  edges,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

§ TriangleDivision()

void CGridAdaptation::TriangleDivision ( long  code,
long *  nodes,
long *  edges,
long **  Division,
long *  nPart 
)

Division pattern of the element.

Parameters
[in]code- number that identify the division.
[in]nodes- Nodes that compose the element, including new nodes.
[in]edges- Edges that compose the element.
[out]Division- Division pattern.
[out]nPart- Number of new elements after the division.

The documentation for this class was generated from the following files: