|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Public Member Functions | |
| __init__ (self, outlier, block, sigma=0.0, seed=20261002) | |
| step (self) | |
| monitor (self) | |
| monitor_exact (self) | |
Public Attributes | |
| dict | f = {k: np.zeros(E, order="F") for k in ("u", "v", "w", "p")} |
| diagnostics = _Diag(self) | |
| inner = np.flatnonzero(inner.reshape(-1, order="F")) | |
| lam = np.zeros(int(np.prod(E))) | |
| c = np.ones_like(self.lam) | |
| i0 | |
| i1 = self.inner[nb + 1], self.inner[nb + 2] | |
| B = np.asarray(block, float) | |
| sigma = sigma | |
| rng = np.random.default_rng(seed) | |
| dict | u = self.f["u"].reshape(-1, order="F") |
| xstar = xs | |
x <- lam x + c on u, plus the 2x2 block B on two inner entries; optional noise.
Definition at line 55 of file anderson_synthetic_maps.py.
| anderson_synthetic_maps.LinearMapSolver.__init__ | ( | self, | |
| outlier, | |||
| block, | |||
| sigma = 0.0, | |||
| seed = 20261002 ) |
Definition at line 58 of file anderson_synthetic_maps.py.
| anderson_synthetic_maps.LinearMapSolver.step | ( | self | ) |
Definition at line 80 of file anderson_synthetic_maps.py.
References B, c, EdgeQ.c, peclet::flow::ScalarField.c, peclet::flow::vof::SharpFaceProps.c, peclet::flow::vof::VofBlockJob.c, peclet::flow::vof::VofBlockSet::DebrisJob.c, peclet::flow::vof::VofCurvFallbackJob.c, peclet::flow::vof::VofCurvJob.c, peclet::flow::vof::VofPvOnTheFly< SF >.c, peclet::flow::vof::VofStatsPrev.c, i0, peclet::flow::LineScratchGlobal< SV >.i0, i1, anderson_oracle.AndersonOracle.inner, inner, Level.inner, peclet::flow::BottomLabelKernel.inner, peclet::flow::BottomLevel.inner, peclet::flow::CutcellMG::Level.inner, peclet::flow::ScalarMG::Level.inner, peclet::flow::VelocityMG::Level.inner, lam, peclet::flow::ScalarCutState.lam, peclet::flow::ScalarMG::Inputs.lam, peclet::flow::sco::MaterialTable.lam, peclet::flow::smg::GuardedProduct.lam, Units.lam, rng, sigma, CapScene.sigma, Cfg.sigma, DropCfg.sigma, peclet::flow::ChebCoeffs.sigma, peclet::flow::vof::VofBlockSet.sigma, peclet::flow::vof::VofDynamicWetting.sigma, u, Fields.u, PcRun.u, peclet::flow::BottomDirect< FacReal >.u, peclet::flow::Solver< Grid >::Comp.u, peclet::flow::vof::VofBlockJob.u, State.u, and Tgv.u.
| anderson_synthetic_maps.LinearMapSolver.monitor | ( | self | ) |
Definition at line 91 of file anderson_synthetic_maps.py.
References anderson_oracle.AndersonOracle.inner, inner, Level.inner, peclet::flow::BottomLabelKernel.inner, peclet::flow::BottomLevel.inner, peclet::flow::CutcellMG::Level.inner, peclet::flow::ScalarMG::Level.inner, peclet::flow::VelocityMG::Level.inner, mean(), u, Fields.u, PcRun.u, peclet::flow::BottomDirect< FacReal >.u, peclet::flow::Solver< Grid >::Comp.u, peclet::flow::vof::VofBlockJob.u, State.u, and Tgv.u.
| anderson_synthetic_maps.LinearMapSolver.monitor_exact | ( | self | ) |
Definition at line 94 of file anderson_synthetic_maps.py.
References anderson_oracle.AndersonOracle.inner, inner, Level.inner, peclet::flow::BottomLabelKernel.inner, peclet::flow::BottomLevel.inner, peclet::flow::CutcellMG::Level.inner, peclet::flow::ScalarMG::Level.inner, peclet::flow::VelocityMG::Level.inner, mean(), and xstar.
| dict anderson_synthetic_maps.LinearMapSolver.f = {k: np.zeros(E, order="F") for k in ("u", "v", "w", "p")} |
Definition at line 59 of file anderson_synthetic_maps.py.
| anderson_synthetic_maps.LinearMapSolver.diagnostics = _Diag(self) |
Definition at line 61 of file anderson_synthetic_maps.py.
| anderson_synthetic_maps.LinearMapSolver.inner = np.flatnonzero(inner.reshape(-1, order="F")) |
Definition at line 64 of file anderson_synthetic_maps.py.
Referenced by monitor(), monitor_exact(), and step().
| anderson_synthetic_maps.LinearMapSolver.lam = np.zeros(int(np.prod(E))) |
Definition at line 66 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.c = np.ones_like(self.lam) |
Definition at line 69 of file anderson_synthetic_maps.py.
Referenced by packing2d.System.add(), mac2dc.CircleCase.cell_frac(), mac2dc.CircleCase.face_avg(), mac2d.Case.phi(), mac2dc.CircleCase.phi(), mac2dc.CircleCase.row_force(), packing2d.System.solve(), step(), mac2d.Case.vel(), mac2dc.CircleCase.vel(), and gsv1.Case.xi().
| anderson_synthetic_maps.LinearMapSolver.i0 |
Definition at line 70 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.i1 = self.inner[nb + 1], self.inner[nb + 2] |
Definition at line 70 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.B = np.asarray(block, float) |
Definition at line 71 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.sigma = sigma |
Definition at line 72 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.rng = np.random.default_rng(seed) |
Definition at line 73 of file anderson_synthetic_maps.py.
Referenced by step().
| anderson_synthetic_maps.LinearMapSolver.u = self.f["u"].reshape(-1, order="F") |
Definition at line 74 of file anderson_synthetic_maps.py.
| anderson_synthetic_maps.LinearMapSolver.xstar = xs |
Definition at line 78 of file anderson_synthetic_maps.py.
Referenced by monitor_exact().