HASEonGPU.GainMedium

class HASEonGPU.GainMedium(topology, physical=<factory>)

Bases: object

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

Use get(name) to inspect a property handle, including expected array shape, then set prop.value or call set(name, value). Arrays may be supplied in matrix shape and are stored internally in Fortran order.

Parameters:
topology: MeshTopology

Geometry and z-level sampling for this medium.

physical: dict

Canonical physical arrays and scalars stored by property name.

classmethod fromVtk(filename, *, numberOfLevels=None, thickness=None)

Load topology and physical fields from a legacy VTK wedge file.

classmethod fromFile(filename, format=None, *, numberOfLevels=None, thickness=None)

Load a gain medium; currently supports legacy VTK files.

withPhysicalProperties(**properties)

Set several physical properties and return self for chaining.

toVtk(filename)

Write this gain medium to a legacy ASCII VTK wedge file.

emptyBetaCells(fill=0.0)

Create a correctly shaped point-level beta array filled with fill.

betaCellIndexAt(x, y, z, *, tol=1e-12, flat=False)

Forward coordinate lookup for a betaCells entry.

listProperties()

Return metadata for all known gain-medium properties.

get(name)

Return a GainMediumProperty handle by canonical name or alias.

set(name, value)

Validate and store one physical property.

property dntdAse

ASE contribution to d beta / dt at the sample points.

property numberOfLevels

Number of z sample planes in the attached topology.