CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Can not use very high pressure with sonicFoam and rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2016, 08:56
Default Can not use very high pressure with sonicFoam and rhoCentralFoam
  #1
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
I am trying to simulate shock wave propagation using sonicFoam and rhoCentralFoam. The idea is to patch a very high pressure for a small spherical region and let the shock wave propagate through the cubical domain.

The simulation goes on nicely without any errors or divergence issues. So, no other setup issues. The problem is with patching high pressure using setField.

I would like to patch as high as 1e11 Pa, but no matter what I do the value is always limited to 105686784 Pa.

For very few trials I managed to patch the high pressure values but in the very next time-step the highest values is switched to 105686784 Pa.

Is sonicFoam or rhoCentralFoam limiting pressure values some how?

I understand that the equation of state for Ideal gas plays role in updating vector fields inside the PISO loop. But I dont know for sure if that is the cause
for this discrepancy.

I am very confused and dont know what to do about it.

Any hint, suggestion or explanation?
Attached Images
File Type: png whatIget.png (17.5 KB, 12 views)
File Type: png whatIwant.png (15.8 KB, 12 views)
vasava is offline   Reply With Quote

Old   September 21, 2016, 03:44
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
If I try to patch pressure of order 10^8 (e.g. 9E+8), everything works fine. But any higher order, it simply does not work.
vasava is offline   Reply With Quote

Old   September 22, 2016, 02:44
Default Solution!!
  #3
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
It turns out that its just matter of precision. I mean,
Code:
writePrecision  8;//12;//
timePrecision   8;//12;//
When I lowered the precision from 12 to 8, I could patch higher pressure with setField. The case is running fine.

I would still appreciate some comments from other users.
vasava is offline   Reply With Quote

Old   September 22, 2016, 02:49
Default
  #4
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
This is strange, if anything I would have expected a limit in one of the thermophysical models. Using a lower precision should also not cause this as far as I can tell.
chriss85 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to validate results with sonicFoam and rhoCentralFoam lordvon OpenFOAM Running, Solving & CFD 8 December 5, 2016 14:25
Which equations are solved by rhoCentralFoam, rhoSimplecFoam and sonicFoam? gamma_user OpenFOAM Verification & Validation 1 April 19, 2015 12:13
sonicFoam vs rhoCentralFoam forwardStep tutorial hk318i OpenFOAM Running, Solving & CFD 2 March 12, 2015 11:15
rhoCentralFoam / sonicFoam VSass OpenFOAM Running, Solving & CFD 1 June 26, 2013 12:39
is sonicFoam better in convergence than rhoPimplefoam or rhoCentralFoam? immortality OpenFOAM Running, Solving & CFD 1 February 11, 2013 22:26


All times are GMT -4. The time now is 14:11.