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

Public Member Functions

 __init__ (self, n, L, sdf, periodic)

Public Attributes

 n
 h
 periodic = n, L / n, periodic
 ax = np.zeros((n, n + 1))
tuple unknown = (self.ax[1:, :] + self.ax[:-1, :] + self.ay[:, 1:] + self.ay[:, :-1]) > 0
 alpha = np.where(self.unknown & (A > 1e-14 * h), A / h**2, 0.0)
float supp = 0.5 * (np.abs(nx) + np.abs(ny))

Detailed Description

n x n cells on [0, L]^2; sdf(x, y) > 0 fluid; periodic or Dirichlet box.

Definition at line 33 of file mg_coarse_wall.py.

Constructor & Destructor Documentation

◆ __init__()

mg_coarse_wall.Geo.__init__ ( self,
n,
L,
sdf,
periodic )

Definition at line 35 of file mg_coarse_wall.py.

Member Data Documentation

◆ n

◆ h

◆ periodic

mg_coarse_wall.Geo.periodic = n, L / n, periodic

Definition at line 36 of file mg_coarse_wall.py.

◆ ax

mg_coarse_wall.Geo.ax = np.zeros((n, n + 1))

Definition at line 40 of file mg_coarse_wall.py.

◆ unknown

tuple mg_coarse_wall.Geo.unknown = (self.ax[1:, :] + self.ax[:-1, :] + self.ay[:, 1:] + self.ay[:, :-1]) > 0

Definition at line 52 of file mg_coarse_wall.py.

◆ alpha

mg_coarse_wall.Geo.alpha = np.where(self.unknown & (A > 1e-14 * h), A / h**2, 0.0)

Definition at line 55 of file mg_coarse_wall.py.

◆ supp

float mg_coarse_wall.Geo.supp = 0.5 * (np.abs(nx) + np.abs(ny))

Definition at line 56 of file mg_coarse_wall.py.


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