Python API Reference

This page is generated from the Python objects exposed by HASEonGPU. It is the reference page for signatures, class members, functions, and direct object lookup. For workflow-oriented explanations and complete simulation examples, start with the Python Interface Guide.

Public API

Geometry and gain media

Grid

Regular rectangular helper that generates a 2D triangular base mesh.

MeshTopology

Triangular base mesh extruded through z levels into wedge prisms.

GainMedium

Mesh plus material/state properties required by ASE and pump models.

GainMediumGeometry

Gmsh

gmsh-backed mesh data accepted by MeshTopology.

Spectra, pump, and ASE configuration

CrossSectionData

Absorption and emission spectra for ASE and pump calculations.

LaserProperties

Mutable low-level laser-property store.

SpectralDecomposition

PumpRadiationProfile

Generic pump-radiation profile consumed by pump transport solvers.

PumpProperties

Pump-beam settings used to raise the excited-state fraction beta.

PhiASE

Configure and run the ASE flux calculation for one gain-medium state.

Simulation and time integration

Simulation

High-level pump, ASE, fluorescence, and time-integration loop.

TimeStepState

Snapshot handed to onStep callbacks after a completed time step.

TimeSteppedSimulation

TimeDerivative

Derivative evaluation produced during one time-integration stage.

TimeIntegrationResult

Return object from TimeIntegrationSolver.step(...).

TimeIntegrationSolver

Base protocol for custom beta time-integration solvers.

ExplicitEuler

First-order explicit Euler beta update using one RHS evaluation.

ExponentialEuler

Euler source update with analytical fluorescence decay over timeStep.

FrozenPhiAseRungeKutta4

Fourth-order beta update with one frozen ASE transport solve per step.

Heun

Second-order predictor-corrector beta update using two RHS evaluations.

ImplicitEuler

Fixed-point implicit Euler beta update for stiff beta dynamics.

Midpoint

Second-order midpoint beta update using a half-step RHS evaluation.

RungeKutta4

Classical fourth-order Runge-Kutta beta update using four RHS evaluations.

Pump solvers, field helpers, and utilities

BetaInt3PumpSolver

BetaIntegrationSolver

BetaIntegrationGaussianSolver

Default PumpProperties solver for a super-Gaussian pump beam.

OneDimensionalZTraversal

Pump solver using z-aligned 1D traversal.

oneDimensionalZTraversalPumpRate

Return frozen-state pump contribution using a 1D z traversal model.

Constants

Physical constants used by the pump energy-to-photon conversion.

LegacyGridDataBetaVolumeMapper

Map point-centered betaCells to prism-centered betaVolume.

calcGainFromState

Calculate point-shaped local small-signal gain from a TimeStepState.

AlpakaBackends

Namespace of backend strings accepted by PhiASE and calcPhiASE.

BaseSchema

PointSchema

TriangleSchema

PrismSchema

PrimitiveFieldSpec

backendFlat

vtkWedge

Write scalar data on a wedge mesh to a legacy ASCII VTK file.

writeGainMediumVtk

Write a GainMedium as legacy ASCII VTK wedge cells.

writeParaviewState

Append one simulation state to an openPMD series and write a ParaView handle.

The unitDimension namespace is exported from HASEonGPU and contains predefined openPMD unit-dimension tuples for HASE transport variables and common dimensions.

Compatibility helpers

beta_int3Main

Run one pump update over all transverse points and z levels.

integrateLaserPump

Return betaCells after applying the configured pump.

runLaserPumpStep

Return betaCells after applying the configured pump.