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);
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Unit conversion functions.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
Dimensionless.
Macros for easy insertion into run-time selection tables.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
dimensionedScalar cos(const dimensionedScalar &ds)
constexpr scalar twoPi(2 *M_PI)
A class for handling words, derived from Foam::string.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to incompressible momentum equation.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
atmCoriolisUSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
static constexpr const zero Zero
Global zero (0)