-
Is the conversion is PFR is calculated as below? I am not sure if this is equal to: I appreciate if you kindly explain this like
Furthermore, can I export conversion along the reactor and plot conversion profile? I mean through Script Manager (Ironpython) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 12 replies
-
It should be
n0 = initial mole flow in mol/s |
Beta Was this translation helpful? Give feedback.
-
@kookma by the way, gibbs and equilibrium reactors are actually the hardest ones. PFR/CSTR and conversion are not that hard to model. You have many options if you want to "revamp" them. One is to do what you've described, another one would be to create a new, external unit operation, and the last one would be to create a custom model in IronPython or python.net, where you could use scipy's ODE solvers, for instance. |
Beta Was this translation helpful? Give feedback.
-
@Greg66 - thank you for your advice! @DanWBR - python is the best option for us! but then converting to .NET and merging to core would be time consuming process! |
Beta Was this translation helpful? Give feedback.
-
@kookma there are no coding conventions at the moment. Why don't you create an external unit operation then? There is a full VB project as a reference here (https://github.com/DanWBR/DWSIM.UnitOperations.Humidifer) and a video tutorial from beginning to the end here: https://www.youtube.com/watch?v=anNCig-wgf4&list=PLWUTvgwTyRnOjZ5WtuWjwfc1G3GjeKTjI You can also take a look at the Neural Network UO code in C#. https://github.com/DanWBR/DWSIM.UnitOperations.NeuralNetwork |
Beta Was this translation helpful? Give feedback.
-
can I export conversion along the reactor and plot conversion profile? I mean through Script Manager (Ironpython) |
Beta Was this translation helpful? Give feedback.
-
@DanWBR - I successfully extracted the data from a PFR in a python script and plot the profiles. plug-flow-reactor-plot-profiles-using-python.zip [This uses Numpy, Matplotlib with Python.NET] Some thoughts
Suggestions
from the above two data you can calculate:
So points shall have If you like you keep also concentration as before but molar flowrate is enough! |
Beta Was this translation helpful? Give feedback.
It should be
ComponentConversions(sb.Name) = Abs(n0 - nf) / n0
n0 = initial mole flow in mol/s
nf = final mole flow in mol/s