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);
125 if (scalePtr_().constant())
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;
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
tmp< fvPatchField< Type > > refValuePtr_
Condition to supply the reference value.
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
Typename for Field.
This condition applies a scalar multiplier to the value of another boundary condition.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
virtual Ostream & endBlock()
Write end block group.
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.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
autoPtr< PatchFunction1< scalar > > scalePtr_
Scalar scale factor.
scaledFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< Type > &)
Copy assignment.
virtual void operator==(const fvPatchField< Type > &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
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.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
List< label > labelList
A List of labels.
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 void write(Ostream &) const
Write.
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...