shamrock.Context#

class shamrock.Context#

Bases: pybind11_object

Methods

Dusty SPH disc

Dusty SPH disc

AMR benchmark for homogeneous density box

AMR benchmark for homogeneous density box

SPH benchmark for an accretion disc

SPH benchmark for an accretion disc

SPH benchmark for homogeneous density box

SPH benchmark for homogeneous density box

Weak scale test for SPH

Weak scale test for SPH

Toro’s “123 problem” with GSPH (exact Riemann solver + Inutsuka V2)

Toro's "123 problem" with GSPH (exact Riemann solver + Inutsuka V2)

Contact-discontinuity advection with GSPH (exact Riemann solver + Inutsuka V2)

Contact-discontinuity advection with GSPH (exact Riemann solver + Inutsuka V2)

Extreme blast wave with GSPH (exact Riemann solver + Inutsuka V2)

Extreme blast wave with GSPH (exact Riemann solver + Inutsuka V2)

Sod shock tube with GSPH (exact Riemann solver + Inutsuka V2)

Sod shock tube with GSPH (exact Riemann solver + Inutsuka V2)

Symmetric gas collision with GSPH (exact Riemann solver + Inutsuka V2)

Symmetric gas collision with GSPH (exact Riemann solver + Inutsuka V2)

Advection test in RAMSES solver

Advection test in RAMSES solver

Barotropic collapse of a uniform sphere in RAMSES solver

Barotropic collapse of a uniform sphere in RAMSES solver

Compare first- vs second-order interpolation on AMR Sod tube

Compare first- vs second-order interpolation on AMR Sod tube

Protoplanetary disc around a point mass in RAMSES solver

Protoplanetary disc around a point mass in RAMSES solver

Jeans instability characteristic timescales

Jeans instability characteristic timescales

Kelvin-Helmholtz instability in RAMSES solver

Kelvin-Helmholtz instability in RAMSES solver

Boundary conditions for linear wave propagation

Boundary conditions for linear wave propagation

Rayleigh-Taylor instability in RAMSES solver

Rayleigh-Taylor instability in RAMSES solver

Shu-Osher shock tube in RAMSES solver

Shu-Osher shock tube in RAMSES solver

Sod tube test with pseudogradient based refinment

Sod tube test with pseudogradient based refinment

Toro shocks test in RAMSES solver

Toro shocks test in RAMSES solver

Sphere advection with multiple patch

Sphere advection with multiple patch

Production run: Circular disc & central potential

Production run: Circular disc & central potential

Production run: Black hole disc & lense thirring effect

Production run: Black hole disc & lense thirring effect

Production run: Circular disc & central sink particle

Production run: Circular disc & central sink particle

Cubic lattice reorganisation in SPH

Cubic lattice reorganisation in SPH

Dusty diffusion SPH test

Dusty diffusion SPH test

Dusty settling SPH test with COALA coagulation

Dusty settling SPH test with COALA coagulation

Dusty settling SPH test

Dusty settling SPH test

Dusty wave SPH test

Dusty wave SPH test

Init a simulation from another simulation

Init a simulation from another simulation

Kelvin-Helmholtz instability in SPH

Kelvin-Helmholtz instability in SPH

Killing sphere for SPH simulation

Killing sphere for SPH simulation

Wave damping test in SPH with non-ideal MHD

Wave damping test in SPH with non-ideal MHD

Orszag-Tang vortex in SPH

Orszag-Tang vortex in SPH

Test the pairing instability in SPH

Test the pairing instability in SPH

Production run: Circular disc & pseudo-newtonian Paczynski Wiita potential

Production run: Circular disc & pseudo-newtonian Paczynski Wiita potential

Sink integration test problems

Sink integration test problems

Testing Sod tube with SPH

Testing Sod tube with SPH

Testing Dusty TVA Sod tube with SPH

Testing Dusty TVA Sod tube with SPH

Basic disc simulation

Basic disc simulation

Custom warp disc simulation

Custom warp disc simulation

Using Shamrock SPH rendering module

Using Shamrock SPH rendering module

Shearing box in SPH

Shearing box in SPH

Taylor green vortex in SPH

Taylor green vortex in SPH

SPH Setup logs

SPH Setup logs

Start a SPH simulation from a phantom dump

Start a SPH simulation from a phantom dump

Tracking particles by id in SPH

Tracking particles by id in SPH

Uniform box in SPH

Uniform box in SPH

Init a simulation from an upscaled simulation

Init a simulation from an upscaled simulation

Test the Phantom dump writer

Test the Phantom dump writer

Godunov advection test

Godunov advection test

Comparing Sedov blast with 1 patch with Phantom

Comparing Sedov blast with 1 patch with Phantom

Comparing Sedov blast with 8 patches with Phantom

Comparing Sedov blast with 8 patches with Phantom

Testing dusty box with Godunov

Testing dusty box with Godunov

Testing dusty wave with Godunov

Testing dusty wave with Godunov

Testing Extreme Blast Wave with GSPH

Testing Extreme Blast Wave with GSPH

Testing Sod tube with GSPH (exact Riemann solver + Inutsuka V2 force)

Testing Sod tube with GSPH (exact Riemann solver + Inutsuka V2 force)

Testing Sod tube with GSPH

Testing Sod tube with GSPH

CI test: every sibling group merges in a uniform RAMSES grid (new AMR)

CI test: every sibling group merges in a uniform RAMSES grid (new AMR)

Testing the external forces coupling modes in RAMSES solver

Testing the external forces coupling modes in RAMSES solver

Testing the RAMSES solver self-gravity with the Jeans instability

Testing the RAMSES solver self-gravity with the Jeans instability

Regression test : Godunov soundwave 3D

Regression test : Godunov soundwave 3D

Regression test : SPH disc

Regression test : SPH disc

Regression test : SPH Kelvin-Helmholtz instability

Regression test : SPH Kelvin-Helmholtz instability

Testing reload of old dump

Testing reload of old dump

Isolated star GW emmission

Isolated star GW emmission

Comparing Shamrock disc with Phantom disc

Comparing Shamrock disc with Phantom disc

Disc Monte-Carlo setup density profiles

Disc Monte-Carlo setup density profiles

CI test: Field.collect_data returns arrays that line up across Fields

CI test: Field.collect_data returns arrays that line up across Fields

Testing 3D circularly polarised Alfven wave with SPMHD

Testing 3D circularly polarised Alfven wave with SPMHD

Testing Orszag-Tang vortex (3D thin box) with SPMHD

Testing Orszag-Tang vortex (3D thin box) with SPMHD

Testing the MHD rotor problem (3D) with SPMHD

Testing the MHD rotor problem (3D) with SPMHD

Wave damping test for the non-ideal MHD ambipolar diffusion

Wave damping test for the non-ideal MHD ambipolar diffusion

Mirror symmetry of the RAMSES solver AMR

Mirror symmetry of the RAMSES solver AMR

Test the precision of SG methods in SPH

Test the precision of SG methods in SPH

CI test: SPH barotropic equation of state

CI test: SPH barotropic equation of state

CI test: rendering a precomputed Field matches rendering by name

CI test: rendering a precomputed Field matches rendering by name

CI test: external forces point mass accretion

CI test: external forces point mass accretion

CI test: last CFL dt stored in synchronized edges

CI test: last CFL dt stored in synchronized edges

CI test: sink state stays synchronized across MPI ranks through dump/reload

CI test: sink state stays synchronized across MPI ranks through dump/reload

Testing Sod tube with Godunov

Testing Sod tube with Godunov

Testing Sod tube with Godunov with AMR enabled

Testing Sod tube with Godunov with AMR enabled

Testing Sod tube with SPH

Testing Sod tube with SPH

Testing Sod tube with Zeus

Testing Sod tube with Zeus
close_sched(self: shamrock.pyshamrock.Context) → None#
collect_data(self: shamrock.pyshamrock.Context) → dict#
dump_status(self: shamrock.pyshamrock.Context) → None#
get_patch_list_global(self: shamrock.pyshamrock.Context) → list[shamrock.pyshamrock.Patch]#
init_sched(self: shamrock.pyshamrock.Context, arg0: int, arg1: int) → None#
pdata_layout_add_field(self: shamrock.pyshamrock.Context, arg0: str, arg1: int, arg2: str) → None#
pdata_layout_new(self: shamrock.pyshamrock.Context) → None#
pdata_layout_print(*args, **kwargs)#

Overloaded function.

  1. pdata_layout_print(self: shamrock.pyshamrock.Context) -> None

  2. pdata_layout_print(self: shamrock.pyshamrock.Context) -> None

  3. pdata_layout_print(self: shamrock.pyshamrock.Context) -> None

  4. pdata_layout_print(self: shamrock.pyshamrock.Context) -> None

  5. pdata_layout_print(self: shamrock.pyshamrock.Context) -> None

scheduler_step(self: shamrock.pyshamrock.Context, do_split_merge: bool = True, do_load_balancing: bool = True) → None#
set_coord_domain_bound(self: shamrock.pyshamrock.Context, arg0: Annotated[list[float], FixedSize(3)], arg1: Annotated[list[float], FixedSize(3)]) → None#