|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Public Member Functions | |
| __init__ (self, kind, m, k, ratio, N) | |
| along_u (self, X) | |
| along_F (self, X) | |
| along_p (self, X, mu) | |
| phaseA (self, X) | |
| build (self) | |
| gauge (self, ex, rho) | |
Public Attributes | |
| kind | |
| m | |
| k | |
| ratio | |
| N = kind, tuple(m), k, ratio, N | |
| n = mv / np.linalg.norm(mv) | |
| float | P = 1.0 / np.linalg.norm(mv) |
| float | h = 1.0 / N |
| float | s0 = float(self.n @ np.full(3, 0.5)) + k / 8.0 * self.h |
| muA | |
| float | muB = ratio, 1.0 |
| a | |
| float | o = 3.0 * self.P / 8.0, 0.0 |
| str | rhoA = RHO_A_LAYERED |
| float | rhoB = 1.0 |
| t1 = tangents(self.n)[0] | |
| tc = t / np.linalg.norm(t) | |
| ka | |
| int | kb = 2 * math.pi * np.linalg.norm(t), 2 * math.pi * np.linalg.norm(mv) |
One periodic case: kind in layered | along | along+layered; m the integer normal.
| gsv1.PCase.along_u | ( | self, | |
| X ) |
X: (..., 3) points -> (..., 3) velocity.
Definition at line 527 of file gsv1.py.
References ka, kb, peclet::flow::ScalarCutState.kb, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.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, s0, and tc.
Referenced by build().
| gsv1.PCase.along_F | ( | self, | |
| X ) |
The force divided by the phase viscosity: f_k = mu_k F.
Definition at line 535 of file gsv1.py.
References ka, kb, peclet::flow::ScalarCutState.kb, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.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, s0, and tc.
Referenced by build().
| gsv1.PCase.along_p | ( | self, | |
| X, | |||
| mu ) |
Definition at line 543 of file gsv1.py.
References ka, kb, peclet::flow::ScalarCutState.kb, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.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, s0, and tc.
| gsv1.PCase.phaseA | ( | self, | |
| X ) |
Definition at line 547 of file gsv1.py.
References CapResult.a, EdgeQ.a, gsv1.Layered.a, a, peclet::flow::Solver< Grid >::SceneMap.a, peclet::flow::StarOverlay.a, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.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, Block.o, gsv1.Layered.o, o, HostGeo::Member.o, peclet::flow::vof::VofBlockExchange::Patch.o, peclet::flow::vof::VofBlockJob.o, peclet::flow::vof::VofCountTable.o, vofscene::Block.o, gsv1.Layered.P, P, peclet::flow::BottomPlanes.P, State.P, and s0.
| gsv1.PCase.build | ( | self | ) |
C, the exact face averages (3, N, N, N) before the gauge, the cell force F_cell (3, N,N,N) with g = 1 (layered part) or unit amplitude (along part), and the Layered.
Definition at line 551 of file gsv1.py.
References CapResult.a, EdgeQ.a, gsv1.Layered.a, a, peclet::flow::Solver< Grid >::SceneMap.a, peclet::flow::StarOverlay.a, along_F(), along_u(), gsv1.face_centres(), Box.h, CapResult.h, disc_bc.Geo.h, FloatRef.h, gsv1.Case.h, h, mg_advection.Case.h, mg_coarse_wall.Geo.h, packing2d.Cell.h, Patch.h, peclet::flow::sco::MeanGradPosition.h, peclet::flow::Solver< Grid >::UnitScales.h, SceneSpec.h, CapResult.kind, gsv1.Case.kind, kind, peclet::flow::Closure.kind, peclet::flow::scg::CellPass.kind, gsv1.layered_fractions(), gsv1.Case.muA, muA, HostGeo.muA, Kinked.muA, peclet::flow::vof::SharpGeom.muA, gsv1.Case.muB, muB, HostGeo.muB, Kinked.muB, peclet::flow::vof::SharpGeom.muB, gsv1.Case.N, N, peclet::flow::MgPoisson::Level.N, SphereArray.N, Blk.n, Box.n, Cfg.n, Config.n, disc_bc.Geo.n, Err.n, gsv1.Case.n, n, HostBottom.n, HostLevel.n, HostOp.n, Kinked.n, Level.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, Block.o, gsv1.Layered.o, o, HostGeo::Member.o, peclet::flow::vof::VofBlockExchange::Patch.o, peclet::flow::vof::VofBlockJob.o, peclet::flow::vof::VofCountTable.o, vofscene::Block.o, gsv1.Layered.P, P, peclet::flow::BottomPlanes.P, State.P, rhoA, rhoB, s0, and t1.
| gsv1.PCase.gauge | ( | self, | |
| ex, | |||
| rho ) |
Definition at line 588 of file gsv1.py.
References gsv1.rho_face().
| gsv1.PCase.kind |
Definition at line 507 of file gsv1.py.
Referenced by build(), mac2d.Case.force(), mac2d.Case.tau_exact(), and mac2d.Case.vel().
Definition at line 507 of file gsv1.py.
Referenced by build(), steady_acceleration_gates.Case.build(), steady_acceleration_gates.Case.configure(), mac2d.Mac.iu(), mac2d.Mac.iv(), mac2dc.PlanarGeo.owner(), packing2d.System.solve(), mac2d.Mac.unknown_u(), and mac2d.Mac.unknown_v().
| gsv1.PCase.n = mv / np.linalg.norm(mv) |
Definition at line 509 of file gsv1.py.
Referenced by gsv1.StepMap.__call__(), advect.Ann.__init__(), conj.Geo2.__init__(), conj_peters.Box.__init__(), along_F(), along_p(), along_u(), build(), mac2d.Case.face_avg(), mac2d.Case.frac_line(), gsv1.StepMap.gauge(), phaseA(), mac2d.Case.phi(), and mac2d.Case.vel().
| float gsv1.PCase.P = 1.0 / np.linalg.norm(mv) |
| float gsv1.PCase.h = 1.0 / N |
Definition at line 511 of file gsv1.py.
Referenced by advect.Ann.__init__(), conj.Geo2.__init__(), conj_peters.Box.__init__(), build(), mac2dc.CircleCase.cell_frac(), steady_acceleration_gates.Case.dt(), mac2d.Case.face_avg(), mac2dc.CircleCase.face_avg(), mac2dc.CircleGeo.fit_nt(), mac2d.Case.frac_cell(), mac2d.Case.frac_line(), mac2dc.CircleGeo.mid_frac(), mac2dc.PlanarGeo.mid_frac(), mac2dc.CircleGeo.node_frac(), mac2dc.PlanarGeo.node_frac(), mac2dc.PlanarGeo.owner(), and mac2dc.CircleCase.row_force().
| float gsv1.PCase.s0 = float(self.n @ np.full(3, 0.5)) + k / 8.0 * self.h |
| gsv1.PCase.muA |
Definition at line 513 of file gsv1.py.
Referenced by build(), mac2dc.CircleCase.U(), and mac2d.Case.vel().
| float gsv1.PCase.muB = ratio, 1.0 |
Definition at line 513 of file gsv1.py.
Referenced by build(), mac2dc.CircleCase.U(), and mac2d.Case.vel().
| gsv1.PCase.a |
Definition at line 515 of file gsv1.py.
Referenced by build(), steady_acceleration_gates.Case.configure(), steady_acceleration_gates.Case.dt(), steady_acceleration_gates.Case.K(), phaseA(), and steady_acceleration_gates.Case.sdf_global().
| float gsv1.PCase.o = 3.0 * self.P / 8.0, 0.0 |
| str gsv1.PCase.rhoA = RHO_A_LAYERED |
| gsv1.PCase.tc = t / np.linalg.norm(t) |
| gsv1.PCase.ka |
| int gsv1.PCase.kb = 2 * math.pi * np.linalg.norm(t), 2 * math.pi * np.linalg.norm(mv) |