HASEonGPU.GainMedium
- class HASEonGPU.GainMedium(topology, physical=<factory>)
Bases:
objectMesh plus material/state properties required by ASE and pump models.
Use
get(name)to inspect a property handle, including expected array shape, then setprop.valueor callset(name, value). Arrays may be supplied in matrix shape and are stored internally in Fortran order.- Parameters:
topology (MeshTopology)
physical (dict)
- 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
selffor 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
betaCellsentry.
- listProperties()
Return metadata for all known gain-medium properties.
- get(name)
Return a
GainMediumPropertyhandle by canonical name or alias.
- set(name, value)
Validate and store one physical property.
- property dntdAse
ASE contribution to
d beta / dtat the sample points.
- property numberOfLevels
Number of z sample planes in the attached topology.