46 field.
time().userUnits(),
56 field.
time().userUnits(),
63 "coneDirectionRndGen",
80 thetaInner_(cdlvfs.thetaInner_, false),
81 thetaOuter_(cdlvfs.thetaOuter_, false),
82 rndGen_(cdlvfs.rndGen_),
105 rndGen_.start(timeIndex_ == field_.time().timeIndex());
106 timeIndex_ = field_.time().timeIndex();
121 tt1Dir*
cos(tphi()) + tt2Dir*
sin(tphi())
136 rndGen_.scalar01(subMesh.
size())
142 (1 - tfrac())*
sqr(tthetaInner)
143 + tfrac()*
sqr(tthetaOuter)
149 return cos(theta)*axis +
sin(theta)*tDir;
158 field_.time().userUnits(),
166 field_.time().userUnits(),
171 writeEntry(os,
"coneDirectionRndGen", 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,...
Mix-in for source conditions that provides a random injection direction between two cone angles.
void write(Ostream &) const
Write.
~coneDirectionLagrangianVectorFieldSource()
Destructor.
coneDirectionLagrangianVectorFieldSource(const LagrangianFieldSourceBase &, const dictionary &dict)
Construct from a dictionary.
tmp< LagrangianSubVectorField > direction(const LagrangianSubVectorField &axis) const
Return the value for an instantaneous injection.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for managing temporary objects.
void clear() const
If object pointer points to valid object:
const scalar twoPi(2 *pi)
const dimensionSet & dimless
dimensionedScalar sin(const dimensionedScalar &ds)
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensionSet normalised(const dimensionSet &)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensionSet perpendicular(const dimensionSet &)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
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)