Command-Line Interface (CLI) Tools =================================== FuelLib provides command-line tools for plotting, unit conversion, and exporting fuel data. For detailed usage of each tool, use the ``--help`` or ``-h`` flag with the command (e.g., ``fl-plt-comp --help``). Plotting ~~~~~~~~ The plotting CLI provides quick visualization of fuel composition and properties. The following commands are available: .. code-block:: bash fl-plt-comp -f FUEL_NAME [OPTIONS] # Plot composition fl-plt-props -f FUEL_NAME [OPTIONS] # Plot properties vs temperature If experimental data is available for the fuel and it is properly linked in the ``fuel_metadata.yaml`` file, it will be included in the plots for comparison with GCM predictions. Examples: .. code-block:: bash fl-plt-comp -f posf10325 fl-plt-props -f posf10264 posf10325 posf10289 fl-plt-props -f my-fuel -dir customFuels/fuelData -p Density Viscosity The first two commands provide the following plots for the specified fuels, while the third command plots only the density and viscosity of a custom fuel: .. figure:: /figures/composition_posf10325.png :width: 600pt :align: center Compositional information of Jet A (POSF10325). .. figure:: /figures/mixture_properties_posf10264_posf10325_posf10289.png :width: 600pt :align: center Properties of conventional jet fuels JP-8 (POSF10264), Jet A (POSF10325), and JP-5 (POSF10289) against data from the Air Force Research Laboratory\ :footcite:p:`edwards_jet_2020`. Note that the data sets for thermal conductivity are very inconsistent, but they typically show linear decreases in thermal conductivity with temperature. Unit Conversion Tools ~~~~~~~~~~~~~~~~~~~~~~ **Temperature Conversion** .. code-block:: bash fl-C2K 25 # Celsius to Kelvin fl-K2C 298.15 # Kelvin to Celsius fl-C2F 25 # Celsius to Fahrenheit fl-F2C 77 # Fahrenheit to Celsius fl-F2K 77 # Fahrenheit to Kelvin fl-K2F 298.15 # Kelvin to Fahrenheit **Lennard-Jones Parameters** Convert Lennard-Jones well depth from J/mol to characteristic temperature in Kelvin (for CHEMKIN chemical mechanisms): .. code-block:: bash fl-eps2K 1000 # epsilon (J/mol) to characteristic temperature (K) Fuel Management ~~~~~~~~~~~~~~~ Quick listing of available fuels: .. code-block:: bash fl-fuels # List fuels shipped with FuelLib fl-fuels -dir customFuels # List custom fuels Export for CFD ~~~~~~~~~~~~~~ FuelLib provides exporters for generating fuel property files for use in CFD simulations. The following commands are available: .. code-block:: bash fl-export-pele -f FUEL_NAME [OPTIONS] # PelePhysics fl-export-converge -f FUEL_NAME [OPTIONS] # CONVERGE Additional information and examples for using the exporters can be found in the `Exporting Properties for Pele `_ and `Exporting Properties for CONVERGE `_ tutorials. Developer Tools ~~~~~~~~~~~~~~~ Tools for development and documentation maintenance: .. code-block:: bash fl-build-docs # Build Sphinx documentation fl-clean-docs # Clean generated documentation fl-format # Format Python code with black