Traceback (most recent call last):
File "f:\C\04vb\testpy\testsDTL2.py", line 41, in <module>
pval = dtlc.GetCompoundConstProp("Ethanol", prop)
System.NullReferenceException: Object reference not set to an instance of an object.
在 DWSIM.Thermodynamics.Streams.MaterialStream.get_PropertyPackage()
在 DWSIM.Thermodynamics.Streams.MaterialStream.GetCompoundConstant(Object props, Object compIds)
在 DWSIM.Thermodynamics.CalculatorInterface.Calculator.GetCompoundConstProp(String compound, String prop)
Dear all
I can't run the following the example Daniel provided on (https://gist.github.com/DanWBR/3cb00f7ca112e6bbeca3e986890cef7f), and I get the following error:
Here is my code(modified from
dtl_test.py
):My OS: win11
Python version: 3.9
Pythonnet version:3.0.3
DTL version: 8.7.0.0
I would greatly appreciate your assistance in helping me resolve this issue.
Kind regards
wangye
Last edit: wangye 2024-03-21