You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PropertyNotSupportedError: fs.feed.properties[0.0] package property metadata method does not contain a method for PR_am. Please select a package which supports the necessary properties for your process.
This appears to be because, in order to define the enthalpy, FcPh.py tries to access methods for the cubic equation of state before it is defined in the parameter block:
class GenericStateBlockData(StateBlockData):
CONFIG = StateBlockData.CONFIG()
def build(self):
super(GenericStateBlockData, self).build()
# Add state variables and associated methods
self.params.config.state_definition.define_state(self)
# Add equilibrium temperature variable if required
if (self.params.config.phases_in_equilibrium is not None and
(not self.config.defined_state or self.always_flash)):
t_units = self.params.get_metadata().default_units["temperature"]
self._teq = Var(
self.params._pe_pairs,
initialize=value(self.temperature),
doc='Temperature for calculating phase equilibrium',
units=t_units)
# Create common components for each property package
for p in self.phase_list:
pobj = self.params.get_phase(p)
pobj.config.equation_of_state.common(self, pobj)
The text was updated successfully, but these errors were encountered:
The
generic_property
package does not support enthalpy as a state variable, at least for cubic equations of state.This appears to be because, in order to define the enthalpy,
FcPh.py
tries to access methods for the cubic equation of state before it is defined in the parameter block:The text was updated successfully, but these errors were encountered: