Go to the documentation of this file.
62 << typeName <<
" condition can only be applied to fixed value "
82 scalePtr_(ptf.scalePtr_.clone(
p.
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);
136 const fvPatchField<Type>& ptf,
142 const scaledFixedValueFvPatchField& sptf =
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;
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
List< label > labelList
A List of labels.
virtual void write(Ostream &) const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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))
virtual Ostream & beginBlock(const keyType &kw)
This condition applies a scalar multiplier to the value of another boundary condition.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
autoPtr< PatchFunction1< scalar > > scalePtr_
virtual void write(Ostream &) const
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void autoMap(const fvPatchFieldMapper &m)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
scaledFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
const fvPatchField< Type > & refValue() const
virtual Ostream & endBlock()
virtual void rmap(const fvPatchField< Type > &, const labelList &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual bool write(const token &tok)=0
virtual void updateCoeffs()
void operator=(const Field< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
const TargetType * isA(const Type &t)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void operator==(const fvPatchField< Type > &ptf)
virtual tmp< fvPatchField< Type > > clone() const
virtual void updateCoeffs()
void write(vtk::formatter &fmt, const Type &val, const label n=1)
const polyPatch & patch() const
#define FatalIOErrorInFunction(ios)
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
tmp< fvPatchField< Type > > refValuePtr_
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
constant condensation/saturation model.
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
virtual void autoMap(const fvPatchFieldMapper &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)