define_gas_mixture()#

AlicatMC.define_gas_mixture(
mix_name: str,
mixture: list[GasMixEntry],
gas_id: int = 0,
) → GasTypeEntry[source]#

Allows defining an arbitrary gas mixture of 2-5 components.

mix_name is an alias for the mixture. Use a maximum of 6 letters (upper and/or lower case), numbers and symbols (space, period or hyphen only).

gas_id is a number from 236-255, selecting 0 will get the next available ID

Returns selected gas_id. If gas_id is not 0, it should return gas_id. If gas_id is 0, it should return an integer from 236-255.