No I am trying new UI Further findings while searching other forums In the DWSIM deb there are these files available /usr/local/lib/dwsim$ ls -k -s | grep Python.Run 16 Python.Runtime.deps.json 396 Python.Runtime.dll 4 Python.Runtime.dll.config 180 Python.Runtime.pdb But these file also available when you install pythonnet via pip ~/Binaries/miniconda3.10/lib/python3.10/site-packages/pythonnet/runtime$ ls -k -s | grep Python.Run 12 Python.Runtime.deps.json 424 Python.Runtime.dll 192 Python.Runtime.pdb...
Dear friend please help me out. This is not working. This folder is now completely empty: /usr/local/lib/dwsim/extenders
Dear friend please help me out. This is not working.
Thanks for replying. But it isnt the solution to python problem. I think this integration should be more smoother in Linux platforms. However my problem is referenced before as well : https://sourceforge.net/p/dwsim/discussion/mac_newui/thread/fe96433bcb/
Error log 2023-11-28 18:38:01.3782 Extender Initialization System.NullReferenceException: Object reference not set to an instance of an object at AutomaticTranslation.AutomaticTranslator.SetMainWindow (System.Windows.Forms.Form mainwindow) [0x0004c] in <dd9aae1bdf604acfa8a151e6ab29149d>:0 at DWSIM.FormMain.LoadExtenders () [0x00418] in <b757939e07c641f98bd9f6da26d95b13>:0 2023-11-28 18:39:20.0186 Extender Initialization System.NullReferenceException: Object reference not set to an instance of an...
From the DWSIM Application Data folder in $HOME, there is a .ini for DWSIM settings. I will extract it partially here: [OctaveBridge] OctavePath = OctaveProcessTimeout = 15 [PythonBridge] PythonPath = PythonProcessTimeout = 1 [OSInfo] Platform = Linux Environment = 64 Application fails to launch if I do either of following case. It just show splash screen & dies PythonPath = /usr/lib/x86_64-linux-gnu/libpython3.10.so OR PythonPath = /home/ukhan/Binaries/miniconda3.10/lib/libpython3.10.so Should I...
SOLVED
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result 0.16180186x2130+0.83819814 x958= 1147.63177992 [bad] 0.31x2130+0.69x958 = 1321.32 [ok] These lines https://github.com/DanWBR/dwsim/blob/554110f200ea055a29a872f216879744385efa31/DWSIM.Thermodynamics/PropertyPackages/PropertyPackage.vb#L5327C1-L5332C23...
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result 0.16180186x2130+0.83819814 x958= 1147.63177992 [bad] 0.31x2130+0.69x958 = 1321.32 [ok] This line https://github.com/DanWBR/dwsim/blob/554110f200ea055a29a872f216879744385efa31/DWSIM.Thermodynamics/PropertyPackages/PropertyPackage.vb#L5329...
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result 0.16180186x2130+0.83819814 x958= 1147.63177992 [bad] 0.31x2130+0.69x958 = 1321.32 [ok]
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result 0.16180186x2130+958x0.83819814 = 1147.63177992 [bad] 0.31x2130+958x0.69 = 1321.32 [ok]
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result 0.161801862130+9580.83819814 = 1147.63177992 [bad] 0.312130+9580.69 = 1321.32 [ok]
The density routine for mixtures use molar fractions for density calculations for mixtures. However I have found that mass fractions produce more proper results, close to reality. For instance ∑ [xi * ρi] leads to less values while ∑ [mi * ρi] produce much better result
Secondly, can you provide an example for using this function get() & set() https://dwsim.org/api_help/html/P_DWSIM_Thermodynamics_BaseClasses_ConstantProperties_Z_Rackett.htm
I did that but no success, there is a problem with this line matstr.SetProp('density', 'OverallLiquid', '', '', '', propval) or matstr.SetProp('density', 'OverallLiquid', '', 'Mixture', '', propval)
Lets ditch Override & use scripts dialogue . SetProp is not working here, It should be straight word as per API matstr = Flowsheet.GetFlowsheetSimulationObject('FNaOH') densobj = matstr.GetPhase('OverallLiquid').Properties.density Flowsheet.WriteMessage('Echo1 ' + str(densobj)) m_fr = matstr.GetPhase('OverallLiquid').Compounds['Sodium Hydroxide'].MassFraction * 100 m_temp = matstr.GetTemperature() propval = 1239.652 + 9.722088*m_fr - 0.68301*m_temp matstr.SetProp('density', 'OverallLiquid', '', '',...
Lets ditch Override & use scripts dialogue . SetProp is not working here, It should be straight word as per API matstr = Flowsheet.GetFlowsheetSimulationObject('FNaOH') densobj = matstr.GetPhase('OverallLiquid').Properties.density Flowsheet.WriteMessage('Echo1 ' + str(densobj)) m_fr = matstr.GetPhase('OverallLiquid').Compounds['Sodium Hydroxide'].MassFraction * 100 m_temp = matstr.GetTemperature() propval = 1239.652 + 9.722088*m_fr - 0.68301*m_temp matstr.SetProp('density', 'OverallLiquid', '', '',...
Firstly I updated density of NaOH + H2O mixture using this code [https://dwsim.org/wiki/index.php?title=Overriding_Calculated_Properties] densobj = matstr.GetPhase('OverallLiquid').Properties.density if (densobj <> None): currval = densobj # get massFrac of NaOH m_fr = matstr.GetPhase('OverallLiquid').Compounds['Sodium Hydroxide'].MassFraction * 100 # update if (m_fr > 0): # write current value to the flowsheet (kg/m3) flowsheet.WriteMessage('current liquid mixture density value (kg/m3): ' + str(currval))...
Firstly I updated density of NaOH + H2O mixture using this code [https://dwsim.org/wiki/index.php?title=Overriding_Calculated_Properties] densobj = matstr.GetPhase('OverallLiquid').Properties.density if (densobj <> None): currval = densobj # get massFrac of NaOH m_fr = matstr.GetPhase('OverallLiquid').Compounds['Sodium Hydroxide'].MassFraction * 100 # update if (m_fr > 0): # write current value to the flowsheet (kg/m3) flowsheet.WriteMessage('current liquid mixture density value (kg/m3): ' + str(currval))...
Firstly I updated density of NaOH + H2O mixture using this code [https://dwsim.org/wiki/index.php?title=Overriding_Calculated_Properties] densobj = matstr.GetPhase('OverallLiquid').Properties.density if (densobj <> None): currval = densobj # get massFrac of NaOH m_fr = matstr.GetPhase('OverallLiquid').Compounds['Sodium Hydroxide'].MassFraction * 100 # update if (m_fr > 0): # write current value to the flowsheet (kg/m3) flowsheet.WriteMessage('current liquid mixture density value (kg/m3): ' + str(currval))...
I will do that ...can you provide an excample of how to use 'Property override' in this case for Cp
I am attaching a sim file where specific heats for EG-H2O mixture plays an important role in determing cooling loads. The actual values are 3.7-3.8 for 40% w.t ...but DWSIm puts it at 1.6kJ/kg.K source: https://simulationresearch.lbl.gov/modelica/releases/v9.1.0/help/Buildings_Media_Antifreeze_EthyleneGlycolWater.html
If there is binary mixture like CaCl2-H2O or NaOH-H2O; I suppose with proper VLE data (can be acquired through NIST) & a very good DWSIM compund creation utility ...I suppose it can done. Ions are a different ball game altogether
Ah! there was no tutorial so I figured it out myself. To create a User Expression the correct way is to write it like: exp^(A+B/(T+C)+D*Ln(T))
Ah! there was no tutorial so I fugured it out myself. To create a User Expression the correct way is to write it like: exp^(A+B/(T+C)+D*Ln(T))
In the compund creation utility, I am having following error Error parsing string for numerical expression: 'Exp(A + B / (T + C) + D * Ln(T))'. Check temperature-dependent property expressions for the selected compounds and try again.
Units based on different phases can be constructed using spreadsheet. You can import gas & liquid quanities into spreadsheet & apply conversion factors to reach your answer. m3/d > corresponds to process conditions
I know DWSIM has a powerful sensitivity analysis tool. However sometimes we need an arbitarily chosen mix of variables & its effect upon another variable(s). This can be easily done via Data Recorder of some sort that provides tabulated & graphical results afterwards Daniel your insights (as always) are welcome
You can create sensitivty analysis & study variable change effects...why create separate files?
Will get back to you after I learn it myself :)
Thanks, so is there a tutorial how to build this JSON file, lets say if I want to do that for DOWTHERM oil
Thanks for replying. Well I am at a beginner level of Python so I will need some coding help. Alternatively I was hoping if I can export a spreadsheet cell (say B1) that has a numerical value of 0.42. Then this can somehow be referred in the equation for the SPECIFICATION Block In the attachment I just want to vary S1 block equation to see the effect of varying amount of WaterVap on the Cooler (UO name in the attachment) duty in KW. Currently WaterVap.MassFlow = 0.42 * PureCl2.MassFlow ^ this 0.42...
@ v5.2u14 In the attached picture a SET block is used to mathematically relate flowrates of two different material streams (see the equation). I want to change the multiplying factor (currently 0.42) say from 0.1 - 0.4 in sensitivity analysis. How can I achieve that
@ v5.2u14 In the attached picture a SET block is used to mathemtically relate flowrates of two different material streams (see the equation). I want to change the multiplying factor (currently 0.42) say from 0.1 - 0.4 in sensitivity analysis. How can I achieve that
@ v5.2u14 In the attached picture a SET block is used to mathemtically relate flowrates of two different material streams (see the equation). I want to change the multiplying factor (currently 0.42) say from 0.1 - 0.4 in sensitivity analysis. How can I achieve that
This is an extension to a previous SOLVED question: https://sourceforge.net/p/dwsim/discussion/844528/thread/404daee0/ If I use a different basis at shell side when compared with tube side; will the problem encountered previously will repeat? For instance I want to use NRTL at tube side (for brine) while ASTM Steam at shell side
Nops not available (in the form attached below) but you can use CHEMSEP UO
Sorry Daniel, I had tinkered with DPI settings ..sorry problem resolved
Cannot find the package selection for a material stream? Plus also give me advice of a package selection while dealing with lye systems (such as this)
I am using Steam-97 basis & the cooler throws a buggy value when outlet vapour fraction is selcted to be 0 (meaning only latent heat is to be extracted); while the same cooler UO calculates OK when cooling condensates (sensible heat is extracted) Apart from sign error the value extracted from 1000kg/hr of steam at 14barg with quality=1 ..is highly under-reported by DWSIM ...other simulators (plus manual check via steam tables) gives a value of 537kW whereas DWSIM 144kW?
I am using Steam-97 basis & the cooler throws a buggy value when outlet vapour fraction is selcted to be 0 (meaning only latent heat is to be extracted); while the same cooler UO calculates OK when cooling condensates (sensible heat is extracted) Apart from sign error the value extracted from 1000kg/hr of steam at 14barg with quality=1 ..is highly under-reported by DWSIM ...other simulators (plus manual check via steam tables) gives a value of 537kW whereas DWSIM 144kW?
I am really happy that you are woking on electrolytes. pH calculation should be a priority
Daniel you don't need one! The previous method (input vol of solvent & moles of solute) was more than suitable (as was in tutorial)
Daniel, but its very difficult that way. Please provide an easy solution to set molarities (user-friendly manner)
@Problem/Solution #2 I have mentioned earlier that per instruction its simple but the water (solvent) row is greyed ..how do I edit it. Please check attached video (generated by ffmpeg)
@Problem/Solution #1 I have mentioned earlier that per instruction its simple but the water (solvent) row is greyed ..how do I edit it. Please check attached video (generated by ffmpeg)
@ http://dwsim.inforside.com.br/wiki/index.php?title=Setting_up_an_Electrolyte_Simulation As per above tutorial I cannot find x2 things in latest versions 1] How do I import reaction set located in \Program Files (x86)\DWSIM5\data\reactions\Water Self-Ionization.dwrxm 2] I cannot undertsand how to reproduce For the molarity option, Water amount is entered in liters, while the salt and ion amounts should be entered in mols. For the first I can manually initiate & type whole of equilibrium rxn data...
@ http://dwsim.inforside.com.br/wiki/index.php?title=Setting_up_an_Electrolyte_Simulation As per above tutorial I cannot find x2 things in latest versions 1] How do I import reaction set located in \Program Files (x86)\DWSIM5\data\reactions\Water Self-Ionization.dwrxm 2] I cannot undertsand how to reproduce *For the molarity option, Water amount is entered in liters, while the salt and ion amounts should be entered in mols. * For the first I can manually initiate & type whole of equilibrium rxn data...
@ http://dwsim.inforside.com.br/wiki/index.php?title=Setting_up_an_Electrolyte_Simulation As per above tutorial I cannot find x2 things in latest versions 1] How do I import reaction set located in \Program Files (x86)\DWSIM5\data\reactions\Water Self-Ionization.dwrxm 2] I cannot undertsand how to reproduce *For the molarity option, Water amount is entered in liters, while the salt and ion amounts should be entered in mols. * For the first I can manually initiate & type whole of equilibrium rxn data...
@ http://dwsim.inforside.com.br/wiki/index.php?title=Setting_up_an_Electrolyte_Simulation As per above tutorial I cannot find x2 tings in latest versions 1] How do I import reaction set located in \Program Files (x86)\DWSIM5\data\reactions\Water Self-Ionization.dwrxm 2] I cannot undertsand how to reproduce *For the molarity option, Water amount is entered in liters, while the salt and ion amounts should be entered in mols. * For the first I can manually initiate & type whole of equilibrium rxn data...
@ http://dwsim.inforside.com.br/wiki/index.php?title=Setting_up_an_Electrolyte_Simulation As per above tutorial I cannot find x2 tings in latest versions 1] How do I import reaction set located in \Program Files (x86)\DWSIM5\data\reactions\Water Self-Ionization.dwrxm 2] I cannot undertsand how to reproduce *For the molarity option, Water amount is entered in liters, while the salt and ion amounts should be entered in mols. * For the first I can manually initiate & type whole of equilibrium rxn data...
Problem Solved & features added in update 10. Thanks author
@ Win10x64 DWSIM v5u8 (latest till date) When using Adjuster I have to be very vigilant about the units for Manipulated variable. While in flowsheet the user has selected MassFlow units in kg/hr Adjuster always uses SI units (kg/sec) WITHOUT even notifying user. When using Brent method this very problem arises. Difficulty further arises when we are dealing -ive pressures & Adjuster use Pa! I also request that in the result table for Adjuster please add the column for instant value of Manipulated...
@ Win10x64 DWSIM v5u8 (latest till date) When using Adjuster I have to be very vigilant about the units for Manipulated variable. While in flowsheet the user has selected MassFlow units in kg/hr Adjuster always uses SI units (kg/sec) WITHOUT even notifying user. When using Brent method this very problem arises. Difficulty further arises when we are dealing -ive pressures & Adjuster use Pa! I also request that in the result table for Adjuster please add the column for instant value of Manipulated...
Marta it seems you are dealing with Absorption Chillers (preheaters) ! Don't use S&T plainly in this case. Almost all chillers employ P&F HXchangers or spiral tubes (if S&T)
Here is the attachment
When I change the split of component splitter via an Adjust ControlBlock ...& define upper/lower limits in say kg/hr. Then I start sensitivity analysis & the change in the split is occuring in kg/s & it also gives erratic results
Daniel if your time does allow you please do attach a python script & if it can be done via VBA (a sample will suffice) I would stop bothering you :)
No there isn't ...however if you can attach a sketch of your system we will be in a better position to help you
I think the answers for KPIs (key process parameters) for a combustion cycle are thoroughly discussed in Thermodynamic books (Cengel Boles for instance), you can start from there & then buid your model. DWSIM is is indeed capable!
Download the case
In the attached sim file I am accessing wet Cl2 streams cooling loads: case A where it has no O2 & case B where it has 0.05 (mole fraction) O2. All other conditions are same because case A was copied to produce case B. I cannot infer the results & require someone to look at the cooler load (in KW) because they seem highly influenced with minor O2 in material stream to cooler! I have checked Cp values & density values ....they don't differ much My 2nd query is that dewpoint temperature of material...
Whenever dealing with Separator UO ...its better to check Q (in/out) value. For your 3rd case override Q value ESTR-004 to zero & then solve
Weird! I am reproducing the same problem. Juan, however, if you look at the popup menu of energy streams for both compressors the power is ~36kW
they exist! Use adjuster or you can have parametric studies
Daniel I am sorry but I have given up! I cannot setup a successful NRTL isobaric binary regression b/w H2O & HCl. I know you may be busy man ...but do please help me in getting these NRTL coefficients
Daniel I am sorry but I have given up! I cannot setup a successful NRTL isobaric binary regression b/w H2O & HCl. I know you may be busy man ...but do please help me in hetting these NRTL coefficients
I have setup sim where H2/Cl2 burns (Conversion Reactor + reaction + PR package) to produce HCl gas. Now how do I setup an absorber such that whole HCl gets Aqueous? Only 1 page documentation regarding electrolytes is there in DWSIM online help. I have read it but when I add UNIQUAC electrolyte package it somehow interfere with PR package & the outlet temperature of conversion reactor is highly under-estimated? (from 2700C TO 800C)
Thanks problem resolved with v5.1u9
this also occurs in HYSYS https://www.cheresources.com/invision/topic/27134-why-hysys-isnt-providing-proper-steam-properties/
this also occurs in HYSYS https://www.cheresources.com/invision/topic/27134-why-hysys-isnt-providing-proper-steam-properties/#entry111607
I have setup sim to determine exit velocities of air for changing Pipe Lengths (a system devised to surrogate our air compressor system) Sim Setup (PR + Brills Correlation for pressure drop*): http://www.mediafire.com/view/a3agdnf4kasrah4/Screenshot_2.png# Problem: http://www.mediafire.com/view/mwn75058edd51w5/Screenshot_1.png In the problem image you can see that I cannot access pipe length property for sensitivity analysis. Is there anything to replicate this HYSYS feature: http://www.mediafire.com/file/19h3eivbn1nqg4n/HYSYS_Out.png...
Problem is RESOLVED . Thanks!
Thanks for your timely response
I am afraid Daniel thiugh I do know a lot about EXCEL-VBA ...this seems to be beyond my comprehension
BTW COCO failed to autocalculate max. extent of RXN2 (whereas DWSIM successfully did that). COCO gave error that O2 has become -ive in outlet so I have to manually reduce 0.6 extent of RXN2 to 0.576. HYSYS represenatation of this extent is different & it also gave me temporary headache :(
oK Daniel the problem is confirmed to be in DWSIM enthalpy calculation algorithm for reactions. I have reproduced same results as that of HYSYS in COCO as well ....everything same except Temperature https://prntscr.com/hu9iat
You got everything right! If the 1st rxn achieved 100% extent (that is 40% conversion w.r.t Base component CH4 as defined by user) ...the 2nd rxn doesnt necessarily will achieve 100% extent (that is 60%) WHY ....because the limiting component air (precisely O2) is exhausted
For some reason the conversion of the remaining amount is reaching 57%, not 60% No ...if you check out HYSYS sim file reaction extent is 37% (that is intentional because air is a limiting factor). That is also the deduction from DWSIM results (the Mole Fraction of outlet vapour stream has ZERO O2)
For some reason the conversion of the remaining amount is reaching 57%, not 60% No ...if you check out HYSYS sim file reaction extent is 37% (that is intentional because air is a limiting factor). That is also the deduction from DWSIM results (the Mole Fraction of outlet vapour stream has ZERO O2)
Here are the two cases attached
It seems that I cannot attach example files in the first post ....There are differences in results from both simulators. The FIRST thing is that "Coonversion Reactor" in HYSYS accepts multiple-inlets while in DWSIM to create a similar effect a mixer at the UPSTREAM of reactor is required. The results shown below has two key differences 1] The extent of the reaction are dfferent 2] Calculated temperature of DWSIM (after reactor) is 94C less than in HYSYS https://prntscr.com/httwbe https://prntscr...
I have found these two very useful chemical/mechanical engineering python libraries that I believe can make process FLUID calculation breeze in DWSIM. These are 1] https://github.com/CalebBell/fluids http://fluids.readthedocs.io/index.html 2] https://github.com/CalebBell/thermo http://thermo.readthedocs.io/en/latest/ Th 1st one is of particular importance that can turn Dwsim into a fluid simulation package
Problem was resolved using following steps 1] Create a backup of original DWSIM.exe (in installation folder) 2] Install Resource Hacker™ (RH) 3] Using RH open DWSIM.exe 4] In the right panel expand the section named Manifest 5] There exists one entry named "1 : 0" 6] Now edit true to false in the following line <dpiAware>false</dpiAware> 7] Recompile the DWSIM.exe (in the installation folder) & use this to launch application http://prntscr.com/hqv31a
@ Win10x64 I have a 12' tablet with 1920/1080 resolution. Problem is I cannot access the regression buttons below https://prntscr.com/hqlhwd