69 Field<Type>(ptf, mapper),
109 internalField_(ptf.internalField_)
132 return internalField_.
db();
139 if (&patch_ != &(ptf.patch_))
142 <<
"different patches for faePatchField<Type>s"
232 if (&patch_ != &ptf.
patch())
235 <<
"incompatible patches for patch fields"
249 if (&patch_ != &ptf.
patch())
252 <<
" incompatible patches for patch fields"
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
void operator=(const Field< Type > &)
Copy assignment.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void operator+=(const UList< Type > &)
void operator-=(const UList< Type > &)
void operator*=(const UList< scalar > &)
void operator/=(const UList< scalar > &)
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
const objectRegistry & db() const noexcept
Return the local objectRegistry.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
A FieldMapper for finite-area patch fields.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
virtual void write(Ostream &) const
Write.
const faPatch & patch() const
Return patch.
const objectRegistry & db() const
Return local objectRegistry.
virtual void operator=(const UList< Type > &)
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const faePatchField< Type > &, const labelList &)
Reverse map the given faePatchField onto this faePatchField.
virtual bool write()
Write the output fields.
Registry of regIOobjects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static void check(const int retVal, const char *what)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
errorManip< error > abort(error &err)
A non-counting (dummy) refCount.