Hi all First of all thanks for the efforts. What I found worked well is the following work around: for i in range(len(Composition_sweep_outlet)): S_o.SetOverallCompoundMolarFlow(S_i.GetCompoundNames()[i], n_s * Composition_sweep_outlet[i]) S_o.NormalizeOverallMoleComposition() That way the data type "System.array" is not needed. Rather the values are extracted and passed individually as "double". I found that no real performance drawbacks were noticeable (I am only considering 8 compounds). This...
Hi Daniel thanks for the reply. I checked this issue but for me it is not the same. In the this issue: https://github.com/pythonnet/pythonnet/issues/388 it looks like the module System could not be found. However in my case the module was found. I think that it just could not be read correctly. The Problem with nameclashes in pythonnet and clr was resolved in Versions 2.5.2 where clr was included in Python.NET I believe.
Hello to the DWSIM development team. First of all a massive thank you for developing such a powerful tool ! Currently I would like to run a custom script to model the behaviour of a membrane reactor. The results of this script are returned in a numpy.array. The script runs fine. The only error / Problem is the following: To convert the results into the System.Array needed in DWSIM, I used the command "import System" with clr.AddReference("System") as stated in the examples. However I get the following...