flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
anderson_synthetic_maps.LinearMapSolver Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

anderson_synthetic_maps.LinearMapSolver.__init__ ( self,
outlier,
block,
sigma = 0.0,
seed = 20261002 )

Definition at line 58 of file anderson_synthetic_maps.py.

Member Function Documentation

◆ step()

◆ monitor()

◆ monitor_exact()

Member Data Documentation

◆ f

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.

◆ diagnostics

anderson_synthetic_maps.LinearMapSolver.diagnostics = _Diag(self)

Definition at line 61 of file anderson_synthetic_maps.py.

◆ inner

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().

◆ lam

anderson_synthetic_maps.LinearMapSolver.lam = np.zeros(int(np.prod(E)))

Definition at line 66 of file anderson_synthetic_maps.py.

Referenced by step().

◆ c

◆ i0

anderson_synthetic_maps.LinearMapSolver.i0

Definition at line 70 of file anderson_synthetic_maps.py.

Referenced by step().

◆ i1

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().

◆ B

anderson_synthetic_maps.LinearMapSolver.B = np.asarray(block, float)

Definition at line 71 of file anderson_synthetic_maps.py.

Referenced by step().

◆ sigma

anderson_synthetic_maps.LinearMapSolver.sigma = sigma

Definition at line 72 of file anderson_synthetic_maps.py.

Referenced by step().

◆ rng

anderson_synthetic_maps.LinearMapSolver.rng = np.random.default_rng(seed)

Definition at line 73 of file anderson_synthetic_maps.py.

Referenced by step().

◆ u

anderson_synthetic_maps.LinearMapSolver.u = self.f["u"].reshape(-1, order="F")

Definition at line 74 of file anderson_synthetic_maps.py.

Referenced by monitor(), and step().

◆ xstar

anderson_synthetic_maps.LinearMapSolver.xstar = xs

Definition at line 78 of file anderson_synthetic_maps.py.

Referenced by monitor_exact().


The documentation for this class was generated from the following file: