Data
despasito.parameter_fitting.data_classes.saturation_properties.Data
- class Data(data_dict)[source]
Object for saturation data. This data is evaluated with “saturation_properties”.
This object is initiated in
fit()with the keyword,exp_data[*]["data_class_type"]="saturation_properties". The data could be evaluated withsaturation_properties()- Parameters:
data_dict (dict) – Dictionary of exp data of saturation properties.
calculation_type (str) - Optional, default=’saturation_properties’
MultiprocessingObject (obj) - Optional, Initiated
MultiprocessingJob* eos_obj (obj) - Equation of state object * T (list) - [K] List of temperature values for calculation * xi (list) - (or yi) List of liquid mole fractions used in saturation properties calculations, should be one for the molecule of focus and zero for the remainder. * Psat (list) - [Pa] List of saturation pressure values to evaluate against * rhov (list) - [mol/\(m^3\)] List of vapor density values to evaluate against * rhol (list) - [mol/\(m^3\)] List of liquid density values to evaluate against * weights (dict) - A dictionary where each key is a system constraint (e.g. T or xi) which is also a header used in an optional exp. data file. The value associated with a header can be a list as long as the number of data points to multiply by the objective value associated with each point, or a float to multiply the objective value of this data set. * density_opts (dict) - Optional, default={“min_density_fraction”: (1.0 / 60000.0), “density_increment”:10.0, “max_volume_increment”:1.0E-4}, Dictionary of options used in calculating pressure vs. mole fraction curves. * kwargs forobj_function_form()- Variables:
name (str) – Data type, in this case saturation_properties
Eos (obj) – Equation of state object
obj_opts (dict) – Keywords to compute the objective function with
obj_function_form().npoints (int) – Number of sets of system conditions this object computes
result_keys (list) – Thermodynamic property names used in calculation of objective function. In in this case: [“rhol”, “rhov”, “Psat”]
thermodict (dict) –
Dictionary of inputs needed for thermodynamic calculations
calculation_type (str) default=saturation_properties
density_opts (dict) default={“min_density_fraction”:(1.0 / 80000.0),
”density_increment”:10.0, “max_volume_increment”:1.0E-4}
weights (dict, Optional, default: {"some_property": 1.0 ...}) – Dictionary corresponding to thermodict, with weighting factor or vector for each system property used in fitting
Generate objective function value from this dataset
Data.update_parameters(fit_bead, ...)Update a single parameter value during parameter fitting process.