90 const uniformFixedGradientFaPatchField<Type>& ptf,
92 const DimensionedField<Type, areaMesh>& iF,
93 const faPatchFieldMapper& mapper
97 refGradFunc_(ptf.refGradFunc_.clone())
108 refGradFunc_(ptf.refGradFunc_.clone())
120 refGradFunc_(ptf.refGradFunc_.clone())
140 const scalar t = this->db().time().timeOutputValue();
145 this->gradient() = refGradFunc_->value(t);
149 this->gradient() =
Zero;
162 refGradFunc_->writeData(
os);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
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)