In this version of hpl1d only the thermo- and gas dynamical processes can be modeled, with strong emphasis on simulation of entire operation cycle of internal combustion engine with wave action in engine ducting.
The most important programs found in hpl1d package are graphical user interface (GUI) and solver. GUI ("hpl1dw.exe") ensures visual manipulation of assembly, editing modules' properties, running solver and also some pre- and post-processing. Solver does numerical simulation; it is written as a standalone program ("hpl1ds.exe"), this is done for simplicity and for flexibility. The latter means that the user may engage the solver as a computational utility in his/her own ways, e. g. for automated simulation/optimization, etc. Simulation results can be visualized, stored or post-processed and interpreted in any other way.
There are also other programs in the package; they can be
used mostly as "tools" (or "plug-ins").
The only physical domain considered in this version of hpl1d is the
one-dimensional (1D) gas dynamics. All components and connectors are based on gas-dynamical
models. Thermodynamic parameters and flow velocity have zero- or one-dimensional representation
within these modules.
Working fluid is considered as a mixture of two (at most) gases. Both mixture constituents
are considered to be ideal gases with (that is optional) non-linear dependence of their specific
internal energy on the temperature e(T), that is represented by a polynomial:
Modules of another kind are connectors, their job is to evaluate interactions between the components. Only two kinds of connectors are present in this version:
Each model used to compute flow on connector (except Window) uses characteristic-based solution procedure to compute gas-dynamical fluxes. Every connector needs some kind of empirical data to properly account for its behavior in unsteady gas flow.
More detailed theory and instructions for usage can be found in User Manual.
Explanation of terms used throughout the documentation can be found in Glossary.
Input data needed to simulate each case is being collected as files within the project directory -- .\prj\[project-name]\. Projects can be created, copied and edited independently. Editing the assembly layout, modules' properties, running and terminating solver and visualizing the simulation results are managed with the help of GUI.
The main project file is input. Herein placed are modules layout and module properties with (optional) links to external data files. Another obligatory input file is thermo, which holds data that is ready to represent thermodynamic properties of gases used in simulation. Other files may be optional. Some files, (screen, track) are used for visualization and contain data generated by the solver program. More detailed description can be found in User Manual.
Output and visualization:
Output is done using multiple "channels". First, solver reports (if needed) the current step number (in time). Also, the simulated parameters on special "probes" during a given period are (optionally) collected and stored in file screen. This file then can be "played" and post-processed (scanned, exported as text and saved as graphical plots); Similarly, parameter curves along [quasi-]spatial coordinate x can be stored and then animated, producing an impressive record of wave action, e. g. in entire engine ducting system. This animation is stored in track file.
Visualization is possible for the following flow parameters: pressure, temperature, flow velocity, mass fraction of the 1st mixture constituent (both on screen and on track). Also (in case of screen) port opening areas, and mass flow rates of the mixture and of its 1st constituent (typically, fresh air) can be output. In case of track it is possible to view the entropy, both Riemann invariants and some kind of specific work of gas along the ducting.
Importing data on characteristics:
Tables of empirical data needed for simulation (found in sub-directories of .\data) are arranged in categories. These are:
The current version of "Horsepower Lab 1D" is still a pre-release, so it may be worth looking at the list of major changes planned for the future versions:
More detailed list of planned changes is placed in file TODO.TXT