41 bool Foam::fvConstraint::constrainType
52 bool Foam::fvConstraint::constrainType(VolField<Type>&
field)
const 63 const word& constraintType,
69 constraintType_(constraintType),
88 const word constraintType(coeffs.
lookup(
"type"));
91 <<
"Selecting finite volume constraint type " << constraintType <<
endl;
97 dictionaryConstructorTablePtr_
100 dictionaryConstructorTable::iterator cstrIter =
101 dictionaryConstructorTablePtr_->find(constraintType);
103 if (cstrIter == dictionaryConstructorTablePtr_->end())
106 <<
"Unknown fvConstraint " << constraintType <<
nl <<
nl 107 <<
"Valid fvConstraints are:" <<
nl 108 << dictionaryConstructorTablePtr_->sortedToc()
114 cstrIter()(
name, constraintType, coeffs,
mesh)
133 return findIndex(constrainedFields(), fieldName) != -1;
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateMesh(const mapPolyMesh &)
Update for mesh changes.
static autoPtr< fvConstraint > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvConstraint.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual wordList constrainedFields() const
Return the list of constrained fields.
FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_CONSTRAINT_CONSTRAIN, fvConstraint)
static const List< word > & null()
Return a null List.
dlLibraryTable libs
Table of loaded dynamic libraries.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool constrainsField(const word &fieldName) const
Return true if the given field is constrained.
fvConstraint(const word &name, const word &constraintType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
#define IMPLEMENT_FV_CONSTRAINT_CONSTRAIN(Type, constraintType)
A class for handling words, derived from string.
#define IMPLEMENT_FV_CONSTRAINT_CONSTRAIN_FIELD(Type, constraintType)
virtual bool movePoints()
Update for mesh motion.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
word name(const complex &)
Return a string representation of a complex.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual ~fvConstraint()
Destructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Finite volume options abstract base class.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.