108 #ifndef Foam_fv_MapFieldConstraint_H 109 #define Foam_fv_MapFieldConstraint_H 121 template<
class Type>
class Function1;
131 class MapFieldConstraint
142 autoPtr<Function1<point>> positionPtr_;
145 autoPtr<Function1<point>> directionPtr_;
185 void translate(refPtr<fvMesh>& srcMeshPtr,
const scalar time);
188 void rotate(refPtr<fvMesh>& srcMeshPtr,
const scalar time);
194 bool initialize(
const fvMesh& srcMesh,
const dictionary&
dict);
204 autoPtr<Time> srcTimePtr_;
207 refPtr<fvMesh> srcMeshPtr_;
210 autoPtr<meshToMesh> interpPtr_;
213 HashTable<word> patchMap_;
225 word patchMapMethodName_;
243 void createInterpolation
251 template<
class VolFieldType>
252 VolFieldType& getOrReadField
255 const word& fieldName
274 const word& modelType,
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void operator=(const MapFieldConstraint &)=delete
No copy assignment.
A class for managing references or pointers (no reference counting)
virtual ~MapFieldConstraint()=default
Destructor.
Info<< "Create engine time\"<< endl;autoPtr< engineTime > runTimePtr(engineTime::New(Time::controlDictName, args.rootPath(), args.caseName()))
vectorField pointField
pointField is a vectorField.
A class for handling words, derived from Foam::string.
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.
The MapFieldConstraint constrains values of given fields of Type with a source field from an external...
List< word > wordList
List of word.
vector point
Point is a vector.
Mesh data needed to do the Finite Volume discretisation.
virtual bool isActive()
Is the source active?
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
MapFieldConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
List< label > labelList
A List of labels.
virtual bool read(const dictionary &dict)
Read source dictionary.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
virtual void constrain(fvMatrix< Type > &eqn, const label)
Set value on field.
bool active_
Source active flag.
TypeName("MapFieldConstraint")
Runtime type information.