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

About fields phi_0 and U_0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By elones

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2016, 03:04
Default About fields phi_0 and U_0
  #1
Member
 
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11
Lorenzo92 is on a distinguished road
Hello,

I' m trying to force openFOAM not to write during the calculation the fields U_0 and phi_0. I'm currently using backward schemes.
The reason for that is that I'am running a huge DNS on a HPC ( about 100milion cells) cluster and due to memory shortage and also due to speed issue related with the writing of such mentioned fields, I can't afford to store neither U_0 or phi_0.

I also tried to restart a simulation , a very small one just as a test, deleting folders U_0, phi_0 from the latest timeStep and the solver goes on without complaning so these fields are not necessary.

Does anyone know where istructions for writing U_0 and phi_0 are located?
I really appreciate any kind of help , thank you

Lorenzo92
Lorenzo92 is offline   Reply With Quote

Old   November 30, 2016, 07:05
Default
  #2
New Member
 
Join Date: Mar 2014
Location: Czech Republic
Posts: 29
Rep Power: 14
elones is on a distinguished road
These field are indeed necessary if you want to preserve second-order accuracy from first time-step. To your equation, I guess it will be somewhere in src/OpenFOAM/ and look for write().
elones is offline   Reply With Quote

Old   December 1, 2016, 14:30
Default
  #3
Member
 
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11
Lorenzo92 is on a distinguished road
Thank you elones for reading,

so do you mean that if I do not write fields *_0 and then I restart the simulation I should lose second order accuracy?
My doubt arises since the simulation's restart is possible also deleting such fields from the latest time folder , I would expect that the program complains about the absence of these fields but this doesn't happen.
Lorenzo92 is offline   Reply With Quote

Old   December 1, 2016, 17:57
Default
  #4
New Member
 
Join Date: Mar 2014
Location: Czech Republic
Posts: 29
Rep Power: 14
elones is on a distinguished road
Look at the code of backward time scheme. It use only first-order Euler scheme for first time step if "oldold" time level (*_0) is not provided. The program runs without complains because if you are start for the first time you have only initial condition (old) and not "old" + "oldold" needed for backward time scheme.
hgcastro likes this.
elones 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



All times are GMT -4. The time now is 06:57.