62 <<
typeName <<
" condition can only be applied to fixed value "
82 scalePtr_(ptf.scalePtr_.clone(
p.patch())),
94 scalePtr_(spf.scalePtr_.clone(spf.patch().patch())),
95 refValuePtr_(spf.refValue().clone())
107 scalePtr_(spf.scalePtr_.clone(spf.patch().patch())),
108 refValuePtr_(spf.refValue().clone())
121 refValuePtr_->autoMap(m);
123 scalePtr_().autoMap(m);
143 refCast<const scaledFixedValueFvPatchField>(ptf);
145 refValuePtr_->rmap(sptf.
refValue(), addr);
147 scalePtr_().rmap(sptf.
scalePtr_(), addr);
159 refValuePtr_->evaluate();
161 const scalarField s(scalePtr_->value(this->db().time().timeOutputValue()));
175 scalePtr_->writeData(
os);
189 const scalarField s(scalePtr_->value(this->db().time().timeOutputValue()));
193 const scalar si =
s[facei];
194 if (
mag(si) > ROOTVSMALL)
196 refValuePtr_->operator[](facei) = ptf[facei]/si;
207 const scalarField s(scalePtr_->value(this->db().time().timeOutputValue()));
211 const scalar si =
s[facei];
212 if (
mag(si) > ROOTVSMALL)
214 refValuePtr_->operator[](facei) = tf[facei]/si;
225 const scalarField s(scalePtr_->value(this->db().time().timeOutputValue()));
229 const scalar si =
s[facei];
230 if (
mag(si) > ROOTVSMALL)
232 refValuePtr_->operator[](facei) = t/si;
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const char *const typeName
Typename for Field.
void operator=(const Field< Type > &)
Copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & endBlock()
Write end block group.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
constant condensation/saturation model.
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
This condition applies a scalar multiplier to the value of another boundary condition.
tmp< fvPatchField< Type > > refValuePtr_
Condition to supply the reference value.
autoPtr< PatchFunction1< scalar > > scalePtr_
Scalar scale factor.
const fvPatchField< Type > & refValue() const
Return the reference value condition.
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator==(const fvPatchField< Type > &ptf)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.