Go to the documentation of this file.
38 const DimensionedField<Type, areaMesh>& iF
41 Field<Type>(
p.size()),
45 patchType_(word::null)
53 const DimensionedField<Type, areaMesh>& iF,
61 patchType_(word::null)
68 const faPatchField<Type>& ptf,
70 const DimensionedField<Type, areaMesh>& iF,
71 const faPatchFieldMapper& mapper
74 Field<Type>(ptf, mapper),
78 patchType_(word::null)
86 const DimensionedField<Type, areaMesh>& iF,
87 const dictionary&
dict
90 Field<Type>(
p.size()),
94 patchType_(
dict.getOrDefault<word>(
"patchType", word::null))
96 if (
dict.found(
"value"))
100 Field<Type>(
"value",
dict,
p.size())
113 const faPatchField<Type>& ptf
118 internalField_(ptf.internalField_),
120 patchType_(ptf.patchType_)
127 const faPatchField<Type>& ptf,
128 const DimensionedField<Type, areaMesh>& iF
135 patchType_(ptf.patchType_)
145 return internalField_.
db();
152 if (&patch_ != &(ptf.patch_))
155 <<
"different patches for faPatchField<Type>s"
164 return (*
this - patchInternalField())*patch_.deltaCoeffs();
172 return patch_.patchInternalField(internalField_);
209 os.writeEntry(
"type",
type());
211 if (patchType_.size())
213 os.writeEntry(
"patchType", patchType_);
223 const UList<Type>& ul
233 const faPatchField<Type>& ptf
244 const faPatchField<Type>& ptf
255 const faPatchField<Type>& ptf
266 const faPatchField<scalar>& ptf
269 if (&patch_ != &ptf.
patch())
272 <<
"incompatible patches for patch fields"
283 const faPatchField<scalar>& ptf
286 if (&patch_ != &ptf.
patch())
289 <<
" incompatible patches for patch fields"
300 const Field<Type>& tf
310 const Field<Type>& tf
390 const faPatchField<Type>& ptf
400 const Field<Type>& tf
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void write(Ostream &) const
virtual tmp< Field< Type > > snGrad() const
void operator-=(const UList< Type > &)
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))
A class for managing temporary objects.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
void check(const faPatchField< Type > &) const
friend Ostream & operator(Ostream &, const faPatchField< Type > &)
void operator+=(const UList< Type > &)
virtual void autoMap(const faPatchFieldMapper &)
Registry of regIOobjects.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
static void check(const int retVal, const char *what)
Generic templated field type.
virtual tmp< Field< Type > > patchInternalField() const
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
errorManip< error > abort(error &err)
void operator=(const Field< Type > &)
void operator/=(const UList< scalar > &)
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName::Type type(const fileName &name, const bool followLink=true)
const objectRegistry & db() const
virtual void rmap(const faPatchField< Type > &, const labelList &)
void operator*=(const UList< scalar > &)
Ostream & writeEntry(const keyType &key, const T &value)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const faPatch & patch() const
virtual void operator=(const UList< Type > &)
const objectRegistry & db() const noexcept