ogstools.propertylib.vector2scalar module#
Common engineering transformation functions.
- ogstools.propertylib.vector2scalar.trace(vals)[source]#
Calculate the trace of each vector in the input array.
- Parameters:
vals (ndarray) – The input array of vectors.
- Returns:
The trace values of the vectors.
- Return type:
ndarray
- ogstools.propertylib.vector2scalar.effective_pressure(vals)[source]#
Calculate the effective pressure based on the input array.
- Parameters:
vals (ndarray) – The input array.
- Returns:
The effective pressure values.
- Return type:
ndarray