45Foam::laplaceFilter::laplaceFilter(
const fvMesh&
mesh, scalar widthCoeff)
48 widthCoeff_(widthCoeff),
61 coeff_.ref() =
pow(
mesh.V(), 2.0/3.0)/widthCoeff_;
70 bd.optionalSubDict(
type() +
"Coeffs").get<scalar>(
"widthCoeff")
84 coeff_.ref() =
pow(
mesh.V(), 2.0/3.0)/widthCoeff_;
108 unFilteredField.clear();
110 return filteredField;
124 unFilteredField.clear();
126 return filteredField;
132 const tmp<volSymmTensorField>& unFilteredField
137 tmp<volSymmTensorField> filteredField =
140 unFilteredField.clear();
142 return filteredField;
156 unFilteredField.clear();
158 return filteredField;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Abstract class for LES filters.
const fvMesh & mesh() const
Return mesh reference.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
Mesh data needed to do the Finite Volume discretisation.
virtual void read(const dictionary &)
Read the LESfilter dictionary.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
cellMask correctBoundaryConditions()