41 refValueFunc_(nullptr)
54 refValueFunc_(nullptr)
83 const uniformFixedValueFvPatchField<Type>& ptf,
85 const DimensionedField<Type, volMesh>& iF,
86 const fvPatchFieldMapper& mapper
89 fixedValueFvPatchField<Type>(
p, iF),
90 refValueFunc_(ptf.refValueFunc_.clone(
p.
patch()))
92 if (mapper.direct() && !mapper.hasUnmapped())
95 this->
map(ptf, mapper);
108 const uniformFixedValueFvPatchField<Type>& ptf
112 refValueFunc_(ptf.refValueFunc_.clone(this->
patch().
patch()))
124 refValueFunc_(ptf.refValueFunc_.clone(this->
patch().
patch()))
140 refValueFunc_().autoMap(mapper);
142 if (refValueFunc_().constant())
154 const fvPatchField<Type>& ptf,
160 const uniformFixedValueFvPatchField& tiptf =
161 refCast<const uniformFixedValueFvPatchField>(ptf);
163 if (refValueFunc_ && tiptf.refValueFunc_)
165 refValueFunc_().rmap(tiptf.refValueFunc_(), addr);
178 const scalar t = this->db().time().timeOutputValue();
191 refValueFunc_->writeData(
os);
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field, sets updated() to false.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
void extrapolateInternal()
Assign the patch field from the internal field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void operator==(const fvPatchField< Type > &)
Generic templated field type.
A FieldMapper for finite-volume patch fields.
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
List< label > labelList
A List of labels.