|
SU2
|
Main class for defining the element structure. More...
#include <element_structure.hpp>
Public Member Functions | |
| CElement (void) | |
| Constructor of the class. | |
| CElement (unsigned short val_nDim, CConfig *config) | |
| virtual | ~CElement (void) |
| Destructor of the class. | |
| unsigned short | GetnNodes (void) |
| Retrieve the number of nodes of the element. More... | |
| unsigned short | GetnGaussPoints (void) |
| Retrieve the number of nodes of the element. More... | |
| unsigned short | GetnGaussPointsP (void) |
| Retrieve the number of nodes of the element. More... | |
| void | SetRef_Coord (su2double val_CoordRef, unsigned short iNode, unsigned short iDim) |
| Set the value of the coordinate of the nodes in the reference configuration. More... | |
| void | SetCurr_Coord (su2double val_CoordCurr, unsigned short iNode, unsigned short iDim) |
| Set the value of the coordinate of the nodes in the current configuration. More... | |
| void | SetElement_Pressure (su2double val_ElPressure) |
| Set the value of the pressure in the element for incompressible materials. More... | |
| su2double | GetRef_Coord (unsigned short iNode, unsigned short iDim) |
| Set the value of the coordinate of the nodes in the reference configuration. More... | |
| su2double | GetCurr_Coord (unsigned short iNode, unsigned short iDim) |
| Get the value of the coordinate of the nodes in the current configuration. More... | |
| su2double | GetWeight (unsigned short iGauss) |
| Get the weight of the corresponding Gaussian Point. More... | |
| su2double | GetWeight_P (unsigned short iGaussP) |
| Get the weight of the corresponding Gaussian Point for pressure subintegration. More... | |
| su2double | GetJ_X (unsigned short iGauss) |
| Get the jacobian respect to the reference configuration for the Gaussian Point iGauss. More... | |
| su2double | GetJ_x (unsigned short iGauss) |
| Get the jacobian respect to the current configuration for the Gaussian Point iGauss. More... | |
| su2double | GetJ_X_P (unsigned short iGauss) |
| Get the jacobian respect to the reference configuration for the Gaussian Point iGauss and the pressure term. More... | |
| su2double | GetJ_x_P (unsigned short iGauss) |
| Get the jacobian respect to the current configuration for the Gaussian Point iGauss and the pressure term. More... | |
| su2double | GetElement_Pressure (void) |
| Retrieve the value of the pressure in the element for incompressible materials. More... | |
| void | Add_Mab (su2double val_Mab, unsigned short nodeA, unsigned short nodeB) |
| Add the value of the diagonal term for the mass matrix. More... | |
| void | Add_Kab (su2double **val_Kab, unsigned short nodeA, unsigned short nodeB) |
| Add the value of a submatrix K relating nodes a and b, for the constitutive term. More... | |
| void | Add_Kab_T (su2double **val_Kab, unsigned short nodeA, unsigned short nodeB) |
| Add the value of a submatrix K relating nodes a and b, for the constitutive term (symmetric terms need transpose) More... | |
| void | Add_Ks_ab (su2double val_Ks_ab, unsigned short nodeA, unsigned short nodeB) |
| Add the value of the diagonal term for the stress contribution to the stiffness of the system. More... | |
| void | Add_Kt_a (su2double *val_Kt_a, unsigned short nodeA) |
| Add the value of the nodal stress term for the computation of the residual. More... | |
| void | Add_FDL_a (su2double *val_FDL_a, unsigned short nodeA) |
| Add the value of the dead load for the computation of the residual. More... | |
| void | Set_Kk_ab (su2double **val_Kk_ab, unsigned short nodeA, unsigned short nodeB) |
| Set the value of a submatrix K relating nodes a and b, for the pressure term (this term is subintegrated). More... | |
| void | clearElement (void) |
| Restarts the values in the element. | |
| void | clearStress (void) |
| Restarts the values of stress in the element. | |
| su2double | Get_Mab (unsigned short nodeA, unsigned short nodeB) |
| Return the value of the diagonal term for the mass matrix, relating nodes a and b. More... | |
| su2double * | Get_Kab (unsigned short nodeA, unsigned short nodeB) |
| Return the value of the submatrix K relating nodes a and b. More... | |
| su2double | Get_Ks_ab (unsigned short nodeA, unsigned short nodeB) |
| Return the value of the diagonal term for the stress contribution, relating nodes a and b. More... | |
| su2double * | Get_Kk_ab (unsigned short nodeA, unsigned short nodeB) |
| Return the value of a submatrix K relating nodes a and b, for the pressure term (this term is subintegrated). More... | |
| su2double * | Get_Kt_a (unsigned short nodeA) |
| Return the value of the nodal stress component of the residual for node a. More... | |
| su2double * | Get_FDL_a (unsigned short nodeA) |
| Return the value of the dead load component of the residual for node a. More... | |
| su2double | GetNi (unsigned short iNode, unsigned short iGauss) |
| Retrieve the value of the shape functions. More... | |
| su2double | GetGradNi_X (unsigned short iNode, unsigned short iGauss, unsigned short iDim) |
| Retrieve the value of the gradient of the shape functions respect to the reference configuration. More... | |
| su2double | GetGradNi_x (unsigned short iNode, unsigned short iGauss, unsigned short iDim) |
| Retrieve the value of the gradient of the shape functions respect to the reference configuration. More... | |
| su2double | GetGradNi_x_P (unsigned short iNode, unsigned short iGaussP, unsigned short iDim) |
| Retrieve the value of the gradient of the shape functions respect to the reference configuration. More... | |
| su2double | GetNi_Extrap (unsigned short iNode, unsigned short iGauss) |
| Retrieve the value of the gradient of the shape functions respect to the reference configuration. More... | |
| void | Add_NodalStress (su2double val_Stress, unsigned short iNode, unsigned short iVar) |
| Add a value to the nodal stress for an element. More... | |
| su2double | Get_NodalStress (unsigned short iNode, unsigned short iVar) |
| Retrieve the value of the nodal stress for an element. More... | |
| virtual void | ComputeGrad_Linear (void) |
| Set the value of the gradient of the shape functions respect to the reference configuration. More... | |
| virtual void | ComputeGrad_NonLinear (void) |
| Set the value of the gradient of the shape functions respect to the current configuration. More... | |
| virtual void | ComputeGrad_Pressure (void) |
| Virtual member. | |
Protected Attributes | |
| unsigned short | nGaussPoints |
| Number of gaussian points. | |
| unsigned short | nGaussPointsP |
| Number of gaussian points for the pressure term. | |
| unsigned short | nNodes |
| Number of gaussian points. | |
| su2double ** | CurrentCoord |
| Coordinates in the current frame. | |
| su2double ** | RefCoord |
| Coordinates in the reference frame. | |
| su2double ** | GaussCoord |
| Parent coordinates of the Gaussian Points. | |
| su2double * | GaussWeight |
| Weight of the Gaussian Points for the integration. | |
| su2double ** | GaussCoordP |
| Parent coordinates of the Gaussian Points for the pressure subintegration.. | |
| su2double * | GaussWeightP |
| Weight of the Gaussian Points for the pressure subintegration. | |
| su2double ** | NodalExtrap |
| Coordinates of the nodal points for Gaussian extrapolation. | |
| su2double ** | NodalStress |
| Stress at the nodes. | |
| CGaussVariable ** | GaussPoint |
| Structure for the Gaussian Points. | |
| CGaussVariable ** | GaussPointP |
| Structure for the Gaussian Points for the pressure subintegration. | |
| su2double ** | Mab |
| Structure for the nodal components of the mass matrix. | |
| su2double *** | Kab |
| Structure for the constitutive component of the tangent matrix. | |
| su2double ** | Ks_ab |
| Structure for the stress component of the tangent matrix. | |
| su2double *** | Kk_ab |
| Structure for the pressure component of the tangent matrix. | |
| su2double ** | Kt_a |
| Structure for the nodal stress term for the residual computation. | |
| su2double ** | FDL_a |
| Structure for the dead loads for the residual computation. | |
| su2double | el_Pressure |
| Pressure in the element. | |
Static Protected Attributes | |
| static unsigned short | nDim = 0 |
| Number of dimension of the problem. | |
Main class for defining the element structure.
| CElement::CElement | ( | unsigned short | val_nDim, |
| CConfig * | config | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_nDim | - Number of dimensions of the problem. |
| [in] | config | - Definition of the particular problem. |
| void CElement::Add_FDL_a | ( | su2double * | val_FDL_a, |
| unsigned short | nodeA | ||
| ) |
Add the value of the dead load for the computation of the residual.
| [in] | nodeA | - index of Node a. |
| [in] | val_FDL_a | - value of the term that will constitute the diagonal of the stress contribution. |
| void CElement::Add_Kab | ( | su2double ** | val_Kab, |
| unsigned short | nodeA, | ||
| unsigned short | nodeB | ||
| ) |
Add the value of a submatrix K relating nodes a and b, for the constitutive term.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Kab | - value of the matrix K. |
| void CElement::Add_Kab_T | ( | su2double ** | val_Kab, |
| unsigned short | nodeA, | ||
| unsigned short | nodeB | ||
| ) |
Add the value of a submatrix K relating nodes a and b, for the constitutive term (symmetric terms need transpose)
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Kab | - value of the matrix K. |
|
inline |
Add the value of the diagonal term for the stress contribution to the stiffness of the system.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Ks_ab | - value of the term that will constitute the diagonal of the stress contribution. |
| void CElement::Add_Kt_a | ( | su2double * | val_Kt_a, |
| unsigned short | nodeA | ||
| ) |
Add the value of the nodal stress term for the computation of the residual.
| [in] | nodeA | - index of Node a. |
| [in] | val_Kt_a | - value of the term that will constitute the diagonal of the stress contribution. |
|
inline |
Add the value of the diagonal term for the mass matrix.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Ks_ab | - value of the term that will constitute the diagonal of the stress contribution. |
|
inline |
Add a value to the nodal stress for an element.
| [in] | iNode | - Index of the node. |
| [in] | iGauss | - Index of the variable. |
| [in] | val_Stress | - Value of the stress added. |
|
inlinevirtual |
Set the value of the gradient of the shape functions respect to the reference configuration.
| [in] | val_solution | - Solution of the problem. |
| [out] | J_X | - Jacobian of the element evaluated at the current Gauss Point respect to the reference configuration |
Reimplemented in CBOUND2D, CHEXA8, CTETRA1, CQUAD4, and CTRIA1.
|
inlinevirtual |
Set the value of the gradient of the shape functions respect to the current configuration.
| [in] | val_solution | - Solution of the problem. |
| [out] | J_x | - Jacobian of the element evaluated at the current Gauss Point respect to the current configuration |
Reimplemented in CBOUND2D, CHEXA8, CTETRA1, CQUAD4, and CTRIA1.
|
inline |
Return the value of the dead load component of the residual for node a.
| [in] | nodeA | - index of Node a. |
| [out] | val_Kt_a | - value of the stress term. |
|
inline |
Return the value of the submatrix K relating nodes a and b.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [out] | val_Kab | - value of the matrix K. |
|
inline |
Return the value of a submatrix K relating nodes a and b, for the pressure term (this term is subintegrated).
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Kab | - value of the matrix K. |
|
inline |
Return the value of the diagonal term for the stress contribution, relating nodes a and b.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [out] | val_Kab | - value of the matrix K. |
|
inline |
Return the value of the nodal stress component of the residual for node a.
| [in] | nodeA | - index of Node a. |
| [out] | val_Kt_a | - value of the stress term. |
|
inline |
Return the value of the diagonal term for the mass matrix, relating nodes a and b.
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [out] | val_Mab | - value of the diagonal term of Mab. |
|
inline |
Retrieve the value of the nodal stress for an element.
| [in] | iNode | - Index of the node. |
| [in] | iGauss | - Index of the variable. |
| [in] | val_Stress | - Value of the stress added. |
|
inline |
Get the value of the coordinate of the nodes in the current configuration.
| [in] | val_CoordRef | - Value of the coordinate. |
| [in] | iNode | - Number of node. |
| [in] | iDim | - Dimension |
| [out] | Coordinate |
|
inline |
Retrieve the value of the pressure in the element for incompressible materials.
| [out] | Value | of the pressure. |
|
inline |
Retrieve the value of the gradient of the shape functions respect to the reference configuration.
| [in] | iNode | - Index of the node. |
| [in] | iNode | - Index of the Gaussian Point. |
| [out] | GradNi_X | - Gradient of the shape function related to node iNode and evaluated at Gaussian Point iGauss |
|
inline |
Retrieve the value of the gradient of the shape functions respect to the reference configuration.
| [in] | iNode | - Index of the node. |
| [in] | iNode | - Index of the Gaussian Point. |
| [out] | GradNi_X | - Gradient of the shape function related to node iNode and evaluated at Gaussian Point iGauss |
|
inline |
Retrieve the value of the gradient of the shape functions respect to the reference configuration.
| [in] | iNode | - Index of the node. |
| [in] | iNode | - Index of the Gaussian Point. |
| [out] | GradNi_x | - Gradient of the shape function related to node iNode and evaluated at Gaussian Point iGauss |
|
inline |
Get the jacobian respect to the reference configuration for the Gaussian Point iGauss.
| [in] | iGauss | - index of the Gaussian point. |
| [out] | Weight. |
|
inline |
Get the jacobian respect to the current configuration for the Gaussian Point iGauss.
| [in] | iGauss | - index of the Gaussian point. |
| [out] | Weight. |
|
inline |
Get the jacobian respect to the reference configuration for the Gaussian Point iGauss and the pressure term.
| [in] | iGauss | - index of the Gaussian point. |
| [out] | Weight. |
|
inline |
Get the jacobian respect to the current configuration for the Gaussian Point iGauss and the pressure term.
| [in] | iGauss | - index of the Gaussian point. |
| [out] | Weight. |
|
inline |
Retrieve the number of nodes of the element.
| [out] | nGaussPoints | - Number of Gaussian Points of the element. |
|
inline |
Retrieve the number of nodes of the element.
| [out] | nGaussPointsP | - Number of Gaussian Points for pressure underintegration. |
|
inline |
Retrieve the value of the shape functions.
| [in] | iNode | - Index of the node. |
| [in] | iNode | - Index of the Gaussian Point. |
| [out] | GradNi_X | - Gradient of the shape function related to node iNode and evaluated at Gaussian Point iGauss |
|
inline |
Retrieve the value of the gradient of the shape functions respect to the reference configuration.
| [in] | iNode | - Index of the node. |
| [in] | iGauss | - Index of the Gaussian Point. |
| [out] | val_Ni_Ext | - Value of the shape function at the nodes for extrapolation purposes |
|
inline |
Retrieve the number of nodes of the element.
| [out] | nNodes | - Number of nodes of the element. |
|
inline |
Set the value of the coordinate of the nodes in the reference configuration.
| [in] | val_CoordRef | - Value of the coordinate. |
| [in] | iNode | - Number of node. |
| [in] | iDim | - Dimension |
| [out] | Coordinate |
|
inline |
Get the weight of the corresponding Gaussian Point.
| [in] | iGauss | - index of the Gaussian point. |
| [out] | Weight. |
|
inline |
Get the weight of the corresponding Gaussian Point for pressure subintegration.
| [in] | iGaussP | - index of the Gaussian point. |
| [out] | Weight. |
| void CElement::Set_Kk_ab | ( | su2double ** | val_Kk_ab, |
| unsigned short | nodeA, | ||
| unsigned short | nodeB | ||
| ) |
Set the value of a submatrix K relating nodes a and b, for the pressure term (this term is subintegrated).
| [in] | nodeA | - index of Node a. |
| [in] | nodeB | - index of Node b. |
| [in] | val_Kab | - value of the matrix K. |
|
inline |
Set the value of the coordinate of the nodes in the current configuration.
| [in] | val_CoordRef | - Value of the coordinate. |
| [in] | iNode | - Number of node. |
| [in] | iDim | - Dimension |
|
inline |
Set the value of the pressure in the element for incompressible materials.
| [in] | val_ElPressure | - Value of the pressure. |
|
inline |
Set the value of the coordinate of the nodes in the reference configuration.
| [in] | val_CoordRef | - Value of the coordinate. |
| [in] | iNode | - Number of node. |
| [in] | iDim | - Dimension |
1.8.12