32 Foam::scalar Foam::distributionSizeGroupFvScalarFieldSource::eta
39 const diameterModels::sizeGroup& fi =
40 refCast<const diameterModels::sizeGroup>(internalField());
46 fi.group().popBal().etaV(fi.i(), distribution_()).value()
52 Info<< typeName <<
": Size group #" << fi.i() <<
" is receiving "
53 << 100*etaPtr_() <<
"\% of source " << model.name() <<
endl;
70 fvScalarFieldSource(iF,
dict),
86 fvScalarFieldSource(field, iF),
87 distribution_(field.distribution_, false),
111 model.
name() +
":" + this->internalField().name() +
"SourceValue",
112 this->internalField().mesh(),
140 model.
name() +
":" + this->internalField().name() +
"InternalCoeff",
141 this->internalField().mesh(),
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 tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
void set(T *)
Set pointer to that given.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Source condition for size-group fractions that sets values corresponding to a given distribution.
virtual ~distributionSizeGroupFvScalarFieldSource()
Destructor.
virtual void write(Ostream &) const
Write.
virtual tmp< DimensionedField< scalar, volMesh > > sourceValue(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the source value.
distributionSizeGroupFvScalarFieldSource(const DimensionedField< scalar, volMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
virtual tmp< DimensionedField< scalar, volMesh > > internalCoeff(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the internal coefficient.
Base class for statistical distributions.
const word & name() const
Return const access to the source name.
Base class for finite volume sources.
A class for managing temporary objects.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
makeTypeFieldSource(fvScalarFieldSource, turbulentIntensityKineticEnergyFvScalarFieldSource)
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)