Go to the documentation of this file.
50 Foam::vector Foam::fv::atmCoriolisUSource::planetaryRotationVector()
const
65 const word& sourceName,
66 const word& modelType,
74 coeffs_.getCheckOrDefault<scalar>
78 [&](
const scalar
x){ return (90 >= mag(x)) && (mag(x) >= 0); }
81 planetaryRotationPeriod_
83 coeffs_.getCheckOrDefault<scalar>
85 "planetaryRotationPeriod",
87 [&](
const scalar
x){ return x > SMALL; }
95 coeffs_.getOrDefault<
vector>
98 planetaryRotationVector()
103 if (
mag(Omega_.value()) < SMALL)
106 <<
"The magnitude of the rotation vector in atmCoriolisUSource is "
107 <<
"effectively zero, mag(Omega) = " <<
mag(Omega_.value()) <<
nl
108 <<
"Please check input values in atmCoriolisUSource settings."
112 fieldNames_.resize(1,
"U");
116 Log <<
" Applying atmCoriolisUSource to: " << fieldNames_[0] <<
endl;
132 eqn -= (2.0*Omega_)^
U;
148 eqn -=
rho*((2.0*Omega_)^
U);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
static constexpr const zero Zero
Global zero (0)
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensionedScalar sin(const dimensionedScalar &ds)
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to incompressible momentum equation.
constexpr scalar twoPi(2 *M_PI)
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
Vector< scalar > vector
A scalar version of the templated Vector.
atmCoriolisUSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A special matrix type and solver, designed for finite volume solutions of scalar equations....
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet dimless
Dimensionless.
dimensionedScalar cos(const dimensionedScalar &ds)