91 const uniformFixedGradientFaPatchField<Type>& ptf,
93 const DimensionedField<Type, areaMesh>& iF,
94 const faPatchFieldMapper& mapper
98 refGradFunc_(ptf.refGradFunc_.clone())
109 refGradFunc_(ptf.refGradFunc_.clone())
121 refGradFunc_(ptf.refGradFunc_.clone())
141 const scalar t = this->db().time().timeOutputValue();
146 this->gradient() = refGradFunc_->value(t);
150 this->gradient() =
Zero;
163 refGradFunc_->writeData(
os);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
This boundary condition supplies a fixed gradient condition, such that the patch values are calculate...
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
void extrapolateInternal()
Assign the patch field from the internal field.
virtual void write(Ostream &) const
Write.
Generic templated field type.
OBJstream os(runTime.globalPath()/outputName)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
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.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
static constexpr const zero Zero
Global zero (0)