Hey Daniel,
Is it possible to design a valve with outlet pressure less than (p1)/2 with current calculation method? I would require it for designing a throttle valve in one the simulations running in dynamic mode.
The current calculation procedure accounts for only outlet pressure greater than (p1)/2.
Thank you.
Last edit: The One 2020-08-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel,
The new lines of code in above link seems perfect to me but they were for the case of given outlet pressure. Also, i saw the changes done in code for calculation of outlet pressure given Kv (updated line 448 in above link). Though i am not aware of the syntax of VBA, i think that MathOps.Quadratic.quadForm function will return a 2x1 matrix consisiting of both the roots of which, we should select the value which gives (p1-p2)<(p1)/2. However, this would cause the selection of only one root of pressure. Also, according to the equations given in the reference link (https://www.samsongroup.com/document/t00050en.pdf), we cannot evaluate p2<(p1)/2 from Kv since the value of Kv is constant for given p1 for the case p2<(p1)/2.
Therefore in order to solve the problem, i think the dynamic simulation functionlaity should be made valid for the case of specifying outlet pressure. However, the feasibility is upto you since i am not aware of the code written for dynamic simulation.
Thank you.
Last edit: The One 2020-08-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The only possibility of using the subcritical equation is when both pressures are specified... in steady state that's not possible because we don't know P2 a priori.
As for the two roots issue, I'll fix that!
Regards
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Daniel,
Is it possible to design a valve with outlet pressure less than (p1)/2 with current calculation method? I would require it for designing a throttle valve in one the simulations running in dynamic mode.
The current calculation procedure accounts for only outlet pressure greater than (p1)/2.
Thank you.
Last edit: The One 2020-08-30
Hi Rajat,
Unfortunately not. Do you believe that there is a huge difference? I have no idea.
https://github.com/DanWBR/dwsim6/commit/ffeb952cfa7b7fd51f1054d053dcb410f9834abb
Hi Daniel,
The new lines of code in above link seems perfect to me but they were for the case of given outlet pressure. Also, i saw the changes done in code for calculation of outlet pressure given Kv (updated line 448 in above link). Though i am not aware of the syntax of VBA, i think that MathOps.Quadratic.quadForm function will return a 2x1 matrix consisiting of both the roots of which, we should select the value which gives (p1-p2)<(p1)/2. However, this would cause the selection of only one root of pressure. Also, according to the equations given in the reference link (https://www.samsongroup.com/document/t00050en.pdf), we cannot evaluate p2<(p1)/2 from Kv since the value of Kv is constant for given p1 for the case p2<(p1)/2.
Therefore in order to solve the problem, i think the dynamic simulation functionlaity should be made valid for the case of specifying outlet pressure. However, the feasibility is upto you since i am not aware of the code written for dynamic simulation.
Thank you.
Last edit: The One 2020-08-30
The only possibility of using the subcritical equation is when both pressures are specified... in steady state that's not possible because we don't know P2 a priori.
As for the two roots issue, I'll fix that!
Regards
Daniel