Go to the documentation of this file.
41 const DimensionedField<Type, surfaceMesh>& iF
44 Field<Type>(
p.size()),
54 const DimensionedField<Type, surfaceMesh>& iF,
67 const fvsPatchField<Type>& ptf,
69 const DimensionedField<Type, surfaceMesh>& iF,
70 const fvPatchFieldMapper& mapper
73 Field<Type>(ptf, mapper),
83 const DimensionedField<Type, surfaceMesh>& iF,
84 const dictionary&
dict
87 Field<Type>(
p.size()),
91 if (
dict.found(
"value"))
95 Field<Type>(
"value",
dict,
p.size())
101 <<
"Essential entry 'value' missing on patch " <<
p.name() <<
nl
112 internalField_(ptf.internalField_)
119 const fvsPatchField<Type>& ptf,
120 const DimensionedField<Type, surfaceMesh>& iF
134 return patch_.boundaryMesh().mesh();
141 if (&patch_ != &(ptf.patch_))
144 <<
"different patches for fvsPatchField<Type>s"
153 const bool oriented = internalField_.oriented()();
172 os.writeEntry(
"type",
type());
173 this->writeEntry(
"value",
os);
182 const UList<Type>& ul
192 const fvsPatchField<Type>& ptf
203 const fvsPatchField<Type>& ptf
214 const fvsPatchField<Type>& ptf
225 const fvsPatchField<scalar>& ptf
228 if (&patch_ != &ptf.
patch())
231 <<
"incompatible patches for patch fields"
242 const fvsPatchField<scalar>& ptf
245 if (&patch_ != &ptf.
patch())
258 const Field<Type>& tf
268 const Field<Type>& tf
348 const fvsPatchField<Type>& ptf
358 const Field<Type>& tf
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void operator-=(const UList< Type > &)
const objectRegistry & db() const
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))
void autoMap(const FieldMapper &map, const bool applyFlip=true)
friend Ostream & operator(Ostream &, const fvsPatchField< Type > &)
void operator+=(const UList< Type > &)
Registry of regIOobjects.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
static void check(const int retVal, const char *what)
Generic templated field type.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
fvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
virtual void write(Ostream &) const
virtual bool write(const token &tok)=0
errorManip< error > abort(error &err)
void operator=(const Field< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
void operator/=(const UList< scalar > &)
#define FatalErrorInFunction
const fvPatch & patch() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void rmap(const fvsPatchField< Type > &, const labelList &)
fileName::Type type(const fileName &name, const bool followLink=true)
void operator*=(const UList< scalar > &)
Ostream & writeEntry(const keyType &key, const T &value)
#define FatalIOErrorInFunction(ios)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void autoMap(const fvPatchFieldMapper &)
void check(const fvsPatchField< Type > &) const