A generator class returning a gaussian distributed random number.
The time value with time-stepping information, user-defined remapping, etc.
label timeIndex() const noexcept
Return the current time index.
void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
static point getPositionOfMaximum(const scalarField &vals, const pointField &locs)
Return the location of the max value.
const TimeState * timeState() const noexcept
Reference to the current time-state (can be nullptr).
static point getPositionOfMinimum(const scalarField &vals, const pointField &locs)
Return the location of the min value.
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.
Tuple2< T1, T2 > findMaxData(const Field< T1 > &vals, const Field< T2 > &data)
Locate the max value in a field and return it and associated data.
Tuple2< T1, T2 > findMinData(const Field< T1 > &vals, const Field< T2 > &data)
Locate the min value in a field and return it and associated data.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.