Documentation 6b54b78464
Loading...
Searching...
No Matches
CMMSNSUnitQuadSolution Class Referencefinal

Class to define the required data for the manufactured solution of the laminar Navier-Stokes equations on a unit quad. More...

#include <CMMSNSUnitQuadSolution.hpp>

Inheritance diagram for CMMSNSUnitQuadSolution:
[legend]

Public Member Functions

 CMMSNSUnitQuadSolution (void)
 Constructor of the class.
 
 CMMSNSUnitQuadSolution (unsigned short val_nDim, unsigned short val_nvar, unsigned short val_iMesh, CConfig *config)
 
 ~CMMSNSUnitQuadSolution (void) override
 Destructor of the class.
 
void GetSolution (const su2double *val_coords, const su2double val_t, su2double *val_solution) const override
 Get the exact solution at the current position and time.
 
void GetBCState (const su2double *val_coords, const su2double val_t, su2double *val_solution) const override
 Get the boundary conditions state for an exact solution.
 
void GetMMSSourceTerm (const su2double *val_coords, const su2double val_t, su2double *val_source) const override
 Get the source term for the manufactured solution (MMS).
 
bool IsManufacturedSolution (void) const override
 Whether or not this verification solution is a manufactured solution.
 
- Public Member Functions inherited from CVerificationSolution
 CVerificationSolution (void)
 Constructor of the class.
 
 CVerificationSolution (unsigned short val_nDim, unsigned short val_nvar, unsigned short val_iMesh, CConfig *config)
 
virtual ~CVerificationSolution (void)
 Destructor of the class.
 
void GetInitialCondition (const su2double *val_coords, su2double *val_solution) const
 Get the exact solution at the current position and t = 0.
 
virtual bool ExactSolutionKnown (void) const
 Whether or not the exact solution is known for this verification solution.
 
void GetLocalError (const su2double *val_coords, const su2double val_t, const su2double *GetLocalErrorval_solution, su2double *val_error) const
 Get the local error defined as the local solution minus the verification solution.
 
void SetError_RMS (unsigned short val_var, su2double val_error)
 Set the global RMS error for verification cases.
 
void AddError_RMS (unsigned short val_var, su2double val_error)
 Increments the global RMS error for verification cases.
 
su2double GetError_RMS (unsigned short val_var) const
 Get the global RMS error for verification cases.
 
void SetError_Max (unsigned short val_var, su2double val_error, unsigned long val_point)
 Set the global maximum error for verification cases.
 
void AddError_Max (unsigned short val_var, su2double val_error, unsigned long val_point, const su2double *val_coord)
 Increment the global maximum error for verification cases.
 
su2double GetError_Max (unsigned short val_var) const
 Get the global maximum error for verification cases.
 
unsigned long GetError_Point_Max (unsigned short val_var) const
 Get the global index of the node with the max error for verification cases.
 
const su2double * GetError_Point_Max_Coord (unsigned short val_var) const
 Get the coordinates of the node with the max error for verification cases.
 
void SetVerificationError (unsigned long nDOFsGlobal, CConfig *config)
 Calculate the global error metrics for verification cases.
 

Protected Attributes

su2double Gamma
 Specific heat ratio.
 
su2double RGas
 Gas constant.
 
su2double Viscosity
 Viscosity, must be constant.
 
su2double Conductivity
 Thermal conductivity, must be constant.
 
su2double L
 Length scale.
 
su2double a_Px
 Parameter for the pressure solution.
 
su2double a_Pxy
 Parameter for the pressure solution.
 
su2double a_Py
 Parameter for the pressure solution.
 
su2double a_rhox
 Parameter for the density solution.
 
su2double a_rhoxy
 Parameter for the density solution.
 
su2double a_rhoy
 Parameter for the density solution.
 
su2double a_ux
 Parameter for the x-velocity solution.
 
su2double a_uxy
 Parameter for the x-velocity solution.
 
su2double a_uy
 Parameter for the x-velocity solution.
 
su2double a_vx
 Parameter for the y-velocity solution.
 
su2double a_vxy
 Parameter for the y-velocity solution.
 
su2double a_vy
 Parameter for the y-velocity solution.
 
su2double P_0
 Parameter for the pressure solution.
 
su2double P_x
 Parameter for the pressure solution.
 
su2double P_xy
 Parameter for the pressure solution.
 
su2double P_y
 Parameter for the pressure solution.
 
su2double rho_0
 Parameter for the density solution.
 
su2double rho_x
 Parameter for the density solution.
 
su2double rho_xy
 Parameter for the density solution.
 
su2double rho_y
 Parameter for the density solution.
 
su2double u_0
 Parameter for the x-velocity solution.
 
su2double u_x
 Parameter for the x-velocity solution.
 
su2double u_xy
 Parameter for the x-velocity solution.
 
su2double u_y
 Parameter for the x-velocity solution.
 
su2double v_0
 Parameter for the y-velocity solution.
 
su2double v_x
 Parameter for the y-velocity solution.
 
su2double v_xy
 Parameter for the y-velocity solution.
 
su2double v_y
 Parameter for the y-velocity solution.
 
- Protected Attributes inherited from CVerificationSolution
int rank
 MPI Rank.
 
int size
 MPI Size.
 
unsigned short nDim
 Number of dimension of the problem.
 
unsigned short nVar
 Number of variables of the problem

 
MAIN_SOLVER Kind_Solver
 The kind of solver we are running.
 

Detailed Description

Class to define the required data for the manufactured solution of the laminar Navier-Stokes equations on a unit quad.

Author
E. van der Weide, T. Economon

Constructor & Destructor Documentation

◆ CMMSNSUnitQuadSolution() [1/2]

CMMSNSUnitQuadSolution::CMMSNSUnitQuadSolution ( void  )

Constructor of the class.

◆ CMMSNSUnitQuadSolution() [2/2]

CMMSNSUnitQuadSolution::CMMSNSUnitQuadSolution ( unsigned short  val_nDim,
unsigned short  val_nvar,
unsigned short  val_iMesh,
CConfig *  config 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]val_nDim- Number of dimensions of the problem.
[in]val_nvar- Number of variables of the problem.
[in]val_iMesh- Multigrid level of the solver.
[in]config- Configuration of the particular problem.

◆ ~CMMSNSUnitQuadSolution()

CMMSNSUnitQuadSolution::~CMMSNSUnitQuadSolution ( void  )
overridedefault

Destructor of the class.

Member Function Documentation

◆ GetBCState()

void CMMSNSUnitQuadSolution::GetBCState ( const su2double *  val_coords,
const su2double  val_t,
su2double *  val_solution 
) const
overridevirtual

Get the boundary conditions state for an exact solution.

Parameters
[in]val_coords- Cartesian coordinates of the current position.
[in]val_t- Current physical time.
[in]val_solution- Array where the exact solution is stored.

Reimplemented from CVerificationSolution.

◆ GetMMSSourceTerm()

void CMMSNSUnitQuadSolution::GetMMSSourceTerm ( const su2double *  val_coords,
const su2double  val_t,
su2double *  val_source 
) const
overridevirtual

Get the source term for the manufactured solution (MMS).

Parameters
[in]val_coords- Cartesian coordinates of the current position.
[in]val_t- Current physical time.
[in]val_solution- Array where the exact solution is stored.

Reimplemented from CVerificationSolution.

◆ GetSolution()

void CMMSNSUnitQuadSolution::GetSolution ( const su2double *  val_coords,
const su2double  val_t,
su2double *  val_solution 
) const
overridevirtual

Get the exact solution at the current position and time.

Parameters
[in]val_coords- Cartesian coordinates of the current position.
[in]val_t- Current physical time.
[in]val_solution- Array where the exact solution is stored.

Reimplemented from CVerificationSolution.

◆ IsManufacturedSolution()

bool CMMSNSUnitQuadSolution::IsManufacturedSolution ( void  ) const
overridevirtual

Whether or not this verification solution is a manufactured solution.

Returns
- True, because this is a manufactured solution.

Reimplemented from CVerificationSolution.

Member Data Documentation

◆ a_Px

su2double CMMSNSUnitQuadSolution::a_Px
protected

Parameter for the pressure solution.

◆ a_Pxy

su2double CMMSNSUnitQuadSolution::a_Pxy
protected

Parameter for the pressure solution.

◆ a_Py

su2double CMMSNSUnitQuadSolution::a_Py
protected

Parameter for the pressure solution.

◆ a_rhox

su2double CMMSNSUnitQuadSolution::a_rhox
protected

Parameter for the density solution.

◆ a_rhoxy

su2double CMMSNSUnitQuadSolution::a_rhoxy
protected

Parameter for the density solution.

◆ a_rhoy

su2double CMMSNSUnitQuadSolution::a_rhoy
protected

Parameter for the density solution.

◆ a_ux

su2double CMMSNSUnitQuadSolution::a_ux
protected

Parameter for the x-velocity solution.

◆ a_uxy

su2double CMMSNSUnitQuadSolution::a_uxy
protected

Parameter for the x-velocity solution.

◆ a_uy

su2double CMMSNSUnitQuadSolution::a_uy
protected

Parameter for the x-velocity solution.

◆ a_vx

su2double CMMSNSUnitQuadSolution::a_vx
protected

Parameter for the y-velocity solution.

◆ a_vxy

su2double CMMSNSUnitQuadSolution::a_vxy
protected

Parameter for the y-velocity solution.

◆ a_vy

su2double CMMSNSUnitQuadSolution::a_vy
protected

Parameter for the y-velocity solution.

◆ Conductivity

su2double CMMSNSUnitQuadSolution::Conductivity
protected

Thermal conductivity, must be constant.

◆ Gamma

su2double CMMSNSUnitQuadSolution::Gamma
protected

Specific heat ratio.

◆ L

su2double CMMSNSUnitQuadSolution::L
protected

Length scale.

◆ P_0

su2double CMMSNSUnitQuadSolution::P_0
protected

Parameter for the pressure solution.

◆ P_x

su2double CMMSNSUnitQuadSolution::P_x
protected

Parameter for the pressure solution.

◆ P_xy

su2double CMMSNSUnitQuadSolution::P_xy
protected

Parameter for the pressure solution.

◆ P_y

su2double CMMSNSUnitQuadSolution::P_y
protected

Parameter for the pressure solution.

◆ RGas

su2double CMMSNSUnitQuadSolution::RGas
protected

Gas constant.

◆ rho_0

su2double CMMSNSUnitQuadSolution::rho_0
protected

Parameter for the density solution.

◆ rho_x

su2double CMMSNSUnitQuadSolution::rho_x
protected

Parameter for the density solution.

◆ rho_xy

su2double CMMSNSUnitQuadSolution::rho_xy
protected

Parameter for the density solution.

◆ rho_y

su2double CMMSNSUnitQuadSolution::rho_y
protected

Parameter for the density solution.

◆ u_0

su2double CMMSNSUnitQuadSolution::u_0
protected

Parameter for the x-velocity solution.

◆ u_x

su2double CMMSNSUnitQuadSolution::u_x
protected

Parameter for the x-velocity solution.

◆ u_xy

su2double CMMSNSUnitQuadSolution::u_xy
protected

Parameter for the x-velocity solution.

◆ u_y

su2double CMMSNSUnitQuadSolution::u_y
protected

Parameter for the x-velocity solution.

◆ v_0

su2double CMMSNSUnitQuadSolution::v_0
protected

Parameter for the y-velocity solution.

◆ v_x

su2double CMMSNSUnitQuadSolution::v_x
protected

Parameter for the y-velocity solution.

◆ v_xy

su2double CMMSNSUnitQuadSolution::v_xy
protected

Parameter for the y-velocity solution.

◆ v_y

su2double CMMSNSUnitQuadSolution::v_y
protected

Parameter for the y-velocity solution.

◆ Viscosity

su2double CMMSNSUnitQuadSolution::Viscosity
protected

Viscosity, must be constant.


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