41 uniformValue_(nullptr)
54 uniformValue_(nullptr)
69 if (
dict.found(
"value"))
86 const uniformFixedValueFvPatchField<Type>& ptf,
88 const DimensionedField<Type, volMesh>& iF,
89 const fvPatchFieldMapper& mapper
92 fixedValueFvPatchField<Type>(
p, iF),
93 uniformValue_(ptf.uniformValue_.clone(
p.
patch()))
95 if (mapper.direct() && !mapper.hasUnmapped())
98 this->
map(ptf, mapper);
111 const uniformFixedValueFvPatchField<Type>& ptf
115 uniformValue_(ptf.uniformValue_.clone(this->
patch().
patch()))
127 uniformValue_(ptf.uniformValue_.clone(this->
patch().
patch()))
140 uniformValue_().autoMap(mapper);
142 if (uniformValue_().constant())
153 const fvPatchField<Type>& ptf,
159 const uniformFixedValueFvPatchField& tiptf =
160 refCast<const uniformFixedValueFvPatchField>(ptf);
162 uniformValue_().rmap(tiptf.uniformValue_(), addr);
174 const scalar t = this->db().time().timeOutputValue();
184 uniformValue_->writeData(
os);
185 this->writeEntry(
"value",
os);
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...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
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 evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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.