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

Strange interPhaseChangeFoam behavior after restart

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2016, 07:12
Default Strange interPhaseChangeFoam behavior after restart
  #1
Member
 
Giovanni Caramia
Join Date: Mar 2009
Location: Bari, ITALY
Posts: 58
Rep Power: 17
karamiag is on a distinguished road
Hi all,
I am using interPhaseChangeFoam (OpenFOAM-dev) solver and I am experiencing difficoulties
similar to those described by vkrastev in his post even if the solver is different. The solution to those problems was well explained by Alberto Passalacqua:
Quote:
The flux phi was locally re-declared inside the main function. This made the local value accessible to the all the instructions explicitly present in the main function. However an inconsistent value was provided to the turbulence model, whose autoPtr is declared in createFields.H, outside the main().

Other problem that was going to happen: the stored "phi" was the one declared in createFields. The one locally re-declared in main was not stored at all, since its IOobject write option is not set to AUTO_WRITE.
This would have led to an inconsistent value of phi at restart, which was causing the problem.
Attached there is a very simplified case consisting of a cavity case (with only four cells) solved
with interPhaseChangeFoam. Inside the attached tar file there are four time directories 0, 1, 2, 3:
  • the directory named 2 is obtained restarting calculations from the time 1;
  • the directory named 3 is obtained starting calculations from the time 0 till time 2 (I have renamed it because I am using binary write format and I want to check values using paraFoam) ;
Results in the directories 2 and 3 are quite different.
Could this be reported as a bug of the interPhaseChangeFoam solver or I'm doing something wrong?
Thank you very much!
Attached Files
File Type: gz cavity-ipcf.tar.gz (9.0 KB, 3 views)
karamiag is offline   Reply With Quote

Old   December 29, 2016, 13:16
Default
  #2
Member
 
Giovanni Caramia
Join Date: Mar 2009
Location: Bari, ITALY
Posts: 58
Rep Power: 17
karamiag is on a distinguished road
OK,
I am trying to trace through which fields are different between the continuous run and the restart but I am not able to find where in the source code it is written to read the
alpha.water field.
Can someone please help me?
karamiag 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
strange behavior in interPhaseChangeFoam huangxianbei OpenFOAM Running, Solving & CFD 5 May 21, 2017 16:28
Different implementation pEqn.H in pimpleFoam vs interPhaseChangeFoam DanielRCalvete OpenFOAM Programming & Development 1 December 4, 2015 11:37
interphasechangeFoam: strange residual behaviour with keps and kwSST shipman OpenFOAM Post-Processing 1 June 14, 2014 09:58
Strange rhoCentralFoam behavior after restart... vkrastev OpenFOAM Bugs 27 November 19, 2013 13:04
Problem with multiframe restart of two-way fsi coupled problem Dimone CFX 26 December 20, 2011 11:10


All times are GMT -4. The time now is 18:42.