117 const word& modelType,
bool darcyFlow_
Does this option apply to a Darcy flow model.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
autoPtr< topOInterpolationFunction > interpolation_
Interpolation function.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
TypeName("topOSource")
Runtime type information.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add implicit contribution to momentum equation.
virtual ~topOSource()=default
Destructor.
word interpolationFieldName_
Interpolation field name.
A class for handling words, derived from Foam::string.
autoPtr< scalar > Da_
Dimensionless Darcy number.
static const word null
An empty word.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const word & name() const noexcept
Return const access to the source name.
Mesh data needed to do the Finite Volume discretisation.
Implements Brinkman penalisation terms for topology optimisation. Looks up the indicator field (beta)...
scalar betaMax_
Optional betaMax.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
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.
virtual tmp< DimensionedField< scalar, volMesh > > getSource()
Compute the source term based on the indicator field.
Base abstract class for handling finite volume options (i.e. fvOption).