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

How to apply AMR settings

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By kahjoonyong

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2017, 07:51
Question How to apply AMR settings
  #1
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Hello,

I am trying to simulate a simple 2D turbulence flow through a channel with hill in order to get my hand on this software. The idea is to be able to hone my skill using this software before proceeding to a simulation for a reactive flow.

The profile is taken directly from this simulation from NASA, https://turbmodels.larc.nasa.gov/Oth..._periodic.html

Here is a link (http://imgur.com/a/hMS7S) to my case setup and geometry.

I have first simulated this case using only fixed embedding at the top and bottom wall boundary. The simulation was done using both k-Epsilon and k-Omega turbulence model. The results could be seen in the link as well. However the base grid I used for this settings is very fine throughout the profile and it took a long time to simulate. Therefore I would like to try out the AMR setting.

However, AMR would not activate throughout the whole simulation. The number of cells do not increase and no mesh refinement was seen in the post processed results. I have tried to coarsen/refine the base grid, manipulate the grid ratio, deactivate Fixed Embedding, manipulate the embedding scale either or both in Fixed Embedding or/and AMR settings, etc. Nothing seems to work. The only time AMR was shown working is when I increase the 'minimum cells' setting to a very high number. Nevertheless, the simulation crashed when the cell count increased.

I have been trying out different combinations of settings over the course of two weeks. I have been looking everywhere in the internet and in manuals, nothing gives useful resources. I hope someone could take a look in it.

I have attached the .cvg file of the case here as well. Hill.zip
The boundary settings for the wall might vary a little from what I have written in the following lines because I have tested other settings as well. For k-Omega No-Slip boundary conditions are applied.

Short overview of the boundaries:

1. Top and Bottom:
Wall
Velocity: Law of wall
Temperature: Specified value

2. Left Inlet:
Inflow
Velocity in x-Direction 5m/s
Pressure: Zero normal gradient

3. Right outlet
Outflow
Velocity: Zero normal gradient
Pressure: 101325Pa

4. Front and Back
2D

Thank you.
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 08:45
Default
  #2
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 267
Rep Power: 11
MFGT is on a distinguished road
Hi,

from the CONVERGE Manual:

Definition of "amr_vel_sgs_embed": Sub-grid velocity above which a cell will be embedded. 0.1% to 10% of the characteristic velocity in domain

So i would say if your max. Velocity is somewhat between 5 and 6 m/s, your subgridscale of 1m/s is way to high to trigger AMR.
Try reducing this to maybe 0.25, which would be 5% of 5m/s then.
MFGT is offline   Reply With Quote

Old   July 24, 2017, 08:48
Default
  #3
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Thank you very much to your reply. I will try it out. I have previously tried 0.1 m/s as well as 0.001m/s, both of them failed. I will try again anyway. I will update you as soon as I have a result.
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 09:12
Default
  #4
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 267
Rep Power: 11
MFGT is on a distinguished road
Which release of CONVERGE do you use?
MFGT is offline   Reply With Quote

Old   July 24, 2017, 09:13
Default
  #5
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
I am using Converge 2.3
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 10:29
Default
  #6
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Hello MFGT,

I have ran the simulation with a subgrid scale of 0.25m/s. It did not work. Only Fixed embedding is seen in the final results. I have tried to increase the embedding level to 5 in another simulation. It did not trigger.
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 11:46
Default
  #7
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
Quote:
Originally Posted by kahjoonyong View Post
Thank you very much to your reply. I will try it out. I have previously tried 0.1 m/s as well as 0.001m/s, both of them failed. I will try again anyway. I will update you as soon as I have a result.
The maximum number of cells set in AMR is 100k, which is too low because your base grid should bring to approx. 142k cells. You should increase the maximum number of cells to allow AMR work properly.
Blanco is offline   Reply With Quote

Old   July 24, 2017, 11:47
Default
  #8
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Hi MFGT,

I have varied the value of the subgrid velocity to an even smaller value and finally AMR triggered! Thank you very much!
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 11:48
Default
  #9
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Hi Blanco! That is the reason why it crashed after it triggered! Thank you so much! I just wanted to investigate.
kahjoonyong is offline   Reply With Quote

Old   July 24, 2017, 11:50
Default
  #10
New Member
 
ymao's Avatar
 
Yijin Mao
Join Date: Jun 2017
Location: Convergent Science, Madison WI
Posts: 20
Rep Power: 8
ymao is on a distinguished road
Kaihjoonyong,

I have tested this case in Converge.2.3. The AMR actually worked if you changed the sub-grid criterion to very small value, such as 1e-8m/s. At cycle of 501, the cell count increased to 48975 from 14760.

Just for your record,
Regarding on how I choose this sub-velocity criterion of 1e-8m/s, in fact, Converge could output this value through non-transport passive of VEL_SGS.

1) Materials>Species>Non-transport Passive, Add, type VEL_SGS
2) Output/Post Processing > Post variable selection > Cells > Species/Passive, Check box 'Passive', select VEL_SGS through drop-down menu

Given this VEL_SGS, we could test AMR trigger easily.
__________________
__________________
Yijin Mao, Ph.D.
Support/Application Engineer
CONVERGECFD
ymao is offline   Reply With Quote

Old   July 24, 2017, 12:00
Default
  #11
New Member
 
Kah Joon Yong
Join Date: Jul 2017
Location: Munich, Germany
Posts: 23
Rep Power: 8
kahjoonyong is on a distinguished road
Quote:
Originally Posted by ymao View Post
Kaihjoonyong,

I have tested this case in Converge.2.3. The AMR actually worked if you changed the sub-grid criterion to very small value, such as 1e-8m/s. At cycle of 501, the cell count increased to 48975 from 14760.

Just for your record,
Regarding on how I choose this sub-velocity criterion of 1e-8m/s, in fact, Converge could output this value through non-transport passive of VEL_SGS.

1) Materials>Species>Non-transport Passive, Add, type VEL_SGS
2) Output/Post Processing > Post variable selection > Cells > Species/Passive, Check box 'Passive', select VEL_SGS through drop-down menu

Given this VEL_SGS, we could test AMR trigger easily.
Hello Yijin Mao,

Thank you vary much for your advice! This is going to be very helpful. I will take note of that.

Also shout out to MFGT and Blanco for the quick solution. You basically just saved my day.

Kah Joon Yong
Blanco and MFGT like this.
kahjoonyong is offline   Reply With Quote

Old   July 28, 2017, 04:18
Default
  #12
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 267
Rep Power: 11
MFGT is on a distinguished road
Good to know it finally worked.
Since i use the code for engine simulation only, the amr settings from the examples pretty much fit my simulations.

Also, i cant afford to get more and more cells. The maximum is around 2mio for my cases. So a subgrid scale of 1m/s for velocity and 2.5K for temperature work fine in engine cases.
MFGT is offline   Reply With Quote

Reply

Tags
amr, double hill simulation, k-epsilon k-omega


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
Two computer cluster - problems with settings dradenkovic OpenFOAM Running, Solving & CFD 9 November 13, 2017 04:16
Lift and Drag coeff change with V 16 and 13 PISO for same mesh file and same settings arunraj FLUENT 0 June 2, 2016 22:43
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Fluid-Solid Interface Settings for a Rotating Water Container r.mojtaba CFX 4 October 14, 2013 19:01
thermoBaffleProperties object settings calim_cfd OpenFOAM 0 October 4, 2011 10:17


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