35 #ifndef fvConstraint_H 36 #define fvConstraint_H 49 class polyTopoChangeMap;
51 class polyDistributionMap;
65 const word constraintType_;
107 const word& constraintType,
111 (name, constraintType, dict, mesh)
121 const word& constraintType,
virtual void topoChange(const polyTopoChangeMap &)=0
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)=0
Redistribute or update using the given distribution map.
virtual bool movePoints()=0
Update for mesh motion.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
autoPtr< fvConstraint > clone() const
Return clone.
const fvMesh & mesh() const
Return const access to the mesh database.
A list of keyword definitions, which are a keyword followed by any number of values (e...
declareRunTimeSelectionTable(autoPtr, fvConstraint, dictionary,(const word &name, const word &constraintType, const dictionary &dict, const fvMesh &mesh),(name, constraintType, dict, mesh))
autoPtr< fvConstraint > operator()(Istream &is) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static autoPtr< fvConstraint > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvConstraint.
#define DEFINE_FV_CONSTRAINT_CONSTRAIN_FIELD(Type, nullArg)
virtual wordList constrainedFields() const
Return the list of constrained fields.
const dictionary & coeffs() const
Return dictionary.
Generic GeometricField class.
virtual bool constrainsField(const word &fieldName) const
Return true if the given field is constrained.
#define DEFINE_FV_CONSTRAINT_CONSTRAIN(Type, nullArg)
iNew(const fvMesh &mesh, const word &name)
const word & name() const
Return const access to the source name.
fvConstraint(const word &name, const word &constraintType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
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.
FOR_ALL_FIELD_TYPES(DEFINE_FV_CONSTRAINT_CONSTRAIN)
Apply a constraint to an equation.
Forward declarations of fvMatrix specialisations.
virtual void mapMesh(const polyMeshMap &)=0
Update from another mesh using the given map.
TypeName("fvConstraint")
Runtime type information.
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.
Class containing mesh-to-mesh mapping information.
virtual ~fvConstraint()
Destructor.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Return pointer to new fvConstraint object created.
Finite volume options abstract base class.