MCPcopy Create free account
hub / github.com/cselab/aphros / GetReff

Function GetReff

deploy/scripts/aphros/plot.py:526–532  ·  view source on GitHub ↗
(vf, dim)

Source from the content-addressed store, hash-verified

524
525# Returns effective radius
526def GetReff(vf, dim):
527 x1, y1, z1, hx, hy, hz = GetGeom(vf.shape)
528 # cell volume
529 vc = hx * hy * hz
530 # integral of vf
531 v = vf.sum() * vc
532 return GetReff2(v / hz) if dim == 2 else GetReff3(v)
533
534
535# Returns path template from sample path

Callers

nothing calls this directly

Calls 4

GetGeomFunction · 0.85
GetReff2Function · 0.85
GetReff3Function · 0.85
sumMethod · 0.80

Tested by

no test coverage detected