Export4Converge
Functions
|
Export mixture fuel properties to .csv for Converge simulations. |
|
Main function to execute the export process. |
- Export4Converge.export_converge(fuel, path='/home/runner/work/FuelLib/FuelLib/exportData', units='mks', temp_min=0, temp_max=1000, temp_step=10)
Export mixture fuel properties to .csv for Converge simulations.
- Parameters:
fuel (fuel object) – An instance of the fuel class.
path (str, optional (default: FuelLib/exportData)) – Directory to save the input file.
units (str, optional (default: "mks")) – Units for the properties (“mks” for SI, “cgs” for CGS).
temp_min (float, optional (default: 0)) – Minimum temperature (K) for the property calculations.
temp_max (float, optional (default: 1000)) – Maximum temperature (K)for the property calculations.
temp_step (int, optional (default: 10)) – Step size for temperature (K).
- Returns:
None
- Return type:
None
- Export4Converge.main()
Main function to execute the export process.
- Parameters:
--fuel_name (str) – Name of the fuel (mandatory).
--units (str, optional) – Units for critical properties. Options are “mks” (default) or “cgs”.
--temp_min (float, optional) – Minimum temperature (K) for the property calculations (optional, default: 0).
--temp_max (float, optional) – Maximum temperature (K) for the property calculations (optional, default: 1000).
--temp_step (float, optional) – Step size for temperature (K) (optional, default: 10).
--export_dir (str, optional) – Directory to export the properties. Default is “FuelLib/exportData”.
- Raises:
FileNotFoundError – If required files for the specified fuel are not found.