https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Namespaces | Functions
NavierStokesMethods.C File Reference

Go to the source code of this file.

Namespaces

namespace  NS
 

Functions

int NS::delta (unsigned int i, unsigned int j)
 Delta function, which returns zero if $i\ne j$ and unity if $i=j$.
 
int NS::computeSign (const Real &a)
 Sign function, returns $+1$ if $a$ is positive and $-1$ if $a$ is negative.
 
unsigned int NS::getIndex (const Real &p, const std::vector< Real > &bounds)
 Determines the index $i$ in a sorted array such that the input point is within the $i$-th and $i+1$-th entries in the array.
 
Real NS::reynoldsPropertyDerivative (const Real &Re, const Real &rho, const Real &mu, const Real &drho, const Real &dmu)
 Computes the derivative of the Reynolds number, $Re\equiv \frac{\rho Vd}{\mu}$, with respect to an arbitrary variable $\zeta$, where it is assumed that only the material properties of density $\rho$ and dynamic viscosity $\mu$ have nonzero derivatives with respect to $\zeta$.
 
Real NS::prandtlPropertyDerivative (const Real &mu, const Real &cp, const Real &k, const Real &dmu, const Real &dcp, const Real &dk)
 Computes the derivative of the Prandtl number, $Pr\equiv\frac{\mu C_p}{k}$, with respect to an arbitrary variale $\zeta$.
 
template<typename T >
T NS::findUStar (const T &mu, const T &rho, const T &u, Real dist)
 Finds the friction velocity using standard velocity wall functions formulation.
 
template Real NS::findUStar< Real > (const Real &mu, const Real &rho, const Real &u, const Real dist)
 
template ADReal NS::findUStar< ADReal > (const ADReal &mu, const ADReal &rho, const ADReal &u, const Real dist)
 
template<typename T >
T NS::findyPlus (const T &mu, const T &rho, const T &u, Real dist)
 Finds the non-dimensional wall distance normalized with the friction velocity Implements a fixed-point iteration in the wall function to get this velocity.
 
template Real NS::findyPlus< Real > (const Real &mu, const Real &rho, const Real &u, Real dist)
 
template ADReal NS::findyPlus< ADReal > (const ADReal &mu, const ADReal &rho, const ADReal &u, Real dist)
 
template<typename T >
T NS::computeSpeed (const libMesh::VectorValue< T > &velocity)
 Compute the speed (velocity norm) given the supplied velocity.
 
template Real NS::computeSpeed< Real > (const libMesh::VectorValue< Real > &velocity)
 
template ADReal NS::computeSpeed< ADReal > (const libMesh::VectorValue< ADReal > &velocity)
 
template<typename T >
T NS::computeShearStrainRateNormSquared (const Moose::Functor< T > &u, const Moose::Functor< T > *v, const Moose::Functor< T > *w, const Moose::ElemArg &elem_arg, const Moose::StateArg &state, const Moose::CoordinateSystemType coord_sys=Moose::COORD_XYZ, const unsigned int rz_radial_coord=0)
 Utility function to compute the shear strain rate.
 
template Real NS::computeShearStrainRateNormSquared< Real > (const Moose::Functor< Real > &u, const Moose::Functor< Real > *v, const Moose::Functor< Real > *w, const Moose::ElemArg &elem_arg, const Moose::StateArg &state, const Moose::CoordinateSystemType coord_sys, const unsigned int rz_radial_coord)
 
template ADReal NS::computeShearStrainRateNormSquared< ADReal > (const Moose::Functor< ADReal > &u, const Moose::Functor< ADReal > *v, const Moose::Functor< ADReal > *w, const Moose::ElemArg &elem_arg, const Moose::StateArg &state, const Moose::CoordinateSystemType coord_sys, const unsigned int rz_radial_coord)
 
void NS::getWallBoundedElements (const std::vector< BoundaryName > &wall_boundary_name, const FEProblemBase &fe_problem, const SubProblem &subproblem, const std::set< SubdomainID > &block_ids, std::unordered_set< const Elem * > &wall_bounded)
 Map marking wall bounded elements The map passed in wall_bounded_map gets cleared and re-populated.
 
void NS::getWallDistance (const std::vector< BoundaryName > &wall_boundary_name, const FEProblemBase &fe_problem, const SubProblem &subproblem, const std::set< SubdomainID > &block_ids, std::map< const Elem *, std::vector< Real > > &dist_map)
 Map storing wall ditance for near-wall marked elements The map passed in dist_map gets cleared and re-populated.
 
void NS::getElementFaceArgs (const std::vector< BoundaryName > &wall_boundary_name, const FEProblemBase &fe_problem, const SubProblem &subproblem, const std::set< SubdomainID > &block_ids, std::map< const Elem *, std::vector< const FaceInfo * > > &face_info_map)
 Map storing face arguments to wall bounded faces The map passed in face_info_map gets cleared and re-populated.