|
[Sponsors] |
Problem with leastSquares scheme when using dynamicRefineFvMesh |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Christian Kunkelmann
Join Date: Mar 2009
Posts: 8
Rep Power: 16 ![]() |
Dear all,
I would like to apply leastSquares schemes for grad(gamma) when I use the VOF solvers of OpenFOAM because I realized that they do a pretty good job on the mesh that I use. However, when I use the adaptive mesh refinement feature (dynamicRefineFvMesh) with interDyMFoam I do not get good results. The simulation runs well until the mesh is updated for the first time (after 10 timesteps in my case). When I let the solver write the gradient field and visualize it in paraview I can see that the arrows point in the right direction in the beginning of the simulation. After the refinement, the arrows point randomly in almost any possible direction which causes the interface to become unstable. Is it possible that the leastSquares schemes need some kind of reinitialization when the mesh has changed. If yes, how could this be implemented. I have alread tried calling mesh.fvSchemes::read() after mesh.update() but the results did not change. Thanks in advance for your support. Regards, Christian Last edited by christian_kunkelmann; July 9, 2009 at 06:37. Reason: typo |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Christian Kunkelmann
Join Date: Mar 2009
Posts: 8
Rep Power: 16 ![]() |
I just made an interesting observation:
When I stop the simulation after the first refinement and restart it from that time (i. e. with the refined mesh) the gradient are calculated correctly... ... which again lets me think that the leastSquares scheme apparantly needs some kind of reinitialization when the mesh has been refined. I am looking forward to your comments/suggestions! Thanks again! Christian |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,893
Rep Power: 32 ![]() |
Fixed in 1.5-dev a long time ago.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
![]() |
![]() |
![]() |
Tags |
dynamicrefinefvmesh, gradient scheme, interdymfoam, interfoam, leastsquares |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementation of QUICK scheme | Romuald Skoda | Main CFD Forum | 11 | November 6, 2017 21:20 |
OpenFOAM15dev interDyMFoam problem using dynamicRefineFvMesh | eberberovic | OpenFOAM Bugs | 6 | January 14, 2010 05:18 |
Question on Sediment Mass Conservation Scheme | Wen Long | Main CFD Forum | 0 | July 6, 2004 15:45 |
Periodic flow boundary condition problem | sudha | FLUENT | 3 | April 28, 2004 08:40 |
Mac Cormack scheme and use of PML boundary conditi | vineet kshirsagar | Main CFD Forum | 1 | January 13, 2002 01:46 |