Go to the source code of this file.
|
| | post.d = sys.argv[1] |
| int | post.L = float(sys.argv[2]) if len(sys.argv) > 2 else 1.6 |
| | post.hdr = open(f"{d}/err.log").readline() |
| | post.mu_l = float(re.search(r"mu2 (\S+)", hdr).group(1)) |
| | post.N = int(re.search(r"# N (\d+)", hdr).group(1)) |
| | post.H = np.loadtxt(f"{d}/log.dat") |
| | post.t |
| | post.ub |
| | post.um |
| | post.uz |
| | post.xc |
| | post.cum = np.concatenate(([0.0], np.cumsum(0.5 * (um[1:] + um[:-1]) * np.diff(t)))) |
| | post.xr = xc - cum |
| dict | post.cols = {"drift": (ub - um) / mu_l, "zm": (ub - uz) / mu_l, "abs": ub / mu_l, "umix": um / mu_l} |
| | post.xe = xr[-1] |
| dict | post.A = {k: wmean(v, xe, xe - 2 * L) for k, v in cols.items()} |
| | post.B = wmean(cols["drift"], xe - 2 * L, xe - 4 * L) |
| int | post.m = xr > xe - 2 * L |
| | post.ta = t[m][0] |
| tuple | post.rc = (xe - xr[m][0]) / (t[-1] - ta) / mu_l |