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

Problem with leastSquares scheme when using dynamicRefineFvMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2009, 07:36
Default Problem with leastSquares scheme when using dynamicRefineFvMesh
  #1
New Member
 
Christian Kunkelmann
Join Date: Mar 2009
Posts: 8
Rep Power: 17
christian_kunkelmann is on a distinguished road
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 07:37. Reason: typo
christian_kunkelmann is offline   Reply With Quote

Old   July 9, 2009, 12:34
Default Problem with leastSquares scheme when using dymanicRefineFvMesh
  #2
New Member
 
Christian Kunkelmann
Join Date: Mar 2009
Posts: 8
Rep Power: 17
christian_kunkelmann is on a distinguished road
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
christian_kunkelmann is offline   Reply With Quote

Old   July 10, 2009, 12:19
Default
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Fixed in 1.5-dev a long time ago.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Tags
dynamicrefinefvmesh, gradient scheme, interdymfoam, interfoam, leastsquares


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
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 11 November 6, 2017 22:20
OpenFOAM15dev interDyMFoam problem using dynamicRefineFvMesh eberberovic OpenFOAM Bugs 6 January 14, 2010 06:18
Question on Sediment Mass Conservation Scheme Wen Long Main CFD Forum 0 July 6, 2004 16:45
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 09:40
Mac Cormack scheme and use of PML boundary conditi vineet kshirsagar Main CFD Forum 1 January 13, 2002 02:46


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