CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

AMR - adaptive mesh refinement STAR-CCM+

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

Like Tree3Likes
  • 2 Post By alireza.razeghi
  • 1 Post By diggian

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 05:21
Default AMR - adaptive mesh refinement STAR-CCM+
  #1
New Member
 
Jean-Luc
Join Date: Oct 2017
Location: Turin, Italy
Posts: 5
Rep Power: 4
diggian is on a distinguished road
I'm simulating a supersonic flow inside a very big volume (3000 m^{3}). The jet comes from a pressure of 80 bar and reaches the big volume at a pressure of 0.2 bar. I'm simulating a 2D section of the volume and the simulation works, but due to the very big dimensions, the computational time is very huge. That is why I'm trying to implement a sort of adaptive mesh refinement in STAR-CCm+. Unfortunately I couldn't find anything but the table extraction method. Is there a right function to be used for this kind of work?
diggian is offline   Reply With Quote

Old   January 25, 2018, 01:01
Default
  #2
Senior Member
 
Lane Carasik
Join Date: Aug 2014
Posts: 693
Rep Power: 10
lcarasik is on a distinguished road
Quote:
Originally Posted by diggian View Post
I'm simulating a supersonic flow inside a very big volume (3000 m^{3}). The jet comes from a pressure of 80 bar and reaches the big volume at a pressure of 0.2 bar. I'm simulating a 2D section of the volume and the simulation works, but due to the very big dimensions, the computational time is very huge. That is why I'm trying to implement a sort of adaptive mesh refinement in STAR-CCm+. Unfortunately I couldn't find anything but the table extraction method. Is there a right function to be used for this kind of work?
I can't offer much but there used to be a tutorial video on the steve portal (I guess this is the plm portal now?) on how to do this. It should still be there.
lcarasik is offline   Reply With Quote

Old   February 1, 2018, 10:29
Default
  #3
New Member
 
alireza.razeghi's Avatar
 
Alireza
Join Date: Dec 2010
Posts: 19
Rep Power: 11
alireza.razeghi is on a distinguished road
Quote:
Originally Posted by diggian View Post
I'm simulating a supersonic flow inside a very big volume (3000 m^{3}). The jet comes from a pressure of 80 bar and reaches the big volume at a pressure of 0.2 bar. I'm simulating a 2D section of the volume and the simulation works, but due to the very big dimensions, the computational time is very huge. That is why I'm trying to implement a sort of adaptive mesh refinement in STAR-CCm+. Unfortunately I couldn't find anything but the table extraction method. Is there a right function to be used for this kind of work?
Unfortunately STAR-CCM+ does not have automatic AMR. The only way is to use tables. For that, you should first write a new field function and there based on the parameter (lets say pressem velocity or anything), find the cells. The syntax would look like sth like this,

$Variable > value ? coefficient * pow(volume,1/3) : pow(volume,1/3)

The $Variable would be function in which cells will be defined. Value is the threshold or criteria. Then the above syntax says that if Variable satisfies the value so multiply the length scale of cell with a constant (which will be < 1 for refinement or > 1 to coarsen), Otherwise keep the cell length scale almost unchanged.
Then based on this field function, you can define a table and extract those data. Then if you select the mesher, there is an option in properties in which you can enable it to import the table and refine it. Finally just run the meshing procedure again.
The point here is the following. This procedure is not automatic and you should do all these every time you want to do refinement.
Based on my experience, AMR is not a good solution in STAR-CCM+.
sadjad.s and ugurcan like this.
alireza.razeghi is offline   Reply With Quote

Old   February 1, 2018, 10:35
Default
  #4
New Member
 
Jean-Luc
Join Date: Oct 2017
Location: Turin, Italy
Posts: 5
Rep Power: 4
diggian is on a distinguished road
Thanks a lot both of you,
I've made an AMR with the method you explained in this reply. I've used the velocity gradient as parameter to check for the AMR and used a macro to make the refinement continuous and automatic!
Gianluca
alireza.razeghi likes this.
diggian is offline   Reply With Quote

Old   June 25, 2020, 11:21
Default
  #5
Senior Member
 
MA
Join Date: Mar 2020
Posts: 120
Rep Power: 2
mazhar16823 is on a distinguished road
Quote:
Originally Posted by alireza.razeghi View Post
Unfortunately STAR-CCM+ does not have automatic AMR. The only way is to use tables. For that, you should first write a new field function and there based on the parameter (lets say pressem velocity or anything), find the cells. The syntax would look like sth like this,

$Variable > value ? coefficient * pow(volume,1/3) : pow(volume,1/3)

The $Variable would be function in which cells will be defined. Value is the threshold or criteria. Then the above syntax says that if Variable satisfies the value so multiply the length scale of cell with a constant (which will be < 1 for refinement or > 1 to coarsen), Otherwise keep the cell length scale almost unchanged.
Then based on this field function, you can define a table and extract those data. Then if you select the mesher, there is an option in properties in which you can enable it to import the table and refine it. Finally just run the meshing procedure again.
The point here is the following. This procedure is not automatic and you should do all these every time you want to do refinement.
Based on my experience, AMR is not a good solution in STAR-CCM+.

Thanks for this explanation as the same is explained in user-guide. Fortunately, STARCCM+ has started offering AMR in 2020 version (although I am not using it ). I am doing the same what you said but I want to know do I need to use the surface remesher again for the part I chose or only need to use volume mesher for this? Since surface remesher takes a lot of time for remeshing it.
mazhar16823 is offline   Reply With Quote

Old   June 28, 2020, 10:44
Default
  #6
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 334
Rep Power: 15
JBeilke is on a distinguished road
The AMR doesn't require a surface remeshing. It runs completetly within the solver.
JBeilke is offline   Reply With Quote

Old   June 28, 2020, 11:07
Default
  #7
Senior Member
 
MA
Join Date: Mar 2020
Posts: 120
Rep Power: 2
mazhar16823 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
The AMR doesn't require a surface remeshing. It runs completetly within the solver.

I have used it only for volume meshing but after 9 hours it was still at "getting candidate vertices" it does not proceed. As the mesh on curved edges and blade tip did not improve I tried to refine the blade mesh to get Y+<1. However, I used the Advanced Layer meshe but it removed all the prism layers. I am completely trapped in it. When I used Prism Layer Mesher, I manipulated the Layer Reduction Percentage to 0 and Minimum Thickness Percentage to 1 by choosing Wall thickness as a distribution mode but no any improvements yet.
mazhar16823 is offline   Reply With Quote

Old   June 28, 2020, 13:19
Default
  #8
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 334
Rep Power: 15
JBeilke is on a distinguished road
It usually helps to start with a small example case. There you can learn, how it works before applying it to a real world case.
JBeilke is offline   Reply With Quote

Reply

Tags
adaptive mesh refinement, amr, mesh 2d, star ccm+

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 3 March 12, 2020 17:50
[snappyHexMesh] Disturbance in the mesh after the addition of layers Dorian1504 OpenFOAM Meshing & Mesh Conversion 0 June 13, 2017 02:27
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 11:14
Mesh gets out of sync during parallel 2D adaptive mesh refinement pjohannes183 OpenFOAM Programming & Development 0 November 14, 2013 04:31
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23


All times are GMT -4. The time now is 16:28.