45 field.
time().userUnits(),
55 field.
time().userUnits(),
65 field.
time().userUnits(),
89 normal_(cdlvfs.normal_, false),
90 thetaInner_(cdlvfs.thetaInner_, false),
91 thetaOuter_(cdlvfs.thetaOuter_, false),
92 rndGen_(cdlvfs.rndGen_),
115 rndGen_.start(timeIndex_ == field_.time().timeIndex());
116 timeIndex_ = field_.time().timeIndex();
134 rndGen_.scalarAB(subMesh.
size(), -1, 1)
139 (1 - tmagFrac())*tthetaInner
140 + tmagFrac()*tthetaOuter
145 return cos(theta)*axis +
sign(tfrac)*
sin(theta)*tangential;
156 field_.time().userUnits(),
164 field_.time().userUnits(),
169 writeEntry(os,
"fanDirectionRndGen", rndGen_);
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 GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
const GeoMesh & mesh() const
Return mesh.
tmp< LagrangianSubField< Type > > value(const LagrangianSubMesh &subMesh, const Function1< Type > &function) const
Return the source value.
Run-time selectable general function of one variable.
Base class for Lagrangian source conditions.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mix-in for source conditions that provides a random injection direction between two fan angles.
~fanDirectionLagrangianVectorFieldSource()
Destructor.
void write(Ostream &) const
Write.
fanDirectionLagrangianVectorFieldSource(const LagrangianFieldSourceBase &, const dictionary &dict)
Construct from a dictionary.
tmp< LagrangianSubVectorField > direction(const LagrangianSubVectorField &axis) const
Return the value for an instantaneous injection.
A class for managing temporary objects.
void clear() const
If object pointer points to valid object:
const dimensionSet dimless
const dimensionSet & dimless
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar sin(const dimensionedScalar &ds)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensionedScalar cos(const dimensionedScalar &ds)