33 #include "libmesh/getpot.h"
45 _cw1( _cb1/(_kappa*_kappa) + (1.0+_cb2)/_sigma ),
56 libMesh::Real wall_distance, libMesh::Real vorticity_value)
const
59 libMesh::Real chi = nu/mu;
62 libMesh::Real
fv1 = this->
fv1(chi);
65 libMesh::Real fv2 = 1 - (chi/(1 + chi*
fv1));
68 libMesh::Real S_bar = nu/(pow(
_kappa, 2.0) * pow(wall_distance, 2.0))*(fv2) ;
71 libMesh::Real S = vorticity_value;
74 libMesh::Real S_tilde = 0.0;
75 if(S_bar >= -this->
_cv2*S)
81 S_tilde = S + (S*(pow(this->
_cv2,2.0)*S + this->
_cv3*S_bar))/((this->
_cv3 - (2*this->
_cv2))*S - S_bar);
88 libMesh::Real S_tilde)
const
91 libMesh::Real r = 0.0;
93 r = std::min(nu/(S_tilde*pow(this->
_kappa,2.0)*pow(wall_distance,2.0)), this->
_r_lin);
96 libMesh::Real g = r + this->
_c_w2*(pow(r,6.0) - r);
99 libMesh::Real fw = g*pow((1 + pow(this->
_c_w3,6.0))/(pow(g,6.0) + pow(this->
_c_w3,6.0)), 1.0/6.0);
libMesh::Real _r_lin
Constants specific to the calculation of the destruction function.
libMesh::Real _kappa
Constants specific to the calculation of the source function.
libMesh::Real source_fn(libMesh::Number nu, libMesh::Real mu, libMesh::Real wall_distance, libMesh::Real vorticity_value) const
libMesh::Real destruction_fn(libMesh::Number nu, libMesh::Real wall_distance, libMesh::Real S_tilde) const
const PhysicsName spalart_allmaras
libMesh::Real fv1(libMesh::Real chi) const
Helper function.
SpalartAllmarasParameters()