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 Tree2Likes
  • 1 Post By alireza.razeghi
  • 1 Post By diggian

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 06: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, 02: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, 11: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 likes this.
alireza.razeghi is offline   Reply With Quote

Old   February 1, 2018, 11: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

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] Disturbance in the mesh after the addition of layers Dorian1504 OpenFOAM Meshing & Mesh Conversion 0 June 13, 2017 03:27
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 12:14
[snappyHexMesh] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 2 October 4, 2016 01:19
Mesh gets out of sync during parallel 2D adaptive mesh refinement pjohannes183 OpenFOAM Programming & Development 0 November 14, 2013 05:31
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 04:23


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