52 "fixedValueConstraint"
60 void Foam::fv::fixedValueConstraint::readCoeffs()
68 new unknownTypeFunction1
71 mesh().time().userUnits(),
72 coeffs().subDict(
"fieldValues")
82 mesh().time().userUnits(),
86 : autoPtr<Function1<scalar>>();
91 bool Foam::fv::fixedValueConstraint::constrainType
98 fieldValues_[fieldName]->template setValueUnits<Type>
100 eqn.psi().dimensions()
103 const scalar t = mesh().time().value();
105 const List<Type> values
108 fieldValues_[fieldName]->value<Type>(t)
111 if (fraction_.valid())
117 scalarList(set_.nCells(), fraction_->value(t))
122 eqn.setValues(set_.cells(), values);
125 return set_.nCells();
134 const word& modelType,
150 return fieldValues_.toc();
157 fv::fixedValueConstraint
170 set_.topoChange(map);
185 set_.distribute(map);
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Finite volume options abstract base class.
const dictionary & coeffs() const
Return dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
Mesh data needed to do the Finite Volume discretisation.
Constrain the field values within a specified region.
virtual bool movePoints()
Update for mesh motion.
fixedValueConstraint(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual wordList constrainedFields() const
Return the list of fields constrained by the fvConstraint.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
#define IMPLEMENT_FV_CONSTRAINT_CONSTRAIN(Type, constraintType)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
addBackwardCompatibleToRunTimeSelectionTable(fvConstraint, fixedTemperature, dictionary, fixedTemperatureConstraint, "fixedTemperatureConstraint")
word name(const bool)
Return a word representation of a bool.
List< scalar > scalarList
A List of scalars.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
const unitConversion unitFraction