The EquationSystem
class keeps track of settings for all unknown
quantities which DREAM solves for. This class does very little work on its own
and rather acts as a container for the objects representing specific unknown
quantities.
Each unknown quantity which has specific settings is represented by its own
Python class. The object is initialized with defaults when the
EquationSystem
class is created (which happens as soon as the
parent DREAMSettings
object is created) and can be accessed as a property
of the equation system. The following unknown quantities are available in any
EquationSystem
object:
Quantity |
Description |
---|---|
Electric field |
|
Hot electron distribution function |
|
Runaway electron distribution function |
|
Ion densities and charge states |
|
Ohmic current density |
|
Cold electron density |
|
Runaway electron density |
|
psi_p |
Poloidal magnetic flux |
Shattered pellet shards |
|
Cold electron temperature |
Unknown quantities can be accessed in the following way:
ds = DREAMSettings()
ds.eqsys.E_field.setPrescribedData(0.3) # Uniform electric field profile (V/m)
ds.eqsys.T_cold.setPrescribedData(1100) # Uniform temperature profile (eV)
...