Go to the documentation of this file.
46 acousticDampingSource,
66 scalar d =
mag(Cf[celli] -
x0_);
72 else if ((d >=
r1_) && (d <=
r2_))
84 Foam::fv::acousticDampingSource::acousticDampingSource
87 const word& modelType,
101 mesh_.time().timeName(),
111 URefName_(
"unknown-URef"),
130 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
149 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
169 const volScalarField coeff(name_ +
":coeff", w_*frequency_*blendFactor_);
184 if (!coeffs_.readIfPresent(
"UNames", fieldNames_))
186 fieldNames_.resize(1);
187 fieldNames_.first() = coeffs_.getOrDefault<
word>(
"U",
"U");
190 applied_.setSize(fieldNames_.size(),
false);
192 coeffs_.readEntry(
"frequency", frequency_.value());
193 coeffs_.readEntry(
"URef", URefName_);
194 coeffs_.readCompat<
vector>(
"origin", {{
"centre", -1806}}, x0_);
195 coeffs_.readEntry(
"radius1", r1_);
196 coeffs_.readEntry(
"radius2", r2_);
198 if (coeffs_.readIfPresent(
"w", w_))
200 Info<< name_ <<
": Setting stencil width to " << w_ <<
endl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
Add implicit contribution to momentum equation.
static constexpr const zero Zero
Global zero (0)
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 GeometricField< Type, fvPatchField, volMesh > & psi() const
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 (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
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.
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)
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....
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
dimensionedScalar cos(const dimensionedScalar &ds)