52 void Foam::fv::fixedValueConstraint::readCoeffs()
60 new unknownTypeFunction1
63 coeffs().subDict(
"fieldValues")
71 : autoPtr<Function1<scalar>>();
76 bool Foam::fv::fixedValueConstraint::constrainType
82 const scalar t = mesh().time().userTimeValue();
84 const List<Type> values
87 fieldValues_[fieldName]->value<Type>(t)
90 if (fraction_.valid())
101 eqn.setValues(set_.cells(), values);
104 return set_.nCells();
113 const word& modelType,
129 return fieldValues_.toc();
136 fv::fixedValueConstraint
149 set_.topoChange(map);
164 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 dictionary &dict)
Selector.
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.
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)
List< scalar > scalarList
A List of scalars.
FOR_ALL_FIELD_TYPES(DefineContiguousFvWallLocationDataType)
word name(const complex &)
Return a string representation of a complex.