build a programm to test e-RK4-function - NOT WORKING YET

This commit is contained in:
Brantegger Georg
2022-06-14 14:25:51 +02:00
parent d73bc99f49
commit 115e59af3b
5 changed files with 189 additions and 5 deletions

View File

@@ -38,8 +38,8 @@ def get_h_halfstep(initial_height, influx, outflux, timestep, area):
def get_p_halfstep(p0, p1):
p_halfstep = (p0+p1)/2
def FODE_function(x, h, alpha, p, rho=1000, g=9.81):
f = x**2/h*alpha+g+p/(rho*h)
def FODE_function(x, h, alpha, p, rho=1000., g=9.81):
f = x**2/h*alpha+g-p/(rho*h)
return f