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,
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)
static constexpr const zero Zero
const dimensionedScalar alpha
bool read(const char *buf, int32_t &val)
Ostream & endl(Ostream &os)
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
virtual bool read(const dictionary &dict)
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 > &)
Base abstract class for handling finite volume options (i.e. fvOption).
Generic templated field type.
virtual bool read(const dictionary &dict)
Applies sources on velocity (i.e. U) within a specified region to enable acoustic damping.
const volVectorField & C() const
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
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.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
Calculate the matrix for implicit and explicit sources.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
void correctBoundaryConditions()
constexpr scalar pi(M_PI)
acousticDampingSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
volScalarField blendFactor_
A special matrix type and solver, designed for finite volume solutions of scalar equations....
word name(const expressions::valueTypeCode typeCode)
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
Generic GeometricField class.
const dimensionSet dimless
dimensionedScalar cos(const dimensionedScalar &ds)