CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Restricting pressure like density (https://www.cfd-online.com/Forums/openfoam-solving/113139-restricting-pressure-like-density.html)

immortality February 13, 2013 06:20

Restricting pressure like density
 
we can limit density as below:
Code:

rhoMin          rhoMin [ 1 -3 0 0 0 ] 0.2;
    rhoMax          rhoMax [ 1 -3 0 0 0 ] 8.5;

I know its possible for p too.but how?is this notation correct?
Code:

pMax            pMax  [1 -1 -2 0 0 0 0] 4500000;
    pMin            pMin  [1 -1 -2 0 0 0 0] 600000;

to someones that its important to them.I've tested it!
but no effect on problem seemed.means no limitation is done.whats the correct keywords?

ngj February 13, 2013 06:40

But have you also changed the source code/solver? Or have you merely but some extract information in a dictionary?

If you have not done the former, obviously it will not have any effect what so ever.

Kind regards,

Niels

immortality February 13, 2013 07:21

ok.thus solver codes must be changed.what do you mean by second sentence you said? do you or someone know which compressible solvers have this feature to use directly or i can use them as a pattern to modify sonicFoam solver?

immortality February 13, 2013 07:47

ok.thus solver codes must be changed.what do you mean by second sentence you said? do you or someone know which compressible solvers have this feature to use directly or i can use them as a pattern to modify sonicFoam solver?

ngj February 13, 2013 09:51

Hi

I have looked into sonicFoam, and it does not look like sonicFoam is even utilising the rhoMax/rhoMin values.

With respect to the second sentence, what I mean is that you can give all the variables you want, however, if the code does not know to look for the variables, they are not used for anything; or even read for that matter.

Good luck,

Niels

immortality February 13, 2013 12:17

yes you are correct! but rhoPimpleFoam has limitations on density.do you know is there any solver that use limitation on pressure or velocity?

ngj February 13, 2013 15:15

Hi Ehsan,

No, I do not know of any such solver. Also, I find it a bit troubling to have to do that, because it will be in direct violation of the pressure-velocity couple/continuity fulfilment; at least if it is done as a explicit correction.

/ Niels


All times are GMT -4. The time now is 09:28.