|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
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 | |
| mac2d.Case.__init__ | ( | self, | |
| N, | |||
| alpha_deg, | |||
| off_cells, | |||
| muA, | |||
| muB, | |||
| kind, | |||
| eps = 1.0, | |||
| tau0 = 1.0 ) |
| 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().
| mac2d.Case.frac_line | ( | self, | |
| x0, | |||
| y0, | |||
| e, | |||
| kern ) |
side-A fraction of a segment through (x0,y0) along unit e, kernel 'box' (h) or 'hat' (2h).
Definition at line 46 of file mac2d.py.
References Box.h, CapResult.h, disc_bc.Geo.h, FloatRef.h, gsv1.Case.h, gsv1.PCase.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, 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(), and peclet::flow::smg::GuardedPart.phi.
| mac2d.Case.frac_cell | ( | self, | |
| x0, | |||
| y0 ) |
Definition at line 57 of file mac2d.py.
References Box.h, CapResult.h, disc_bc.Geo.h, FloatRef.h, gsv1.Case.h, gsv1.PCase.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, phi(), peclet::flow::MgPoisson::Level.phi, peclet::flow::ScalarCutState.phi, peclet::flow::ScalarMG::Inputs.phi, peclet::flow::scg::BlockLookup.phi(), and peclet::flow::smg::GuardedPart.phi.
| 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().
| mac2d.Case.force | ( | self | ) |
Definition at line 95 of file mac2d.py.
References CapResult.kind, gsv1.Case.kind, gsv1.PCase.kind, kind, peclet::flow::Closure.kind, peclet::flow::scg::CellPass.kind, gsv1.Case.t, t, peclet::flow::LineRowFp32.t, peclet::flow::LineRowFp64< OpV >.t, peclet::flow::LineScratchGlobal< SV >.t, and peclet::flow::skr::BiCGStabArgs.t.
| mac2d.Case.tau_exact | ( | self | ) |
Definition at line 100 of file mac2d.py.
References CapResult.kind, gsv1.Case.kind, gsv1.PCase.kind, kind, peclet::flow::Closure.kind, peclet::flow::scg::CellPass.kind, and tau0.
| mac2d.Case.face_avg | ( | self, | |
| comp, | |||
| x0, | |||
| y0, | |||
| e ) |
average of velocity component over the face segment centred (x0,y0) along e (length h).
Definition at line 103 of file mac2d.py.
References Box.h, CapResult.h, disc_bc.Geo.h, FloatRef.h, gsv1.Case.h, gsv1.PCase.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, 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, anderson_oracle.AndersonOracle.vel, vel(), and peclet::flow::Solver< Grid >::ScalarFaceFlux.vel.
| mac2d.Case.N |
Definition at line 35 of file mac2d.py.
Referenced by 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().
Definition at line 35 of file mac2d.py.
Referenced by advect.Ann.__init__(), conj.Geo2.__init__(), conj_peters.Box.__init__(), mac2dc.CircleCase.cell_frac(), steady_acceleration_gates.Case.dt(), face_avg(), mac2dc.CircleCase.face_avg(), mac2dc.CircleGeo.fit_nt(), frac_cell(), 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().
| mac2d.Case.n = np.array([np.cos(a), np.sin(a)]) |
Definition at line 37 of file mac2d.py.
Referenced by advect.Ann.__init__(), conj.Geo2.__init__(), conj_peters.Box.__init__(), face_avg(), frac_line(), phi(), and vel().
| mac2d.Case.t = np.array([-np.sin(a), np.cos(a)]) |
| mac2d.Case.c = np.array([0.5, 0.5]) |
Definition at line 39 of file mac2d.py.
Referenced by mac2dc.CircleCase.cell_frac(), mac2dc.CircleCase.face_avg(), phi(), mac2dc.CircleCase.phi(), mac2dc.CircleCase.row_force(), vel(), and mac2dc.CircleCase.vel().
| float mac2d.Case.s = off_cells * self.h |
Definition at line 40 of file mac2d.py.
Referenced by vof_profile.Scale.bodyforce(), vof_surface_tension.Scale.bodyforce(), vof_surface_tension.Scale.len_to_cells(), vof_profile.Scale.mu(), vof_surface_tension.Scale.mu(), phi(), vof_profile.Scale.sigma(), vof_surface_tension.Scale.sigma(), and vof_surface_tension.Scale.vel_to_phys().
| mac2d.Case.muA |
Definition at line 41 of file mac2d.py.
Referenced by mac2dc.CircleCase.U(), and vel().
| mac2d.Case.muB |
Definition at line 41 of file mac2d.py.
Referenced by mac2dc.CircleCase.U(), and vel().
| str mac2d.Case.kind |
Definition at line 41 of file mac2d.py.
Referenced by force(), tau_exact(), and vel().
Definition at line 41 of file mac2d.py.
Referenced by tau_exact(), and vel().