88 const uniformFixedGradientFvPatchField<Type>& ptf,
90 const DimensionedField<Type, volMesh>& iF,
91 const fvPatchFieldMapper& mapper
95 refGradFunc_(ptf.refGradFunc_.clone())
106 refGradFunc_(ptf.refGradFunc_.clone())
118 refGradFunc_(ptf.refGradFunc_.clone())
138 const scalar t = this->db().time().timeOutputValue();
142 this->gradient() = refGradFunc_->value(t);
146 this->gradient() =
Zero;
159 refGradFunc_->writeData(
os);
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
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.
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 readDict(const dictionary &dict)
Read dictionary entries.
virtual void write(Ostream &) const
Write.
Generic templated field type.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition supplies a fixed gradient condition, such that the patch values are calculate...
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.
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.
static constexpr const zero Zero
Global zero (0)