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

ogstools.propertylib.vector2scalar.von_mises(vals)[source]#

Calculate the von Mises stress based on the input array.

Parameters:

vals (ndarray) – The input array.

Returns:

The von Mises stress values.

Return type:

ndarray

ogstools.propertylib.vector2scalar.qp_ratio(vals)[source]#

Calculate the QP ratio (von Mises stress / effective pressure).

Parameters:

vals (ndarray) – The input array.

Returns:

The QP ratios.

Return type:

ndarray