Comments (20)
from dwsim.
Actually, you can access almost everything as there are other variables available like Flowsheet, Reaction and Reactor.
from dwsim.
There is some room for improvement. Stay tuned
from dwsim.
The wrapper depends on the library. I've written many C++/Fortran wrappers for DWSIM already. It is the communication bridge between VB/C# and Fortran that is prone to crashes.
from dwsim.
Hi Daniel, I am eagerly looking forward for this feature! I am ready to help with test and evaluation once the feature is added!
from dwsim.
Hi Daniel,
Thank you! This is amazing! I know only Schlumberger Symmetry (VMGSim) has such a feature!
I like to give a try! If you push a new release I will go through details and will submit the result and comments.
from dwsim.
This is a great improvement in writing very complex multi step reactions for multi component - multi reactions system!
from dwsim.
Hi Daniel,
I have installed the new version and tried to implement a simple example like below
CO + 1/2 O2 --> CO2
with r = 0.5 * R1
but I could not get any conversion. Would you please add an example to see how it works?
Thank you
from dwsim.
@kookma can you attach your sim file?
from dwsim.
Hi Daniel,
See attached file. I played and seems I could get a conversion in isothermal operation but failed in adiabatic mode! Seems the reaction set works and issue is because flash calculation.
By the way I would very pleased to receive any example by you and also I may recommend to add few examples to be distributed with DWSIM.
from dwsim.
You're using the script exactly as expected, except that
- You've defined a Liquid-only reaction with non-condensable gases
- You're using a CSTR with a 100% vapor inlet stream.
from dwsim.
Hi Daniel,
- I modified the code by replacing the reactor with a PFR one
- I changed the reaction to be occurred in vapor/gas phase
I cannot get a converge!
from dwsim.
Hello again Daniel,
I understood the issue is with Plug Flow ODE solver. It seems it is a non-stiff ODE solver so for r=0.5C
it cannot integrate the ODES. I changed r
to 0.005C
and also implemented basic kinetic reaction and compared the two PFRS
- A PFR with simple kinetics
r=0.005Ca
- A PFR with Python script for advances kinetics
r=0.005Ca
No both converge, but the second at lower speed. You can check my third version of simulation.
from dwsim.
Now both converge or don't? Using the script will be much slower because it is called a zillion times by the ode solver.
from dwsim.
Daniel, well both of them converged! How we can improved this?
The computation time is considerable!
from dwsim.
Is there something that we could do about the issue with the ODE solver?
from dwsim.
Is there something that we could do about the issue with the ODE solver?
I have not good at VB.Net so I did not understand how ODE solvers have been implemented, but I may have few suggestions:
- If ODEsolver used in DWSIM is not a stiff solver then it will try to solve a stiff ODE by decrease the step size ans so computation takes more and if solver is called many times then we see a considerable computation time to solve a PFR
- If DWSIM has stiff solver then item 1 is not correct here and may be having ode solver in VB.NET makes it slow
I think if DWSIM can use Python why not to use Scipy DLLs and use of robust solvers in SciPy? I also think we can use other libraries as DLL like Fortran ones which are very fast and then write a wrapper in VB.NET to able use them with minimum friction.
What do you think?
from dwsim.
Using Scipy would be much, much slower. Also, about the fortran libs, it is hard to write the wrapper, and it may crash frequently.
DWSIM uses the DotNumerics library which contains these ODE solvers: http://www.dotnumerics.com/NumericalLibraries/DifferentialEquations/Default.aspx
Currently using OdeImplicitRungeKutta5 in the PFR.
from dwsim.
I have worked with Fortran and its reliable, but have no experience to write wrapper in VB.NET.
I will have a look at DotNumerics! But OdeImplicitRungeKutta5 is a good choice here.
from dwsim.
HI,
I do not know what the dotnumerics library is worth, looks like a translation to c# from fortran. I any case the reference for solving problems that requires numerical integration is the suite sundials with cvode that is written in c (https://computing.llnl.gov/projects/sundials). I have tested (comparing against their fortran equivalent) and used it in the past, I do not now whether the license is compatible with gpl.
Kind regards,
Adrian
from dwsim.
Related Issues (20)
- [Bug] PID Controller is not dealing with changes in the controlled object. Faceplate is not being updated with new variable
- [Bug]
- Not able to simulate rigorous distillation column
- Steady-State: Heat exchanger is well calculated but if the simulation is run again, the answer changes HOT 2
- [Bug] Error with CSTR : Mass getting generated/consumed for non-participating compounds HOT 1
- [Bug] Component wise mass balance not getting satisifed in Distillation Column HOT 1
- Compressor does not provide results although calculates (blue) then resets to default values HOT 2
- [Bug] Mass flow rate through heat exchanger stuck at 1kg/s regardless of settings HOT 3
- [Bug] Function H_PR()=
- [Bug] Flowsheet view is reduced after deactivating contol panel mode. HOT 1
- [Bug] Extra property values not showing in hover tooltips in DWSIM versions >8.2.1 HOT 1
- [Bug] Old user guide in deb package HOT 1
- DWSIM 8.5.1 Region 5 Steam tables weird answers [Bug] HOT 4
- [Bug]
- [Bug] Cannot save DWSIM files with embedded flowsheet unit operations - null BsonValue `id` passed HOT 1
- [Enhancement] Improved DWSIM compilation instructions in README.md HOT 5
- [Bug] Error CompCreator3 HOT 1
- Translation error HOT 2
- [Bug] [Linux][Cross-platform UI] Delete or update user compound HOT 2
- [Enhancement] [Linux] [Cross-platform UI] Native save dialog for Compound creator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwsim.