https://mooseframework.inl.gov
Namespaces | Functions
Numerics.C File Reference

Go to the source code of this file.

Namespaces

 THM
 

Functions

bool THM::absoluteFuzzyEqualVectors (const RealVectorValue &a, const RealVectorValue &b, const Real &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
 Tests if two real-valued vectors are equal within some absolute tolerance. More...
 
bool THM::areParallelVectors (const RealVectorValue &a, const RealVectorValue &b, const Real &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
 Tests if two real-valued vectors are parallel within some absolute tolerance. More...
 
bool THM::haveSameDirection (const RealVectorValue &a, const RealVectorValue &b, const Real &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
 Tests if two real-valued vectors are in the same direction. More...
 
Real THM::applyQuotientRule (const Real &num, const Real &den, const Real &dnum_dy, const Real &dden_dy)
 Computes a derivative of a fraction using quotient rule for a derivative w.r.t. More...
 
DenseVector< RealTHM::applyQuotientRule (const Real &num, const Real &den, const DenseVector< Real > &dnum_dy, const DenseVector< Real > &dden_dy)
 
void THM::vel_from_arhoA_arhouA (Real arhoA, Real arhouA, Real &vel, Real &dvel_darhoA, Real &dvel_darhouA)
 Computes velocity and its derivatives from alpha*rho*A and alpha*rho*u*A. More...
 
ADReal THM::vel_from_arhoA_arhouA (ADReal arhoA, ADReal arhouA)
 Computes velocity from alpha*rho*A and alpha*rho*u*A. More...
 
Real THM::dvel_darhoA (Real arhoA, Real arhouA)
 Derivative of velocity w.r.t. More...
 
Real THM::dvel_darhouA (Real arhoA)
 Derivative of velocity w.r.t. More...
 
void THM::rho_from_arhoA_alpha_A (Real arhoA, Real alpha, Real A, Real &rho, Real &drho_darhoA, Real &drho_dalpha)
 Computes density and its derivatives from alpha*rho*A, alpha, and area. More...
 
ADReal THM::rho_from_arhoA_alpha_A (ADReal arhoA, ADReal alpha, ADReal A)
 Computes density from alpha*rho*A, alpha, and area. More...
 
void THM::v_from_rhoA_A (Real rhoA, Real A, Real &v, Real &dv_drhoA)
 Computes specific volume and its derivatives from rho*A, and area. More...
 
ADReal THM::v_from_rhoA_A (ADReal rhoA, ADReal A)
 Computes specific volume and its derivatives from rho*A, and area. More...
 
void THM::v_from_arhoA_alpha_A (Real arhoA, Real alpha, Real A, Real &v, Real &dv_darhoA, Real &dv_dalpha)
 Computes specific volume and its derivatives from alpha*rho*A, volume fraction, and area. More...
 
ADReal THM::v_from_arhoA_alpha_A (ADReal arhoA, ADReal alpha, ADReal A)
 Computes specific volume and its derivatives from alpha*rho*A, volume fraction, and area. More...
 
void THM::v_from_rho (Real rho, Real &v, Real &dv_drho)
 Computes specific volume and its derivative with respect to density. More...
 
Real THM::dv_dalpha_liquid (Real area, Real arhoA, bool is_liquid)
 Derivative of specific volume wrt alpha_liquid. More...
 
Real THM::dv_darhoA (Real area, Real arhoA)
 Derivative of specific volume wrt density equation solution variable. More...
 
void THM::e_from_arhoA_arhouA_arhoEA (Real arhoA, Real arhouA, Real arhoEA, Real &e, Real &de_darhoA, Real &de_darhouA, Real &de_darhoEA)
 Computes specific internal energy and its derivatives from alpha*rho*A, alpha*rho*u*A, and alpha*rho*E*A. More...
 
ADReal THM::e_from_arhoA_arhouA_arhoEA (ADReal arhoA, ADReal arhouA, ADReal arhoEA)
 
void THM::e_from_E_vel (Real E, Real vel, Real &e, Real &de_dE, Real &de_dvel)
 Computes specific internal energy and its derivatives from specific total energy and velocity. More...
 
ADReal THM::e_from_E_vel (ADReal E, ADReal vel)
 Computes specific internal energy from specific total energy and velocity. More...
 
Real THM::de_darhoA (Real arhoA, Real arhouA, Real arhoEA)
 Derivative of specific internal energy wrt density of the phase (rhoA or arhoA) More...
 
Real THM::de_darhouA (Real arhoA, Real arhouA)
 Derivative of specific internal energy wrt momentum of the phase (rhouA or arhouA) More...
 
Real THM::de_darhoEA (Real arhoA)
 Derivative of specific internal energy wrt total energy of the phase (rhoEA or arhoEA) More...
 
void THM::E_from_arhoA_arhoEA (Real arhoA, Real arhoEA, Real &E, Real &dE_darhoA, Real &dE_darhoEA)
 Computes specific total energy and its derivatives from alpha*rho*A and alpha*rho*E*A. More...
 
ADReal THM::E_from_arhoA_arhoEA (ADReal arhoA, ADReal arhoEA)
 Computes specific total energy from alpha*rho*A and alpha*rho*E*A. More...
 
void THM::E_from_e_vel (Real e, Real vel, Real &E, Real &dE_de, Real &dE_dvel)
 Computes specific total energy and its derivatives from specific internal energy and velocity. More...
 
void THM::h_from_e_p_rho (Real e, Real p, Real rho, Real &h, Real &dh_de, Real &dh_dp, Real &dh_drho)
 Computes specific enthalpy and its derivatives from specific internal energy, pressure, and density. More...
 
ADReal THM::h_from_e_p_rho (ADReal e, ADReal p, ADReal rho)
 
bool THM::isInlet (Real vel, Real normal)
 Determine if inlet boundary condition should be applied. More...
 
bool THM::isInlet (ADReal vel, Real normal)
 
bool THM::isOutlet (Real vel, Real normal)
 Determine if outlet boundary condition should be applied. More...
 
bool THM::isOutlet (ADReal vel, Real normal)