99 topOSource(
const topOSource&) =
delete;
102 void operator=(
const topOSource&) =
delete;
117 const word& modelType,
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const word & name() const noexcept
Return const access to the source name.
option(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
word interpolationFieldName_
Interpolation field name.
bool darcyFlow_
Does this option apply to a Darcy flow model.
scalar betaMax_
Optional betaMax.
virtual ~topOSource()=default
Destructor.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual tmp< DimensionedField< scalar, volMesh > > getSource()
Compute the source term based on the indicator field.
TypeName("topOSource")
Runtime type information.
autoPtr< scalar > Da_
Dimensionless Darcy number.
autoPtr< topOInterpolationFunction > interpolation_
Interpolation function.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add implicit contribution to momentum equation.
virtual void postProcessSens(scalarField &sensField, const word &fieldName=word::null, const word &designValue=word::null)
Multiply sensitivities with the derivative of the interpolation function.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
Namespace for finite-volume.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.