The Pencil Code, a modular MPI code for partial differential equations and particles: multipurpose and multiuser-maintained
arXiv:2009.08231 · doi:10.21105/joss.02807
Abstract
The Pencil Code is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications. It is primarily designed to solve partial differential equations (PDEs) of compressible hydrodynamics and has lots of add-ons ranging from astrophysical magnetohydrodynamics (MHD) to meteorological cloud microphysics and engineering applications in combustion. Nevertheless, the framework is general and can also be applied to situations not related to hydrodynamics or even PDEs, for example when just the message passing interface or input/output strategies of the code are to be used. The code can also evolve Lagrangian (inertial and noninertial) particles, their coagulation and condensation, as well as their interaction with the fluid.
7 pages, submitted to the Journal for Open Source Software (JOSS)
References in corpus (1)
Cited by in corpus (119)
- Magnetic, thermal and rotational evolution of isolated neutron stars
- Can we observe the QCD phase transition-generated gravitational waves through pulsar timing arrays?
- Streaming Instability with Multiple Dust Species: II. Turbulence and Dust-Gas Dynamics at Nonlinear Saturation
- Pebble trapping in vortices: three-dimensional simulations
- IDEFIX: a versatile performance-portable Godunov code for astrophysical flows
- Evolution of primordial magnetic fields during large-scale structure formation
- Small-Scale Dynamo in Supernova-Driven Interstellar Turbulence
- Star-in-a-box simulations of fully convective stars
- Polarization of gravitational waves from helical MHD turbulent sources
- Relic gravitational waves from the chiral magnetic effect
- Supernova induced processing of interstellar dust: impact of ISM gas density and gas turbulence
- Scaling of the Hosking integral in decaying magnetically-dominated turbulence
- The small-scale dynamo in a multiphase supernova-driven medium
- Backreaction of axion-SU(2) dynamics during inflation
- Shallow relic gravitational wave spectrum with acoustic peak
- Polymeric jets throw light on the origin and nature of the forest of solar spicules
- Numerical evidence for a small-scale dynamo approaching solar magnetic Prandtl numbers
- Transition from anti-solar to solar-like differential rotation: Dependence on Prandtl number
- Direct Formation of Planetary Embryos in Self-Gravitating Disks
- The scalar, vector, and tensor modes in gravitational wave turbulence simulations
- Production of a chiral magnetic anomaly with emerging turbulence and mean-field dynamo action
- Transition from small-scale to large-scale dynamo in a supernova-driven, multiphase medium
- PySDM v1: particle-based cloud modelling package for warm-rain microphysics and aqueous chemistry
- Big Bang Nucleosynthesis Limits and Relic Gravitational Waves Detection Prospects
- Prandtl number dependence of compressible convection: Flow statistics and convective energy transport
- Simulating relic gravitational waves from inflationary magnetogenesis
- Dynamo instabilities in plasmas with inhomogeneous chiral chemical potential
- Compressible test-field method and its application to shear dynamos
- Targeted particle delivery via vortex ring reconnection
- Decay law of magnetic turbulence with helicity balanced by chiral fermions
- Lattice simulations of axion-U(1) inflation: gravitational waves, magnetic fields, and scalar statistics
- Resistively controlled primordial magnetic turbulence decay
- Chiral magnetohydrodynamics with zero total chirality
- Spectral characterisation of inertial particle clustering in turbulence
- Multidimensional Simulations of Core Convection
- Dynamics of dust grains in turbulent molecular clouds. Conditions for decoupling and limits of different numerical implementations
- Turbulence with Magnetic Helicity that is Absent on Average
- Dissipative magnetic structures and scales in small-scale dynamos
- Steady states of the Parker instability
- Dynamo effect in unstirred self-gravitating turbulence
- Batchelor, Saffman, and Kazantsev spectra in galactic small-scale dynamos
- Hosking integral in nonhelical Hall cascade
- Stability of axially symmetric magnetic fields in stars
- Simulating cold shear flows on a moving mesh
- Low frequency tail of gravitational wave spectra from hydromagnetic turbulence
- Magnetohydrodynamic simulations of A-type stars: Long-term evolution of core dynamo cycles
- Nonlinear magnetic buoyancy instability and turbulent dynamo
- On the shear-current effect: toward understanding why theories and simulations have mutually and separately conflicted
- Intergalactic medium rotation measure of primordial magnetic fields
- Present and future of CosmoLattice
- Chiral anomaly and dynamos from inhomogeneous chemical potential fluctuations
- Rate of formation of caustics in heavy particles advected by turbulence
- Inverse cascading for initial MHD turbulence spectra between Saffman and Batchelor
- Supernova dust destruction in the magnetized turbulent ISM
- Inflationary and phase-transitional primordial magnetic fields in galaxy clusters
- Magnetogenesis from axion-SU(2) inflation
- How "mixing" affects propagation and structure of intensely turbulent, lean, hydrogen-air premixed flames
- Turbulent magnetic decay controlled by two conserved quantities
- Magnetohydrodynamics predicts heavy-tailed distributions of axion-photon conversion
- Origin of eclipsing time variations in Post-Common-Envelope binaries: role of the centrifugal force
- Coagulation of inertial particles in supersonic turbulence
- Unified treatment of mean-field dynamo and angular-momentum transport in magnetorotational instability-driven turbulence
- Time-Adaptive PIROCK Method with Error Control for Multi-Fluid and Single-Fluid MHD Systems
- Tensor spectrum of turbulence-sourced gravitational waves as a constraint on graviton mass
- Simulations of entropy rain-driven convection
- Mean fields and fluctuations in compressible magnetohydrodynamic flows
- Relic Gravitational Waves from the Chiral Plasma Instability in the Standard Cosmological Model
- Vorticity and magnetic dynamo from subsonic expansion waves
- Cross-helicity effect on -type dynamo in non-equilibrium turbulence
- Turbulent radiative diffusion and turbulent Newtonian cooling
- Turbulent Prandtl number from isotropically forced turbulence
- Origin of eclipsing time variations: Contributions of different modes of the dynamo-generated magnetic field
- Small-scale and large-scale dynamos in global convection simulations of solar-like stars
- Two-Loop Turbulent Helical Magnetohydrodynamics: Large-Scale Dynamo and Energy Spectrum
- Modified propagation of gravitational waves from the early radiation era
- Magnetic field amplification during a turbulent collapse
- AHKASH: a new Hybrid particle-in-cell code for simulations of astrophysical collisionless plasma
- Helicity effect on turbulent passive and active scalar diffusivities
- Reality of inverse cascading in neutron star crusts
- Shaping core dynamos in A-type stars: The role of dipolar fossil fields
- Helical and nonhelical large-scale dynamos in thin accretion discs
- Stellar X-rays and magnetic activity in 3D MHD coronal models
- Vorticity and magnetic dynamo from subsonic expansion waves II: Dependence on magnetic Prandtl number, forcing scale, cooling time
- Magnetic helicity fluxes in dynamos from rotating inhomogeneous turbulence
- Simulated Rotation Measure Sky from Primordial Magnetic Fields
- Photospheric Lorentz force changes in eruptive and confined solar flares
- Magnetically assisted vorticity production in decaying acoustic turbulence
- Turbulence compressibility reduction with helicity
- Theory of the kinetic helicity effect on turbulent diffusion of magnetic and scalar fields
- Magnetorotational instability in a solar near-surface mean-field dynamo
- Gravitational waves from axion inflation in the gradient expansion formalism. Part II. Fermionic axion inflation
- Can galactic magnetic fields diffuse into the voids?
- Gravitational wave signal from primordial magnetic fields in the Pulsar Timing Array frequency band
- Simulations of helical inflationary magnetogenesis and gravitational waves
- Spectra of magnetic fields from electroweak symmetry breaking
- Pseudo-spectral solver versus grid-based solver: A quantitative accuracy test using GMHD3D and PLUTO4.4
- Primordial magnetic field from chiral plasma instability with sourcing
- LISA and -ray telescopes as multi-messenger probes of a first-order cosmological phase transition
- Pade: A code for protoplanetary disk turbulence based on Pade differencing
- Efficiency of dynamos from an autonomous generation of chiral asymmetry
- Electromagnetic conversion into kinetic and thermal energies
- Twisted Magnetic Knots and Links
- Granulation and Convectional Driving on Stellar Surfaces
- Inverse cascade from helical and nonhelical decaying columnar magnetic fields
- On the Relationship between Solar Spicules and Propagating Coronal Disturbances: The Role of Shocks
- Constraining Global Solar Models through Helioseismic Analysis
- Effects of Dynamo-Generated Large-Scale Magnetic Fields on the Surface Gravity () Mode
- Real Schur flow computations, helicity fastening effects and Bagua-pattern cyclones
- Resistive Scaling in the Magnetic Helicity-Driven Inverse Cascade
- Evolution of reconnection flux during eruption of magnetic flux ropes
- Quadratic growth during the COVID-19 pandemic: merging hotspots and reinfections
- Magnetic field spreading from stellar and galactic dynamos into the exterior
- Generation of mean flows in rotating anisotropic turbulence: The case of solar near-surface shear layer
- Kinematic dynamos and resolution limits for Smoothed Particle Magnetohydrodynamics
- Evolution of random initial magnetic fields in stably stratified and barotropic stars
- Investigating global convective dynamos with mean-field models: full spectrum of turbulent effects required
- Inferring magnetic helicity spectrum in spherical domains: the method and example applications
- Acceleration and clustering of cosmic dust in a gravoturbulent gas -- I. Numerical simulation of the nearly Jeans-unstable case
- Solar-like dynamos and rotational scaling of cycles from star-in-a-box simulations