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

Public Member Functions

 __init__ (self, N, alpha_deg, off_cells, muA, muB, kind, eps=1.0, tau0=1.0)
 phi (self, x, y)
 frac_line (self, x0, y0, e, kern)
 frac_cell (self, x0, y0)
 vel (self, x, y)
 force (self)
 tau_exact (self)
 face_avg (self, comp, x0, y0, e)

Public Attributes

 N
float h = N, 1.0 / N
 n = np.array([np.cos(a), np.sin(a)])
 t = np.array([-np.sin(a), np.cos(a)])
 c = np.array([0.5, 0.5])
float s = off_cells * self.h
 muA
 muB
str kind
 eps
 tau0 = muA, muB, kind, eps, tau0

Detailed Description

Definition at line 33 of file mac2d.py.

Constructor & Destructor Documentation

◆ __init__()

mac2d.Case.__init__ ( self,
N,
alpha_deg,
off_cells,
muA,
muB,
kind,
eps = 1.0,
tau0 = 1.0 )

Definition at line 34 of file mac2d.py.

Member Function Documentation

◆ phi()

mac2d.Case.phi ( self,
x,
y )

Definition at line 43 of file mac2d.py.

References anderson_synthetic_maps.LinearMapSolver.c, EdgeQ.c, gsv1.Case.c, c, packing2d.System.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, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, gsv1.PCase.n, gsv1.StepMap.n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.n, n, mg_advection.Case.n, mg_coarse_wall.Geo.n, packing2d.Cell.n, Patch.n, peclet::flow::BcVelFaces.n, peclet::flow::BottomPlanes.n, peclet::flow::CutcellMG::Level.n, peclet::flow::ScalarMG::Level.n, peclet::flow::scd::CutContext.n, peclet::flow::scg::ScalarFacetOverlay.n, peclet::flow::VelocityMG::Level.n, peclet::flow::vof::McVertex.n, peclet::flow::vof::PcGradFit.n, peclet::flow::vof::VofBlockExchange::GatherTable.n, peclet::flow::vof::VofBlockExchange::Patch.n, peclet::flow::vof::VofBlockJob.n, peclet::flow::vof::VofCurvFallbackJob.n, peclet::flow::vof::VofCurvJob.n, peclet::flow::vof::VofMoveJob.n, Problem.n, run_case_a.Dist.n, SphereArray.n, vofscene::Block.n, anderson_oracle.AndersonOracle.s, anderson_synthetic_maps._Diag.s, gsv1.Case.s, gsv1.StepMap.s, HostBottom.s, s, packing2d.Cell.s, peclet::flow::BcVelFace.s, peclet::flow::bindings::Diagnostics< Grid >.s, peclet::flow::BottomDirect< FacReal >.s, peclet::flow::BottomPlanes.s, peclet::flow::LineRowFp32.s, peclet::flow::LineRowFp64< OpV >.s, peclet::flow::ScalarVec.s, peclet::flow::vof::VofMoveJob.s, and Rng.s.

Referenced by face_avg(), frac_cell(), frac_line(), and vel().

◆ frac_line()

◆ frac_cell()

◆ vel()

mac2d.Case.vel ( self,
x,
y )

Definition at line 77 of file mac2d.py.

References anderson_synthetic_maps.LinearMapSolver.c, EdgeQ.c, gsv1.Case.c, c, packing2d.System.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, CapResult.eps, Cfg.eps, HostGeo.eps, eps, peclet::flow::vof::SharpGeom.eps, CapResult.kind, gsv1.Case.kind, gsv1.PCase.kind, kind, peclet::flow::Closure.kind, peclet::flow::scg::CellPass.kind, gsv1.Case.muA, gsv1.PCase.muA, HostGeo.muA, Kinked.muA, muA, peclet::flow::vof::SharpGeom.muA, gsv1.Case.muB, gsv1.PCase.muB, HostGeo.muB, Kinked.muB, muB, peclet::flow::vof::SharpGeom.muB, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, gsv1.PCase.n, gsv1.StepMap.n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.n, n, mg_advection.Case.n, mg_coarse_wall.Geo.n, packing2d.Cell.n, Patch.n, peclet::flow::BcVelFaces.n, peclet::flow::BottomPlanes.n, peclet::flow::CutcellMG::Level.n, peclet::flow::ScalarMG::Level.n, peclet::flow::scd::CutContext.n, peclet::flow::scg::ScalarFacetOverlay.n, peclet::flow::VelocityMG::Level.n, peclet::flow::vof::McVertex.n, peclet::flow::vof::PcGradFit.n, peclet::flow::vof::VofBlockExchange::GatherTable.n, peclet::flow::vof::VofBlockExchange::Patch.n, peclet::flow::vof::VofBlockJob.n, peclet::flow::vof::VofCurvFallbackJob.n, peclet::flow::vof::VofCurvJob.n, peclet::flow::vof::VofMoveJob.n, Problem.n, run_case_a.Dist.n, SphereArray.n, vofscene::Block.n, phi(), peclet::flow::MgPoisson::Level.phi, peclet::flow::ScalarCutState.phi, peclet::flow::ScalarMG::Inputs.phi, peclet::flow::scg::BlockLookup.phi(), peclet::flow::smg::GuardedPart.phi, gsv1.Case.t, t, peclet::flow::LineRowFp32.t, peclet::flow::LineRowFp64< OpV >.t, peclet::flow::LineScratchGlobal< SV >.t, peclet::flow::skr::BiCGStabArgs.t, and tau0.

Referenced by face_avg(), and mac2dc.CircleCase.face_avg().

◆ force()

◆ tau_exact()

mac2d.Case.tau_exact ( self)

◆ face_avg()

mac2d.Case.face_avg ( self,
comp,
x0,
y0,
e )

Member Data Documentation

◆ N

◆ h

◆ n

mac2d.Case.n = np.array([np.cos(a), np.sin(a)])

◆ t

mac2d.Case.t = np.array([-np.sin(a), np.cos(a)])

Definition at line 38 of file mac2d.py.

Referenced by force(), and vel().

◆ c

◆ s

◆ muA

mac2d.Case.muA

Definition at line 41 of file mac2d.py.

Referenced by mac2dc.CircleCase.U(), and vel().

◆ muB

mac2d.Case.muB

Definition at line 41 of file mac2d.py.

Referenced by mac2dc.CircleCase.U(), and vel().

◆ kind

str mac2d.Case.kind

Definition at line 41 of file mac2d.py.

Referenced by force(), tau_exact(), and vel().

◆ eps

mac2d.Case.eps

Definition at line 41 of file mac2d.py.

Referenced by vel().

◆ tau0

mac2d.Case.tau0 = muA, muB, kind, eps, tau0

Definition at line 41 of file mac2d.py.

Referenced by tau_exact(), and vel().


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