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

Restart Simulation while running

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 21, 2022, 12:01
Default Restart Simulation while running - fvc::grad(p) incorrect
  #1
New Member
 
Max
Join Date: Feb 2022
Posts: 8
Rep Power: 4
Maxxxx is on a distinguished road
Hey,


I have coded a modified version of icoFoam with another equation. Now I would like to restart the calculation after specific time meaning I would like to reset U and p to initial Values of time 0 (sounds confusing but is required because my implemented equation lead to a huge change in local U field... thus using the actual flow field lead to a divergence... thatīs why I would like to start from scratch there).


I tried to do this by resetting phi, U and p field to initial values (which actually works) in each time step meaning I should get the same result on each step. But that doesnīt work. Hence I tried to figure out the line which destroys my simulation (printing phi, U and p after several lines of code).


I found out that the mistake is done with " fvc::grad(p) " which is not calculated correctly. Now my Question: What exactly happens with fvc::grad(p)? Is there anything I need to reset to let it calculate correctly? For time step 1 it is zero in the internal field (defined by my init p field which is 0 at the whole mesh). At the second time step the gradient is not zero for each cell (but p is same as initial step).


Thanks.

Last edited by Maxxxx; February 22, 2022 at 06:10.
Maxxxx is offline   Reply With Quote

 


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
Simulation getting crashed after running for 26 hours on HPC cluster shivamswarnakar72 OpenFOAM Running, Solving & CFD 4 August 23, 2020 00:11
Slow Running Simulation rsoni451 CONVERGE 10 September 15, 2017 09:20
Help running SST k-omega Stress-Blended Eddy Simulation DA6righthand FLUENT 0 July 15, 2017 10:44
Restart in time-accurate simulation Arad SU2 1 May 25, 2016 08:08
OF-2.3.x: interPhaseChange(DyM)Foam: simulation restart leads to non-physical fields A_Pete OpenFOAM Bugs 0 August 12, 2015 09:16


All times are GMT -4. The time now is 19:38.