probably working combined code :D

This commit is contained in:
Brantegger Georg
2022-07-05 16:02:55 +02:00
parent 7506da8b2e
commit b03bb43c63
6 changed files with 326 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
import numpy as np
from Ausgleichsbecken_functions import FODE_function, get_h_halfstep, get_p_halfstep
# from Ausgleichsbecken_functions import FODE_function, get_h_halfstep, get_p_halfstep
#importing pressure conversion function
import sys
@@ -9,6 +9,11 @@ parent = os.path.dirname(current)
sys.path.append(parent)
from functions.pressure_conversion import pressure_conversion
def FODE_function(x, h, alpha, p, rho=1000., g=9.81):
f = x*abs(x)/h*alpha+g-p/(rho*h)
return f
class Ausgleichsbecken_class:
# units
# make sure that units and print units are the same