Go to the documentation of this file.
62 << typeName <<
" condition can only be applied to fixed value "
67 const scalarField s(scalePtr_->value(this->db().time().timeOutputValue()));
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);
177 os.beginBlock(
"refValue");
178 refValuePtr_->write(
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...
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))
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...
#define forAll(list, i)
Loop across all elements in list.
autoPtr< PatchFunction1< scalar > > scalePtr_
Scalar scale factor.
virtual void write(Ostream &) const
Write.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
scaledFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
const fvPatchField< Type > & refValue() const
Return the reference value condition.
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...
errorManipArg< error, int > exit(error &err, const int errNo=1)
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void operator==(const fvPatchField< Type > &ptf)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const polyPatch & patch() const
Return the polyPatch.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
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)
Reverse map the given fvPatchField onto this fvPatchField.
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)
String evaluation with specified (positive, non-zero) field width.