Documentation 6b54b78464
Loading...
Searching...
No Matches
CSmagorinskyModel Class Reference

Derived class for defining the Smagorinsky SGS model. More...

#include <sgs_model.hpp>

Inheritance diagram for CSmagorinskyModel:
[legend]

Public Member Functions

 CSmagorinskyModel (void)
 Constructor of the class.
 
 ~CSmagorinskyModel (void) override
 Destructor of the class.
 
su2double ComputeEddyViscosity_2D (const su2double rho, const su2double dudx, const su2double dudy, const su2double dvdx, const su2double dvdy, const su2double lenScale, const su2double distToWall) override
 Function to determine the eddy viscosity for the given function arguments for a 2D simulation.
 
su2double ComputeEddyViscosity_3D (const su2double rho, const su2double dudx, const su2double dudy, const su2double dudz, const su2double dvdx, const su2double dvdy, const su2double dvdz, const su2double dwdx, const su2double dwdy, const su2double dwdz, const su2double lenScale, const su2double distToWall) override
 Function to determine the eddy viscosity for the given function arguments for a 3D simulation.
 
void ComputeGradEddyViscosity_2D (const su2double rho, const su2double drhodx, const su2double drhody, const su2double dudx, const su2double dudy, const su2double dvdx, const su2double dvdy, const su2double d2udx2, const su2double d2udy2, const su2double d2udxdy, const su2double d2vdx2, const su2double d2vdy2, const su2double d2vdxdy, const su2double lenScale, const su2double distToWall, su2double &dMuTdx, su2double &dMuTdy) override
 Function to determine the gradients of the eddy viscosity for the given function arguments for a 2D simulation.
 
void ComputeGradEddyViscosity_3D (const su2double rho, const su2double drhodx, const su2double drhody, const su2double drhodz, const su2double dudx, const su2double dudy, const su2double dudz, const su2double dvdx, const su2double dvdy, const su2double dvdz, const su2double dwdx, const su2double dwdy, const su2double dwdz, const su2double d2udx2, const su2double d2udy2, const su2double d2udz2, const su2double d2udxdy, const su2double d2udxdz, const su2double d2udydz, const su2double d2vdx2, const su2double d2vdy2, const su2double d2vdz2, const su2double d2vdxdy, const su2double d2vdxdz, const su2double d2vdydz, const su2double d2wdx2, const su2double d2wdy2, const su2double d2wdz2, const su2double d2wdxdy, const su2double d2wdxdz, const su2double d2wdydz, const su2double lenScale, const su2double distToWall, su2double &dMuTdx, su2double &dMuTdy, su2double &dMuTdz) override
 function to determine the gradients of the eddy viscosity for the given function arguments for a 3D simulation.
 
- Public Member Functions inherited from CSGSModel
 CSGSModel (void)
 Constructor of the class.
 
virtual ~CSGSModel (void)
 Destructor of the class.
 

Public Attributes

su2double const_smag
 Smagorinsky Constant C_s.

 
su2double filter_mult
 Multiplier to get filter width from grid length scale.
 

Detailed Description

Derived class for defining the Smagorinsky SGS model.

Author
: E. van der Weide, T. Economon, P. Urbanczyk
Version
8.5.0 "Harrier"

Constructor & Destructor Documentation

◆ CSmagorinskyModel()

CSmagorinskyModel::CSmagorinskyModel ( void  )
inline

Constructor of the class.

◆ ~CSmagorinskyModel()

CSmagorinskyModel::~CSmagorinskyModel ( void  )
inlineoverride

Destructor of the class.

Member Function Documentation

◆ ComputeEddyViscosity_2D()

su2double CSmagorinskyModel::ComputeEddyViscosity_2D ( const su2double  rho,
const su2double  dudx,
const su2double  dudy,
const su2double  dvdx,
const su2double  dvdy,
const su2double  lenScale,
const su2double  distToWall 
)
inlineoverridevirtual

Function to determine the eddy viscosity for the given function arguments for a 2D simulation.

Parameters
[in]rho- Density
[in]dudx- x-derivative of the u-velocity.
[in]dudy- y-derivative of the u-velocity.
[in]dvdx- x-derivative of the v-velocity.
[in]dvdy- y-derivative of the v-velocity.
[in]lenScale- Length scale of the corresponding element.
[in]distToWall- Distance to the nearest wall.
Returns
Value of the dynamic eddy viscosity for the Smagorinsky model.

Reimplemented from CSGSModel.

◆ ComputeEddyViscosity_3D()

su2double CSmagorinskyModel::ComputeEddyViscosity_3D ( const su2double  rho,
const su2double  dudx,
const su2double  dudy,
const su2double  dudz,
const su2double  dvdx,
const su2double  dvdy,
const su2double  dvdz,
const su2double  dwdx,
const su2double  dwdy,
const su2double  dwdz,
const su2double  lenScale,
const su2double  distToWall 
)
inlineoverridevirtual

Function to determine the eddy viscosity for the given function arguments for a 3D simulation.

Parameters
[in]rho- Density
[in]dudx- x-derivative of the u-velocity.
[in]dudy- y-derivative of the u-velocity.
[in]dudz- z-derivative of the u-velocity.
[in]dvdx- x-derivative of the v-velocity.
[in]dvdy- y-derivative of the v-velocity.
[in]dvdz- z-derivative of the v-velocity.
[in]dwdx- x-derivative of the w-velocity.
[in]dwdy- y-derivative of the w-velocity.
[in]dwdz- z-derivative of the w-velocity.
[in]lenScale- Length scale of the corresponding element.
[in]distToWall- Distance to the nearest wall.
Returns
Value of the dynamic eddy viscosity for the Smagorinsky model.

Reimplemented from CSGSModel.

◆ ComputeGradEddyViscosity_2D()

void CSmagorinskyModel::ComputeGradEddyViscosity_2D ( const su2double  rho,
const su2double  drhodx,
const su2double  drhody,
const su2double  dudx,
const su2double  dudy,
const su2double  dvdx,
const su2double  dvdy,
const su2double  d2udx2,
const su2double  d2udy2,
const su2double  d2udxdy,
const su2double  d2vdx2,
const su2double  d2vdy2,
const su2double  d2vdxdy,
const su2double  lenScale,
const su2double  distToWall,
su2double &  dMuTdx,
su2double &  dMuTdy 
)
inlineoverridevirtual

Function to determine the gradients of the eddy viscosity for the given function arguments for a 2D simulation.

Parameters
[in]rho- Density.
[in]drhodx- x-derivative of the density.
[in]drhody- y-derivative of the density.
[in]dudx- x-derivative of the u-velocity.
[in]dudy- y-derivative of the u-velocity.
[in]dvdx- x-derivative of the v-velocity.
[in]dvdy- y-derivative of the v-velocity.
[in]d2udx2- 2nd x-derivative of the u-velocity.
[in]d2udy2- 2nd y-derivative of the u-velocity.
[in]d2udxdy- x-y cross-derivative of the u-velocity.
[in]d2vdx2- 2nd x-derivative of the v-velocity.
[in]d2vdy2- 2nd y-derivative of the v-velocity.
[in]d2vdxdy- x-y cross-derivative of the v-velocity.
[in]lenScale- Length scale of the corresponding element.
[in]distToWall- Distance to the nearest wall.
[out]dMuTdx- x-derivative of the turbulent viscosity.
[out]dMuTdy- y-derivative of the turbulent viscosity.

Reimplemented from CSGSModel.

◆ ComputeGradEddyViscosity_3D()

void CSmagorinskyModel::ComputeGradEddyViscosity_3D ( const su2double  rho,
const su2double  drhodx,
const su2double  drhody,
const su2double  drhodz,
const su2double  dudx,
const su2double  dudy,
const su2double  dudz,
const su2double  dvdx,
const su2double  dvdy,
const su2double  dvdz,
const su2double  dwdx,
const su2double  dwdy,
const su2double  dwdz,
const su2double  d2udx2,
const su2double  d2udy2,
const su2double  d2udz2,
const su2double  d2udxdy,
const su2double  d2udxdz,
const su2double  d2udydz,
const su2double  d2vdx2,
const su2double  d2vdy2,
const su2double  d2vdz2,
const su2double  d2vdxdy,
const su2double  d2vdxdz,
const su2double  d2vdydz,
const su2double  d2wdx2,
const su2double  d2wdy2,
const su2double  d2wdz2,
const su2double  d2wdxdy,
const su2double  d2wdxdz,
const su2double  d2wdydz,
const su2double  lenScale,
const su2double  distToWall,
su2double &  dMuTdx,
su2double &  dMuTdy,
su2double &  dMuTdz 
)
inlineoverridevirtual

function to determine the gradients of the eddy viscosity for the given function arguments for a 3D simulation.

Parameters
[in]rho- Density.
[in]drhodx- x-derivative of the density.
[in]drhody- y-derivative of the density.
[in]drhodz- z-derivative of the density.
[in]dudx- x-derivative of the u-velocity.
[in]dudy- y-derivative of the u-velocity.
[in]dudz- z-derivative of the u-velocity.
[in]dvdx- x-derivative of the v-velocity.
[in]dvdy- y-derivative of the v-velocity.
[in]dvdz- z-derivative of the v-velocity.
[in]dwdx- x-derivative of the w-velocity.
[in]dwdy- y-derivative of the w-velocity.
[in]dwdz- z-derivative of the w-velocity.
[in]d2udx2- 2nd x-derivative of the u-velocity.
[in]d2udy2- 2nd y-derivative of the u-velocity.
[in]d2udz2- 2nd z-derivative of the u-velocity.
[in]d2udxdy- x-y cross-derivative of the u-velocity.
[in]d2udxdz- x-z cross-derivative of the u-velocity.
[in]d2udydz- y-z cross-derivative of the u-velocity.
[in]d2vdx2- 2nd x-derivative of the v-velocity.
[in]d2vdy2- 2nd y-derivative of the v-velocity.
[in]d2vdz2- 2nd z-derivative of the v-velocity.
[in]d2vdxdy- x-y cross-derivative of the v-velocity.
[in]d2vdxdz- x-z cross-derivative of the v-velocity.
[in]d2vdydz- y-z cross-derivative of the v-velocity.
[in]d2wdx2- 2nd x-derivative of the w-velocity.
[in]d2wdy2- 2nd y-derivative of the w-velocity.
[in]d2wdz2- 2nd z-derivative of the w-velocity.
[in]d2wdxdy- x-y cross-derivative of the w-velocity.
[in]d2wdxdz- x-z cross-derivative of the w-velocity.
[in]d2wdydz- y-z cross-derivative of the w-velocity.
[in]lenScale- Length scale of the corresponding element.
[in]distToWall- Distance to the nearest wall.
[out]dMuTdx- x-derivative of the turbulent viscosity.
[out]dMuTdy- y-derivative of the turbulent viscosity.
[out]dMuTdz- z-derivative of the turbulent viscosity.

Reimplemented from CSGSModel.

Member Data Documentation

◆ const_smag

su2double CSmagorinskyModel::const_smag

Smagorinsky Constant C_s.

◆ filter_mult

su2double CSmagorinskyModel::filter_mult

Multiplier to get filter width from grid length scale.


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