I accidentally posted the following question in Help (Classic UI): "I've written a user-defined method for "Density" and "Viscosity" and added it to the NRTL package. Now how do I get a specific viscosity in a PythonScript unit operation? I'd like to calculate the viscosity and density for some arbitrary point, something similar to enthalpy = propertypackage.DW_CalcEnthalpy(mix, temp, press, state) " So now I've found this thread. Seems similar, but I can't use GetTDependentProperty, because I want...
I asked the following question in the wrong branch of this forum (Classic UI)... But it looks like I can solve this problem using this string variable. Only really I wish it were just the object name. "It would be convenient to have something like a "this" (C++) pointer in a Python script. I'd like to get the name of the object that's being calculated, so that I can print it in the console window along with other data. Something like... object_name = this.GetObjectName() print "Currently calculating...
I've written a user-defined method for "Density" and "Viscosity" and added it to the NRTL package. Now how do I get a specific viscosity in a PythonScript unit operation? I'd like to calculate the viscosity and density for some arbitrary point, something similar to enthalpy = propertypackage.DW_CalcEnthalpy(mix, temp, press, state) Is it possible?
It would be convenient to have something like a "this" (C++) pointer in a Python script. I'd like to get the name of the object that's being calculated, so that I can print it in the console window along with other data. Something like... object_name = this.GetObjectName() print "Currently calculating "+object_name":\n"
Daniel, is the spec block still a hack? I am using it to propogate backwards (upstream) in an evaporator set the pressure in one evaporator's condenser to the evaporation section of the previous evaporator. Since I'm propagating pressure and not mass or energy, do you think it would break the balances? Sincerely...
Daniel, is the spec block still a hack? I am using it to propogate backwards (upstream) in an evaporator set the pressure in one evaporator's condenser to the evaporation section of the previous evaporator. Since I'm propagating pressure and not mass or energy, do you think it would break the balances? Sincerely, John Staško