BioSTEAMDevelopmentGroup / thermosteam

BioSTEAM's Premier Thermodynamic Engine
Other
57 stars 12 forks source link

copy_models_from arguments not accepted #24

Closed sarangbhagwat closed 3 years ago

sarangbhagwat commented 3 years ago

import thermosteam as tmo Tetradecanol = tmo.Chemical('Tetradecanol') Octanol = tmo.Chemical('Octanol') Octanol.copy_models_from(Tetradecanol, 'Psat')

ValueError: P is not a valid model name; names must be a subset of ('Psat', 'Hvap', 'sigma', 'epsilon', 'kappa', 'V', 'Cn', 'mu')

yoelcortes commented 3 years ago

The arguments to copy_models_from should be a list of module names. For example:

import thermosteam as tmo
Tetradecanol = tmo.Chemical('Tetradecanol')
Octanol = tmo.Chemical('Octanol')
Octanol.copy_models_from(Tetradecanol, ['Psat'])

Thanks!