void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
The time value with time-stepping information, user-defined remapping, etc.
static point getPositionOfMaximum(const scalarField &vals, const pointField &locs)
Return the location of the max value.
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.
const TimeState * timeState() const noexcept
Reference to the current time-state (can be nullptr)
label timeIndex() const noexcept
Return the current time index.
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.
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.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A generator class returning a gaussian distributed random number.
static point getPositionOfMinimum(const scalarField &vals, const pointField &locs)
Return the location of the min value.