flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
collocated_longmarch.py File Reference

Go to the source code of this file.

Namespaces

namespace  collocated_longmarch

Functions

 collocated_longmarch._collocated_mode (s, mode)
 collocated_longmarch.bed_sdf (N, npz)

Variables

 collocated_longmarch.flow = ensure_flow()
 collocated_longmarch.BED = os.environ["BED"]
 collocated_longmarch.N = int(os.environ.get("N", "192"))
 collocated_longmarch.STEPS = int(os.environ.get("STEPS", "20000"))
 collocated_longmarch.EVERY = int(os.environ.get("EVERY", "500"))
 collocated_longmarch.DT = float(os.environ.get("DT", "60.0"))
 collocated_longmarch.KIND = os.environ.get("KIND", "gauge-exact")
 collocated_longmarch.ROT = int(os.environ.get("ROT", "1"))
 collocated_longmarch.ROTF = int(os.environ.get("ROTF", "0"))
 collocated_longmarch.ROTW = float(os.environ.get("ROTW", "1"))
 collocated_longmarch.WALLW = float(os.environ.get("WALLW", "0"))
 collocated_longmarch.DTSWITCH
 collocated_longmarch.MU
 collocated_longmarch.F0
 collocated_longmarch.SHIFT = np.array([float(v) for v in os.environ.get("SHIFT", "0,0,0").split(",")])
 collocated_longmarch.sdf
 collocated_longmarch.R
str collocated_longmarch.sv = "stag" else flow.SolverColocated
str collocated_longmarch.s = sv(N, N, N)
 collocated_longmarch.cutcell_pressure
float collocated_longmarch.fluid = 0.0
 collocated_longmarch.flush
 collocated_longmarch.pk = None
 collocated_longmarch.Pprev = None
list collocated_longmarch.U = [np.asarray(s.get_u()), np.asarray(s.get_v()), np.asarray(s.get_w())]
int collocated_longmarch.us = float(np.abs(U[0][fluid]).mean()) + 1e-300
int collocated_longmarch.kc = float(U[0].mean()) * MU / F0 / R ** 2
float collocated_longmarch.m1 = 0.0
list collocated_longmarch.OX = [np.asarray(s.get_ox()), np.asarray(s.get_oy()), np.asarray(s.get_oz())]
int collocated_longmarch.kf = float((OX[0] * U[0]).mean()) * MU / F0 / R ** 2
 collocated_longmarch.div = np.zeros_like(U[0])
list collocated_longmarch.flx = OX[a] * U[a]
 collocated_longmarch.axis
int collocated_longmarch.m2 = float(np.sqrt((div[fluid] ** 2).mean())) / us
list collocated_longmarch.UF = [np.asarray(s.get_uf()), np.asarray(s.get_vf()), np.asarray(s.get_wf())]
float collocated_longmarch.m1sq = 0.0
float collocated_longmarch.half = 0.5 * (U[a] + np.roll(U[a], 1, axis=a))
list collocated_longmarch.op = OX[a] > 0
str collocated_longmarch.dk = "" if pk is None else f"{kc - pk:+.2e}"
str collocated_longmarch.dm = "" if pm is None else f"{m1 - pm:+.2e}"
 collocated_longmarch.Pf = np.asarray(s.get_p())
str collocated_longmarch.dP = "" if Pprev is None else f"{np.abs(Pf - Pprev).max():.3e}"
 collocated_longmarch.pm