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

Classes

class  PlanarGeo
class  CircleCase
class  CircleGeo

Functions

 poly_frac (phi, x0, y0, h)
 seg_frac (n, ref, s0, x0, y0, e, kern, h)
 build (case, geo, rule="band-avg")
 solve_err (case, geo, rule="band-avg")

Variables

 GL_X
 GL_W
 G8_X
 G8_W

Detailed Description

mac2d generalised to per-cell planes (architect follow-up Q-A, 2026-10-31).

Only the production configuration of mac2d: scheme 'sharp', SHARP_BASE 'facef', FCORR 'fit', DNN_W 'all'.
Geometry goes through a geo object so that a curved interface (circle) can carry one PLIC plane per mixed
cell, edge (node) owners, and a per-cell fit normal chosen by a rule.  PlanarGeo reproduces mac2d.
tau rules: 'band-avg' (mean over band cells among the 4), 'mixed-avg' (interfacial cells only), 'owner'.

Function Documentation

◆ poly_frac()

mac2dc.poly_frac ( phi,
x0,
y0,
h )

Definition at line 21 of file mac2dc.py.

◆ seg_frac()

mac2dc.seg_frac ( n,
ref,
s0,
x0,
y0,
e,
kern,
h )

Definition at line 40 of file mac2dc.py.

Referenced by mac2dc.CircleGeo.mid_frac(), and mac2dc.CircleGeo.node_frac().

◆ build()

mac2dc.build ( case,
geo,
rule = "band-avg" )

Definition at line 284 of file mac2dc.py.

Referenced by solve_err().

◆ solve_err()

mac2dc.solve_err ( case,
geo,
rule = "band-avg" )

Definition at line 495 of file mac2dc.py.

References build().

Variable Documentation

◆ GL_X

mac2dc.GL_X

Definition at line 17 of file mac2dc.py.

◆ GL_W

mac2dc.GL_W

Definition at line 17 of file mac2dc.py.

◆ G8_X

mac2dc.G8_X

Definition at line 18 of file mac2dc.py.

◆ G8_W

mac2dc.G8_W

Definition at line 18 of file mac2dc.py.