sunpeek.components.fluids_wpd_models#

Classes

ModelFactory([unit, is_pure, csv_file, df])

WPDModel(unit)

Model for a particular property of a fluid, e.g. for density or for heat capacity. # Has an ONNX filename and the units for all inputs (temperature, optionally concentration) and the calculated output. Has the units for all inputs (temperature, optionally concentration) and the calculated output. Can read WebPlotDigitizer csv files, train sklearn fit, save trained model as ONNX file and make predictions. :ivar unit: Units for temperature ['te'], optionally concentration ['c'] and (mandatory) output property ['out']. Must be valid pint unit strings. These units are sent to the trained model if a prediction is required, and the prediction output is interpreted in unit['out'].

WPDModelMixed(unit)

WPDModelPure(unit)