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

Adaptive Mesh refinement for steady state solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2013, 13:35
Default Adaptive Mesh refinement for steady state solver
  #1
Member
 
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 52
Rep Power: 4
yhaomin2007 is on a distinguished road
Hey, all,

I have a problem about adaptive mesh refinement. I looked around all the solver, it seems all the solver that can do AMR is transient solver. Does anyone know if there is a existing AMR steady solver?
I also tried to implement AMR into rhoSimplecFoam solver. The procedure was simple, but I met error. I added mesh.update() in the solver.
The error info is :
Quote:
Time = 10

Selected 455 cells for refinement out of 112000.
Refined from 112000 to 115185 cells.
Selected 0 split points out of a possible 455.
Execution time for mesh.update() = 8.01 s
time step continuity errors : sum local = 379.765, global = -189.418, cumulative = -212.852


--> FOAM FATAL ERROR:
field does not correspond to level 0 sizes: field = 115185 level = 112000

From function void GAMGAgglomeration::restrictField(Field<Type>& cf, const Field<Type>& ff, const label fineLevelIndex) const
in file lnInclude/GAMGAgglomerationTemplates.C at line 47.

FOAM aborting
It seems the solver can find the cells that need to refine, but it fails to find the split point. The refinement is not success. Does anyone have experience on this?

thank you in advance~
yhaomin2007 is offline   Reply With Quote

Old   July 18, 2013, 01:55
Default
  #2
Member
 
Akshay Kumar
Join Date: Aug 2010
Posts: 66
Rep Power: 6
Akshay is on a distinguished road
Hey!

Is your cacheAgglomeration off? Try that.
Akshay is offline   Reply With Quote

Old   July 18, 2013, 12:07
Default
  #3
Member
 
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 52
Rep Power: 4
yhaomin2007 is on a distinguished road
Yes, this is the problem. I worked it out.
thank you
yhaomin2007 is offline   Reply With Quote

Old   August 20, 2013, 04:11
Default
  #4
Member
 
Hossein
Join Date: Apr 2010
Posts: 62
Rep Power: 6
atoof is on a distinguished road
Send a message via Yahoo to atoof
Dear Haomin,

Did you just add mesh.update() in your solver? Is it sufficient to have adaptive mesh refinement for any steady state solver?

Regards,

Hossein
atoof is offline   Reply With Quote

Old   August 20, 2013, 11:47
Default
  #5
Member
 
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 52
Rep Power: 4
yhaomin2007 is on a distinguished road
Hi, you also have to use "dynamicMesh" class to construct mesh. You can easily find examples in solvers that used dynamicMesh.
And, yes, the sentence that make difference is "mesh.update()".
yhaomin2007 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding adaptive mesh refinement to the forwardStep tutorial AlphaSheep OpenFOAM Running, Solving & CFD 9 December 20, 2013 05:45
snappyHexMesh refinement regions ignored guitarbren OpenFOAM Meshing & Mesh Conversion 2 April 9, 2013 04:59
adaptive mesh refinement in STARCCM+ abdullahkarimi CD-adapco 1 November 16, 2010 19:26
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43
Mesh generator and CFD solver Gennady Kireyko Main CFD Forum 0 May 6, 2001 12:13


All times are GMT -4. The time now is 08:24.