Site-wide search

Search Struphy

Search site pages and the full catalogue of models, propagators, mapped domains, background equilibria, initial-condition perturbations, and kinetic backgrounds.

148 results

Equilibrium

AdhocTorus

Ad hoc tokamak MHD equilibrium with circular concentric flux surfaces.

Equilibrium

AdhocTorusQPsi

Ad hoc tokamak MHD equilibrium with circular concentric flux surfaces.

Propagator

AdiabaticPhi

Electrostatic potential for adiabatic electrons, computed from … Not used by a model yet.

Page

Building a simulation

How models, domains, grids, and time integration fit together.

Background

CanonicalMaxwellian2D

Canonical Maxwellian distribution function in (η₁, η₂, η₃, v∥, μ) coordinates.

Equilibrium

CircularTokamak

Tokamak MHD equilibrium with circular concentric flux surfaces.

Page

Citation and reproducibility

How to cite Struphy and document reproducible simulations.

Perturbation

CoaxialWaveguideElectric_r

Initial-condition perturbation in the norm basis.

Perturbation

CoaxialWaveguideElectric_theta

Initial-condition perturbation in the norm basis.

Perturbation

CoaxialWaveguideMagnetic

Initial-condition perturbation in the norm basis.

Page

Code and parallelization

The architecture and parallel implementation of Struphy.

Model

ColdPlasma

Cold plasma model: electron-fluid current coupled with Maxwell's equations via a cold-plasma Ohm's law.

Background

ColdPlasma

Base class for a distribution as a Dirac-delta in velocity (vth = 0).

Model

ColdPlasmaVlasov

Hybrid cold-plasma model: a cold electron fluid coupled with a hot kinetic species and Maxwell's equations.

Domain

Colella

Mapped geometry available for Struphy simulations.

Equilibrium

ConstantVelocity

Constant-velocity background equilibrium. Represents a simple fluid equilibrium with a spatially-constant bulk velocity ( ux , uy , uz ) and configurable density/pressure…

Page

Contact us

Ask questions, report bugs, contribute, or contact the maintainers.

Domain

Cuboid

Mapped geometry available for Struphy simulations.

Propagator

CurlCurlSolve

Advances e. Not used by a model yet.

Propagator

CurrentCoupling5DCurlb

Advances u and energetic_ions. Used by 1 model.

Propagator

CurrentCoupling5DDensity

Advances u. Used by 1 model.

Propagator

CurrentCoupling5DGradB

Advances u and energetic_ions. Used by 1 model.

Propagator

CurrentCoupling6DCurrent

Advances ions and u. Used by 1 model.

Propagator

CurrentCoupling6DDensity

Advances u. Used by 1 model.

Equilibrium

CurrentSheet

Current sheet equilibrium.

Domain

DESCunit

Mapped geometry available for Struphy simulations.

Model

DeterministicParticleDiffusion

Diffusion equation discretized with a deterministic particle method.

Model

DriftKineticElectrostaticAdiabatic

Electrostatic drift-kinetic model for a single ion species with adiabatic electrons.

Propagator

EfieldWeightsCoupling

Advances e and ions. Used by 2 models.

Equilibrium

EQDSKequilibrium

Interface to `EQDSK file format `_.

Perturbation

Erf_z

Initial-condition perturbation.

Page

Examples

Reproducible Struphy simulations and benchmark problems.

Propagator

FaradayExtended

Equations: Faraday's law … Not used by a model yet.

Page

FEEC basics

An introduction to compatible finite element spaces and operators.

Equilibrium

GenericCartesianFluidEquilibrium

Generic Cartesian fluid equilibrium with callable fields. This class extends CartesianFluidEquilibrium to allow user-defined callable functions for velocity, pressure, an…

Equilibrium

GenericCartesianFluidEquilibriumWithB

Generic Cartesian fluid equilibrium with magnetic field and callable fields. This class extends GenericCartesianFluidEquilibrium to include magnetic field and its gradien…

Model

GuidingCenter

Guiding-center equation for a single species in a static background magnetic field.

Domain

GVECunit

Mapped geometry available for Struphy simulations.

Background

GyroMaxwellian2D

A gyrotropic Maxwellian depending on two velocities (v∥, μ), n=2, where v∥ = 𝐯 · b₀ and μ = v⟂²/(2B₀) is the magnetic moment, with B₀ the background magnetic field strength.

Background

GyroMaxwellian2Dvperp

A gyrotropic Maxwellian depending on two velocities (v∥, v⟂), n=2, where v∥ = 𝐯 · b₀ and v⟂ is the radial component of a polar coordinate system perpendicular to the magentic direction b₀.

Propagator

Hall

Advances b. Used by 1 model.

Model

HasegawaWakatani

Hasegawa-Wakatani equations in 2D for drift-wave turbulence.

Propagator

HasegawaWakataniStep

Advances n and omega. Used by 1 model.

Domain

HollowCylinder

Mapped geometry available for Struphy simulations.

Domain

HollowTorus

Mapped geometry available for Struphy simulations.

Equilibrium

HomogenSlab

Homogeneous MHD equilibrium.

Equilibrium

HomogenSlabITG

Homogenous slab equilibrium with temperature gradient in x, B-field in z.

Domain

IGAPolarCylinder

Mapped geometry available for Struphy simulations.

Domain

IGAPolarTorus

Mapped geometry available for Struphy simulations.

Propagator

ImplicitDiffusion

Advances phi. Not used by a model yet.

Model

IncompressibleNavierStokesSPH

Incompressible Navier-Stokes equations discretized with smoothed particle hydrodynamics (SPH).

Perturbation

ITPA_density

Initial-condition perturbation in the physical basis.

Propagator

JxBCold

Advances j. Used by 2 models.

Model

LinearExtendedMHDuniform

Linear extended MHD with zero-flow equilibrium, for uniform background conditions only.

Model

LinearMHD

Linear ideal MHD with zero-flow equilibrium for magnetohydrodynamic wave propagation.

Model

LinearMHDDriftkineticCC

Hybrid linear ideal MHD coupled with energetic ions (5D drift-kinetic) via the current-coupling scheme.

Model

LinearMHDVlasovCC

Hybrid linear MHD coupled with energetic ions (6D Vlasov) via the current-coupling scheme.

Model

LinearMHDVlasovPC

Hybrid linear MHD coupled with energetic ions (6D Vlasov) via the pressure-coupling scheme.

Model

LinearVlasovAmpereOneSpecies

Linearized Vlasov-Ampère equations for one kinetic species around a Maxwellian background.

Model

LinearVlasovMaxwellOneSpecies

Linearized Vlasov-Maxwell equations for one kinetic species around a Maxwellian background.

Propagator

Magnetosonic

Advances n, u and p. Used by 4 models.

Propagator

MagnetosonicUniform

Advances n, u and p. Used by 1 model.

Perturbation

ManufacturedSolutionPotential

Initial-condition perturbation in the physical basis.

Perturbation

ManufacturedSolutionVelocity

Initial-condition perturbation in the physical basis.

Perturbation

ManufacturedSolutionVelocity_2

Initial-condition perturbation in the physical basis.

Model

Maxwell

Maxwell's equations in vacuum for electromagnetic field evolution.

Background

Maxwellian3D

A Maxwellian depending (η₁, η₂, η₃) and on three (n=3) Cartesian velocities.

Propagator

MaxwellWeakAmpere

Advances e and b. Used by 5 models.

Perturbation

ModesCos

Initial-condition perturbation.

Perturbation

ModesCosCos

Initial-condition perturbation.

Perturbation

ModesCosSin

Initial-condition perturbation.

Perturbation

ModesSin

Initial-condition perturbation.

Perturbation

ModesSinCos

Initial-condition perturbation.

Perturbation

ModesSinSin

Initial-condition perturbation.

Page

Numerical methods

The structure-preserving methods used throughout Struphy.

Propagator

OhmCold

Advances j and e. Used by 2 models.

Domain

Orthogonal

Mapped geometry available for Struphy simulations.

Model

Poisson

Weak discretization of Poisson's equation with a diffusion matrix, stabilization and an optional time-dependent right-hand side.

Propagator

PoissonAdiabaticGyrokinetic

Advances phi. Used by 1 model.

Propagator

PoissonSolve

Advances phi. Used by 4 models.

Domain

PoweredEllipticCylinder

Mapped geometry available for Struphy simulations.

Propagator

PressureCoupling6D

Advances u and energetic_ions. Used by 1 model.

Model

PressureLessSPH

Particle discretization of pressureless Euler flow with external forcing.

Propagator

PushDeterministicDiffusion

Advances var. Used by 1 model.

Propagator

PushEta

Advances var. Used by 10 models.

Propagator

PushEtaPC

Advances var. Used by 1 model.

Propagator

PushGuidingCenterBxEstar

Advances ions. Used by 4 models.

Propagator

PushGuidingCenterParallel

Advances ions. Used by 3 models.

Propagator

PushRandomDiffusion

Advances var. Used by 1 model.

Propagator

PushVinForceField

Advances var. Used by 4 models.

Propagator

PushVinSPHpressure

Advances fluid. Used by 1 model.

Propagator

PushVinViscousPotential

Advances fluid. Used by 2 models.

Propagator

PushVxB

Advances ions. Used by 10 models.

Model

RandomParticleDiffusion

Diffusion equation discretized with a random particle method, via a Wiener process.

Perturbation

RestelliAnalyticSolutionPotential

Initial-condition perturbation in the physical basis.

Perturbation

RestelliAnalyticSolutionVelocity

Initial-condition perturbation in the physical basis.

Perturbation

RestelliAnalyticSolutionVelocity_2

Initial-condition perturbation in the physical basis.

Perturbation

RestelliAnalyticSolutionVelocity_3

Initial-condition perturbation in the physical basis.

Equilibrium

ScrewPinch

Straight tokamak (screw pinch) MHD equilibrium for a cylindrical geometry of radius mathematical formulation and length mathematical formulation.

Domain

ShafranovDshapedCylinder

Mapped geometry available for Struphy simulations.

Domain

ShafranovShiftCylinder

Mapped geometry available for Struphy simulations.

Domain

ShafranovSqrtCylinder

Mapped geometry available for Struphy simulations.

Perturbation

Shear_x

Initial-condition perturbation.

Perturbation

Shear_y

Initial-condition perturbation.

Perturbation

Shear_z

Initial-condition perturbation.

Model

ShearAlfven

Shear-Alfvén part of LinearMHD with zero-flow equilibrium.

Propagator

ShearAlfvenB1

Advances u and b. Used by 1 model.

Propagator

ShearAlfvenCurrentCoupling5D

Advances u and b. Used by 1 model.

Propagator

ShearAlfvenPropagator

Advances u and b. Used by 4 models.

Equilibrium

ShearedSlab

Sheared slab MHD equilibrium in a cube with side lengths mathematical formulation. Profiles depend on mathematical formulation solely.

Equilibrium

ShearFluid

Sheared fluid equilibrium in a cube with side lengths mathematical formulation. Profiles depend on mathematical formulation solely.

Page

Struphy kernels

Compiled numerical routines for splines, finite elements, geometry, linear algebra, and particles.

Page

Team

The maintainers and contributors behind Struphy.

Page

Time integration

Splitting methods and time-stepping schemes available in Struphy.

Propagator

TimeDependentSource

Advances source. Not used by a model yet.

Domain

Tokamak

Mapped geometry available for Struphy simulations.

Perturbation

TokamakManufacturedSolutionVelocity

Initial-condition perturbation in the physical basis.

Perturbation

TokamakManufacturedSolutionVelocity_1

Initial-condition perturbation in the physical basis.

Perturbation

TokamakManufacturedSolutionVelocity_2

Initial-condition perturbation in the physical basis.

Perturbation

TorusModesCos

Initial-condition perturbation.

Perturbation

TorusModesSin

Initial-condition perturbation.

Model

ToyDrift

Electrostatic drift toy model for a single ion species in a given background magnetic field.

Propagator

TwoFluidQuasiNeutralFull

Advances u, ue and phi. Used by 1 model.

Model

TwoFluidQuasiNeutralToy

Linearized, quasi-neutral two-fluid model with zero electron inertia.

Model

VariationalBarotropicFluid

Barotropic fluid equations discretized with a variational method.

Model

VariationalCompressibleFluid

Fully compressible fluid equations discretized with a variational method.

Propagator

VariationalDensityEvolve

Advances rho and u. Used by 11 models.

Propagator

VariationalEntropyEvolve

Advances s and u. Used by 3 models.

Propagator

VariationalMagFieldEvolve

Advances u and b. Used by 1 model.

Propagator

VariationalMomentumAdvection

Advances u. Used by 9 models.

Propagator

VariationalPBEvolve

Advances p, u and b. Used by 3 models.

Model

VariationalPressurelessFluid

Pressure-less fluid equations discretized with a variational method.

Propagator

VariationalQBEvolve

Advances q, u and b. Used by 3 models.

Propagator

VariationalResistivity

Advances s and b. Used by 7 models.

Propagator

VariationalViscosity

Advances s and u. Used by 8 models.

Model

ViscoResistiveDeltafMHD

Delta-f visco-resistive MHD equations discretized with a variational method.

Model

ViscoResistiveDeltafMHD_with_q

Delta-f visco-resistive MHD equations, with the q variable (square root of the pressure), discretized with a variational method.

Model

ViscoResistiveLinearMHD

Linear visco-resistive MHD equations discretized with a variational method.

Model

ViscoResistiveLinearMHD_with_q

Linear visco-resistive MHD equations, with the q variable (square root of the pressure), discretized with a variational method.

Model

ViscoResistiveMHD

Full (non-linear) visco-resistive MHD equations discretized with a variational method.

Model

ViscoResistiveMHD_with_p

Full (non-linear) visco-resistive MHD equations, with the pressure variable, discretized with a variational method.

Model

ViscoResistiveMHD_with_q

Full (non-linear) visco-resistive MHD equations, with the q variable (square root of the pressure), discretized with a variational method.

Model

ViscousEulerSPH

Euler equations with viscosity discretized with smoothed particle hydrodynamics (SPH).

Model

ViscousFluid

Full (non-linear) viscous Navier-Stokes equations discretized with a variational method.

Model

Vlasov

Vlasov equation for a single species in a static background magnetic field.

Propagator

VlasovAmpereCoupling

Advances e and ions. Used by 3 models.

Model

VlasovAmpereOneSpecies

Vlasov-Ampère system for a single kinetic species in an electric field.

Model

VlasovMaxwellOneSpecies

Vlasov-Maxwell equations for one kinetic species.