|
SU2
|
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). | |
Parent class for defining the grid adaptation.
Constructor of the class.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| long CGridAdaptation::CheckHexaCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
| long CGridAdaptation::CheckPyramCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
| long CGridAdaptation::CheckRectCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
| long CGridAdaptation::CheckRectExtCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
| long CGridAdaptation::CheckTetraCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
| long CGridAdaptation::CheckTriangleCode | ( | bool * | AdaptCode | ) |
Find the adaptation code for each element in the fine grid.
| [in] | AdaptCode | - Edge combination to stablish the right elemeent division. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::HexaDivision | ( | long | code, |
| long * | nodes, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
| void CGridAdaptation::PyramDivision | ( | long | code, |
| long * | nodes, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
| void CGridAdaptation::RectDivision | ( | long | code, |
| long * | nodes, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
| void CGridAdaptation::RectExtDivision | ( | long | code, |
| long * | nodes, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
| void CGridAdaptation::SetComplete_Refinement | ( | CGeometry * | geometry, |
| unsigned short | strength | ||
| ) |
Do a complete adaptation of the computational grid.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | strength | - Adaptation Strength. |
| void CGridAdaptation::SetHomothetic_Adaptation2D | ( | CGeometry * | geometry, |
| CPhysicalGeometry * | geo_adapt, | ||
| CConfig * | config | ||
| ) |
Do a complete adaptation of the computational grid using a homothetic technique (2D).
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | geo_adapt | - Geometrical definition of the adapted grid. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::SetHomothetic_Adaptation3D | ( | CGeometry * | geometry, |
| CPhysicalGeometry * | geo_adapt, | ||
| CConfig * | config | ||
| ) |
Do a complete adaptation of the computational grid using a homothetic technique (3D).
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | geo_adapt | - Geometrical definition of the adapted grid. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::SetIndicator_Adj | ( | CGeometry * | geometry, |
| CConfig * | config, | ||
| unsigned short | strength | ||
| ) |
Do a complete adaptation of the computational grid.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| [in] | strength | _________________________. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::SetIndicator_Flow | ( | CGeometry * | geometry, |
| CConfig * | config, | ||
| unsigned short | strength | ||
| ) |
Do a complete adaptation of the computational grid.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| [in] | strength | _________________________. |
Do a complete adaptation of the computational grid.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
Do an adaptation of the computational grid on a near field boundary.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::SetNo_Refinement | ( | CGeometry * | geometry, |
| unsigned short | strength | ||
| ) |
Do not do any kind of adaptation.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | strength | - Adaptation Strength. |
| void CGridAdaptation::SetRestart_AdjSolution | ( | CConfig * | config, |
| CPhysicalGeometry * | geo_adapt, | ||
| string | mesh_adjfilename | ||
| ) |
Write the restart file with the adapted grid.
| [in] | config | - Definition of the particular problem. |
| [in] | mesh_adjfilename | - _________________________. |
| void CGridAdaptation::SetRestart_FlowSolution | ( | CConfig * | config, |
| CPhysicalGeometry * | geo_adapt, | ||
| string | mesh_flowfilename | ||
| ) |
Write the restart file with the adapted grid.
| [in] | config | - Definition of the particular problem. |
| [in] | mesh_flowfilename | - _________________________. |
| void CGridAdaptation::SetRestart_LinSolution | ( | CConfig * | config, |
| CPhysicalGeometry * | geo_adapt, | ||
| string | mesh_linfilename | ||
| ) |
Read the flow solution from the restart file.
| [in] | config | - Definition of the particular problem. |
| [in] | mesh_linfilename | - _________________________. |
| void CGridAdaptation::SetSensorElem | ( | CGeometry * | geometry, |
| CConfig * | config, | ||
| unsigned long | max_elem | ||
| ) |
Read the flow solution from the restart file.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| [in] | max_elem | - _________________________. |
Do an adaptation of the computational grid on the supersonic shock region.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| void CGridAdaptation::SetWake_Refinement | ( | CGeometry * | geometry, |
| unsigned short | strength | ||
| ) |
Do an adaptation of the computational grid on the wake.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | strength | - Adaptation Strength. |
| void CGridAdaptation::TetraDivision | ( | long | code, |
| long * | nodes, | ||
| long * | edges, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
| void CGridAdaptation::TriangleDivision | ( | long | code, |
| long * | nodes, | ||
| long * | edges, | ||
| long ** | Division, | ||
| long * | nPart | ||
| ) |
Division pattern of the element.
| [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. |
1.8.12