Skip to content

Commit

Permalink
Updating BTX param with units (#1478)
Browse files Browse the repository at this point in the history
* updating mutable=True for params with units in BTX_activity_coeff_VLE.py

* updating BTX params with units from mutable=False to True

* updating copyright year

---------

Co-authored-by: JavalVyas2000 <[email protected]>
  • Loading branch information
JavalVyas2000 and JavalVyas2000 authored Aug 28, 2024
1 parent 2a587ab commit fe422c0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def build(self):
self.pressure_critical = Param(
self.component_list,
within=NonNegativeReals,
mutable=False,
mutable=True,
initialize=extract_data(pressure_critical_data),
doc="Critical pressure [Pa]",
units=pyunits.Pa,
Expand All @@ -115,7 +115,7 @@ def build(self):
self.temperature_critical = Param(
self.component_list,
within=NonNegativeReals,
mutable=False,
mutable=True,
initialize=extract_data(temperature_critical_data),
doc="Critical temperature [K]",
units=pyunits.K,
Expand All @@ -131,7 +131,7 @@ def build(self):

self.mw_comp = Param(
self.component_list,
mutable=False,
mutable=True,
initialize=extract_data(mw_comp_data),
doc="molecular weight kg/mol",
units=pyunits.kg / pyunits.mol,
Expand Down Expand Up @@ -288,7 +288,7 @@ def build(self):
self.dh_form = Param(
self.phase_list,
self.component_list,
mutable=False,
mutable=True,
initialize=extract_data(dh_form_data),
doc="Standard heats of formation [J/mol]",
units=pyunits.J / pyunits.mol,
Expand All @@ -310,7 +310,7 @@ def build(self):
self.ds_form = Param(
self.phase_list,
self.component_list,
mutable=False,
mutable=True,
initialize=extract_data(ds_form_data),
doc="Standard entropy of formation [J/mol.K]",
units=pyunits.J / pyunits.mol / pyunits.K,
Expand Down

0 comments on commit fe422c0

Please sign in to comment.