Go to the documentation of this file.
61 scalar d =
mag(Cf[celli] -
x0_);
67 else if ((d >=
r1_) && (d <=
r2_))
82 const word& modelType,
95 mesh_.time().timeName(),
109 URefName_(
"unknown-URef"),
125 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
144 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
164 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
179 if (!coeffs_.readIfPresent(
"UNames", fieldNames_))
181 fieldNames_.resize(1);
182 fieldNames_.first() = coeffs_.getOrDefault<
word>(
"U",
"U");
187 coeffs_.readEntry(
"frequency", frequency_.value());
188 coeffs_.readEntry(
"URef", URefName_);
189 coeffs_.readCompat<
vector>(
"origin", {{
"centre", -1806}}, x0_);
190 coeffs_.readEntry(
"radius1", r1_);
191 coeffs_.readEntry(
"radius2", r2_);
193 if (coeffs_.readIfPresent(
"w", w_))
195 Info<< name_ <<
": Setting stencil width to " << w_ <<
endl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
Add implicit contribution to momentum equation.
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: [].
void setBlendingFactor()
Helper function to set the blending factor.
bool read(const char *buf, int32_t &val)
Same as readInt32.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & mesh_
Reference to the mesh database.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
#define forAll(list, i)
Loop across all elements in list.
virtual bool read(const dictionary &dict)
Read dictionary.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool read(const dictionary &dict)
Read source dictionary.
labelList cells_
Set of cells to apply source to.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volVectorField & C() const
Return cell centres as volVectorField.
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.
Calculate the matrix for implicit and explicit sources.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
void correctBoundaryConditions()
Correct boundary field.
constexpr scalar pi(M_PI)
acousticDampingSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
volScalarField blendFactor_
Blending factor [-].
A special matrix type and solver, designed for finite volume solutions of scalar equations....
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
const dimensionSet dimless
Dimensionless.
dimensionedScalar cos(const dimensionedScalar &ds)