Skip to content

adding library for nonlinear watermodels

joergbuchwald requested to merge joergbuchwald/ogstools:watermodels into main

Purpose

Library for nonlinear water models

Features

  • library makes it easy to compare different nonlinear water properties (density, viscosity, specific heat capacity...) and to explore their definition domains
  • exports formula to exprtk to be used as Function parameter in MPL

Application background

  • enables more precise modelling of water properties at high T/p

Categories

  • preprocessing
  • postprocessing
  • visualization
  • HPC
  • application specific scripts
  • add your own category...

Example

import numpy as np
import matplotlib.pyplot as plt
from water.water import WATER
temp = np.array([0.0, 4., 10., 20., 30., 40., 50., 60., 70., 80., 90., 140., 200.,260.])+273.15
w0 = WATER(rho=0)
w1 = WATER(rho=1)
w2 = WATER(rho=2)
plt.plot(temp, w0.rho.value(temp))
plt.plot(temp, w1.rho.value(temp))
plt.plot(temp, w2.rho.value(temp))
plt.show()

Merge request reports

Loading