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

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)

Detailed Description

One periodic case: kind in layered | along | along+layered; m the integer normal.

Definition at line 503 of file gsv1.py.

Constructor & Destructor Documentation

◆ __init__()

gsv1.PCase.__init__ ( self,
kind,
m,
k,
ratio,
N )

Definition at line 506 of file gsv1.py.

Member Function Documentation

◆ along_u()

◆ along_F()

◆ along_p()

◆ phaseA()

◆ build()

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.

◆ gauge()

gsv1.PCase.gauge ( self,
ex,
rho )

Definition at line 588 of file gsv1.py.

References gsv1.rho_face().

Member Data Documentation

◆ kind

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().

◆ m

gsv1.PCase.m

Definition at line 507 of file gsv1.py.

◆ k

gsv1.PCase.k

Definition at line 507 of file gsv1.py.

◆ ratio

gsv1.PCase.ratio

Definition at line 507 of file gsv1.py.

◆ N

◆ n

◆ P

float gsv1.PCase.P = 1.0 / np.linalg.norm(mv)

Definition at line 510 of file gsv1.py.

Referenced by build(), and phaseA().

◆ h

◆ s0

float gsv1.PCase.s0 = float(self.n @ np.full(3, 0.5)) + k / 8.0 * self.h

Definition at line 512 of file gsv1.py.

Referenced by along_F(), along_p(), along_u(), build(), and phaseA().

◆ muA

gsv1.PCase.muA

Definition at line 513 of file gsv1.py.

Referenced by build(), mac2dc.CircleCase.U(), and mac2d.Case.vel().

◆ muB

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().

◆ a

◆ o

float gsv1.PCase.o = 3.0 * self.P / 8.0, 0.0

Definition at line 515 of file gsv1.py.

Referenced by build(), and phaseA().

◆ rhoA

str gsv1.PCase.rhoA = RHO_A_LAYERED

Definition at line 516 of file gsv1.py.

Referenced by build().

◆ rhoB

float gsv1.PCase.rhoB = 1.0

Definition at line 520 of file gsv1.py.

Referenced by build().

◆ t1

gsv1.PCase.t1 = tangents(self.n)[0]

Definition at line 521 of file gsv1.py.

Referenced by build().

◆ tc

gsv1.PCase.tc = t / np.linalg.norm(t)

Definition at line 523 of file gsv1.py.

Referenced by along_F(), along_p(), and along_u().

◆ ka

gsv1.PCase.ka

Definition at line 524 of file gsv1.py.

Referenced by along_F(), along_p(), and along_u().

◆ kb

int gsv1.PCase.kb = 2 * math.pi * np.linalg.norm(t), 2 * math.pi * np.linalg.norm(mv)

Definition at line 524 of file gsv1.py.

Referenced by along_F(), along_p(), and along_u().


The documentation for this class was generated from the following file:
  • tests/study/sharp_viscous/gsv1.py