Documentation a537f1bdf2
Loading...
Searching...
No Matches
CMMSNSTwoHalfSpheresSolution Class Referencefinal

Class to define the required data for the manufactured solution of the laminar Navier-Stokes equations on the domain between two half spheres. More...

#include <CMMSNSTwoHalfSpheresSolution.hpp>

Inheritance diagram for CMMSNSTwoHalfSpheresSolution:
[legend]

Public Member Functions

 CMMSNSTwoHalfSpheresSolution (void)
 Constructor of the class.
 
 CMMSNSTwoHalfSpheresSolution (unsigned short val_nDim, unsigned short val_nvar, unsigned short val_iMesh, CConfig *config)
 
 ~CMMSNSTwoHalfSpheresSolution (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
 Constant viscosity.
 
su2double Conductivity
 Constant thermal conductivity.
 
su2double TWall
 Prescribed wall temperature at the outer wall.
 
su2double Pressure_Ref
 Reference pressure for non-dimensionalization.
 
su2double Density_Ref
 Reference density for non-dimensionalization.

 
su2double Velocity_Ref
 Reference velocity for non-dimensionalization.
 
su2double rho_0
 Constant density.
 
su2double u_0
 Maximum x-velocity in the domain.
 
su2double v_0
 Maximum y-velocity in the domain.
 
su2double w_0
 Maximum z-velocity in the domain.
 
su2double a_T1
 Parameter for the temperature solution.
 
su2double a_T2
 Parameter for the temperature 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 the domain between two half spheres.

Author
E. van der Weide, T. Economon

Constructor & Destructor Documentation

◆ CMMSNSTwoHalfSpheresSolution() [1/2]

CMMSNSTwoHalfSpheresSolution::CMMSNSTwoHalfSpheresSolution ( void  )

Constructor of the class.

◆ CMMSNSTwoHalfSpheresSolution() [2/2]

CMMSNSTwoHalfSpheresSolution::CMMSNSTwoHalfSpheresSolution ( 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.

◆ ~CMMSNSTwoHalfSpheresSolution()

CMMSNSTwoHalfSpheresSolution::~CMMSNSTwoHalfSpheresSolution ( void  )
overridedefault

Destructor of the class.

Member Function Documentation

◆ GetBCState()

void CMMSNSTwoHalfSpheresSolution::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 CMMSNSTwoHalfSpheresSolution::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 CMMSNSTwoHalfSpheresSolution::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 CMMSNSTwoHalfSpheresSolution::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_T1

su2double CMMSNSTwoHalfSpheresSolution::a_T1
protected

Parameter for the temperature solution.

◆ a_T2

su2double CMMSNSTwoHalfSpheresSolution::a_T2
protected

Parameter for the temperature solution.

◆ Conductivity

su2double CMMSNSTwoHalfSpheresSolution::Conductivity
protected

Constant thermal conductivity.

◆ Density_Ref

su2double CMMSNSTwoHalfSpheresSolution::Density_Ref
protected

Reference density for non-dimensionalization.

◆ Gamma

su2double CMMSNSTwoHalfSpheresSolution::Gamma
protected

Specific heat ratio.

◆ Pressure_Ref

su2double CMMSNSTwoHalfSpheresSolution::Pressure_Ref
protected

Reference pressure for non-dimensionalization.

◆ RGas

su2double CMMSNSTwoHalfSpheresSolution::RGas
protected

Gas constant.

◆ rho_0

su2double CMMSNSTwoHalfSpheresSolution::rho_0
protected

Constant density.

◆ TWall

su2double CMMSNSTwoHalfSpheresSolution::TWall
protected

Prescribed wall temperature at the outer wall.

◆ u_0

su2double CMMSNSTwoHalfSpheresSolution::u_0
protected

Maximum x-velocity in the domain.

◆ v_0

su2double CMMSNSTwoHalfSpheresSolution::v_0
protected

Maximum y-velocity in the domain.

◆ Velocity_Ref

su2double CMMSNSTwoHalfSpheresSolution::Velocity_Ref
protected

Reference velocity for non-dimensionalization.

◆ Viscosity

su2double CMMSNSTwoHalfSpheresSolution::Viscosity
protected

Constant viscosity.

◆ w_0

su2double CMMSNSTwoHalfSpheresSolution::w_0
protected

Maximum z-velocity in the domain.


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