59 if (solutionD[idir] == -1)
61 averageVol /= bounds.
span()[idir];
67 scalar multMeanRadius =
70 "meanRadiusMult", {{
"scale", 2306}}, 2
73 <<
"Computed near-band width :: " << width
74 <<
" and multiplying with " << multMeanRadius <<
endl;
76 return multMeanRadius*width;
82 sigmoidalHeaviside::sigmoidalHeaviside
89 dNB_(
dict.getOrDefault<scalar>(
"d", computeNearBandWidth()))
103 const scalar t(timeValue == 0 ? 1. : timeValue);
109 res =
max(
min(scalar(1), res), scalar(0));
118 const scalar t(timeValue == 0 ? 1. : timeValue);
122 <<
type() <<
"::derivative:: t, dNB " << t <<
", " <<
dNB_ <<
endl;
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar computeNearBandWidth() const
Compute the near-band width of the fluid-solid interface as.
A bounding box defined in terms of min/max extrema points.
const Time & time() const
Return the top-level database.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar cos(const dimensionedScalar &ds)
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
constexpr scalar pi(M_PI)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define DebugInfo
Report an information message using Foam::Info.
scalar dNB_
The near-band distance.
dimensionedScalar sin(const dimensionedScalar &ds)
A smooth Heaviside function to project the signed distance field in level set topology optimization...
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion) ...
Type gAverage(const FieldField< Field, Type > &f)
virtual void interpolate(const scalarField &arg, scalarField &res) const
Interpolate argument to result.
virtual tmp< scalarField > derivative(const scalarField &arg) const
Return of function with respect to the argument field.
Mesh data needed to do the Finite Volume discretisation.
vector span() const
The bounding box span (from minimum to maximum)
const boundBox & bounds() const noexcept
Return mesh bounding box.
A class for managing temporary objects.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
T getOrDefaultCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value using any compatibility names if needed...
static constexpr const zero Zero
Global zero (0)