Contains the readInput() function, used to read MEASURE input files. The MEASURE input file format is based on Python syntax, and is in fact a valid Python file. This allows us to easily load the file by defining functions and connecting them to the constructs in the input file. If the reading of the input file is unsuccessful, an InputError will be raised.
An exception that is raised when a MEASURE input file is invalid for some reason. Pass a string detailing the circumstances of the exceptional behavior.
Reads a MEASURE input file from location path on disk. The input file format is described in the MEASURE Users’ Guide. Returns a number of quantities:
Processes a quantity from the input file. The quantity can be a number of things:
If the quantity has units, then the associated number(s) are converted to SI units using the quantities package. If the quantity does not have units, then it is assumed to be either a dimensionless quantity or a quantity that is already in SI units.
This function returns a tuple containing the number or list of numbers and a string with the units of those numbers.
For a given Species object species with molecular degrees of freedom data in its states attribute, generate a corresponding thermo model. A ThermoGAModel thermodynamics model is stored in the species thermo attribute, and nothing is returned.
Returns an array of temperatures based on the interpolation model, minimum and maximum temperatures Tmin and Tmax in K, and the number of temperatures Tcount. For Chebyshev polynomials a Gauss-Chebyshev distribution is used; for all others a linear distribution on an inverse temperature domain is used. Note that the Gauss-Chebyshev grid does not place Tmin and Tmax at the endpoints, yet the interpolation is still valid up to these values.
Returns an array of pressures based on the interpolation model, minimum and maximum pressures Pmin and Pmax in Pa, and the number of pressures Pcount. For Chebyshev polynomials a Gauss-Chebyshev distribution is used; for all others a linear distribution on an logarithmic pressure domain is used. Note that the Gauss-Chebyshev grid does not place Pmin and Pmax at the endpoints, yet the interpolation is still valid up to these values.