|
[Sponsors] |
December 1, 2013, 22:41 |
Change P-rgh to Pfor interFoam
|
#1 |
Member
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13 |
I am working on a multiphase flow. I have P value but in interfoam P_rgh is given. How to change P-rgh to P in the solver???
|
|
December 2, 2013, 06:50 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi,
in your solver both variables exists. Can you describe your Problem in a other way? Do you want to set up "p" instead of "p_rgh"? Code:
p_rgh = p - rho*gh; p = p_rgh + rho*gh; volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), p_rgh + rho*gh ); |
|
December 2, 2013, 06:55 |
|
#3 |
Member
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13 |
Tobi, I am working on an external nozzle flow problem. In this case, the inlet pressure to the nozzle is know to me and the outlet is atmosphere.
Now in interFoam, we have p_rgh instead of P. Now If I am not wrong, P_rgh is the local dynamic pressure. SO how to set P in this case. If my inlet P is 4e6 what will be my p_rgh??? |
|
December 2, 2013, 22:51 |
|
#4 |
Member
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13 |
yes Tobi, I want to set P. Can you tell me how to do it????
|
|
December 3, 2013, 06:16 |
|
#5 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
As you can see in the code above the p-file is not read while starting the solver but will be automatically generated every time step you save.
For your Problem the easiest way would be the following: - calculate p_rgh at the inlet and set it to fixedValue so that you reach p As shown you can do this with: Code:
p_rgh = p - rho * gh 2. you know rho 3. you know g 4. you should know h |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thermal phase change model | Piti | CFX | 1 | January 14, 2021 10:03 |
Model foaming process: change the volume / density | pmp77 | CFX | 0 | November 18, 2008 09:53 |
How to change contour line thickness? | Mishar | Siemens | 0 | December 15, 2004 10:28 |
How to change the reference pressure value to 0 Pa | Lee | Siemens | 2 | July 1, 2003 00:32 |
help needed about phase change | Yanhu Guo | Main CFD Forum | 4 | January 23, 2001 23:16 |