models.propulsion.propellants.formulations¶
machwave.models.propulsion.propellants.formulations
¶
get_propellant_from_json(filepath)
¶
Load propellant formulation from JSON file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str | Path
|
Path to JSON file. |
required |
Returns:
| Type | Description |
|---|---|
SolidPropellant | BiliquidPropellant
|
SolidPropellant or BiliquidPropellant instance. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If JSON data invalid. |
FileNotFoundError
|
If file doesn't exist. |