Skip to content

power_balance.validation.modelica_simulation_options#

Source: power_balance/validation/modelica_simulation_options.py

Enum Solver#

Solver
Source: power_balance/validation/modelica_simulation_options.py

An enumeration.

Members#

  • DASSL: dassl

  • IDA: ida

  • CVODE: cvode

  • IMPEULER: impeuler

  • TRAPEZOID: trapezoid

  • IMPRUNGEKUTTA: imprungekutta

  • EULER: euler

  • HEUN: heun

  • RUNGEKUTTA: rungekutta

  • RUNGEKUTTASSC: rungekuttaSsc

  • IRKSCO: irksco

  • SYMSOLVER: symSolver

  • SYMSOLVERSSC: symSolverSsc

  • QSS: qss

Class FromUnityInt#

Source: power_balance/validation/modelica_simulation_options.py

int([x]) -> integer int(x, base=10) -> integer Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero. If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

Class FromZeroInt#

Source: power_balance/validation/modelica_simulation_options.py

int([x]) -> integer int(x, base=10) -> integer Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero. If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int('0b100', base=0) 4

Class PlasmaScenario#

PlasmaScenario(*, plasma_ramp_up_start: power_balance.validation.modelica_simulation_options.FromZeroInt, plasma_flat_top_start: power_balance.validation.modelica_simulation_options.FromZeroInt, plasma_flat_top_end: power_balance.validation.modelica_simulation_options.FromZeroInt, plasma_ramp_down_end: power_balance.validation.modelica_simulation_options.FromZeroInt) -> None
Source: power_balance/validation/modelica_simulation_options.py

Class SimOptsModel#

SimOptsModel(*, stopTime: power_balance.validation.modelica_simulation_options.FromUnityInt, startTime: power_balance.validation.modelica_simulation_options.FromZeroInt, stepSize: Union[power_balance.validation.modelica_simulation_options.SmallestFloat, power_balance.validation.modelica_simulation_options.FromUnityInt], solver: power_balance.validation.modelica_simulation_options.Solver = <Solver.DASSL: 'dassl'>, tolerance: power_balance.validation.modelica_simulation_options.SmallestFloat) -> None
Source: power_balance/validation/modelica_simulation_options.py

Class SmallestFloat#

SmallestFloat(x=0, /)
Source: power_balance/validation/modelica_simulation_options.py

Convert a string or number to a floating point number, if possible.


Last update: April 1, 2022