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

STAR-CCM Adaptive Mesh Refinement Help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2023, 13:30
Default STAR-CCM Adaptive Mesh Refinement Help
  #1
New Member
 
Kevin
Join Date: Jul 2023
Posts: 12
Rep Power: 3
kev11 is on a distinguished road
Hello all,

First, this is my first post, so I hope I am asking this in the right spot!

I am new to STAR CCM and have a question about AMR. So I currently have a mesh running for an aircraft. I am using AMR to capture the shocks at supersonic speeds. For a little background info, I am multiplying the Mach gradient by the adaptiveMeshSize to determine my AMR criterion.

AMR works very well to capture the shock; however, I am getting refinement in areas I don't want refinement, such as on the fuselage surface, wing, tail, ext. Is there any way I can fix this problem? I want AMR to work in specific areas, and I am not sure on how to go about this problem. I would assume there is a way to have AMR work only in areas a certain distance from the surface?
kev11 is offline   Reply With Quote

Old   July 27, 2023, 13:36
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You need to build on your field function that you are using for refinement to include the additional criteria and it will likely involve a bunch of nested boolean conditions.

For example, the distancetoSurface function will calculate the distance of an arbitrary cell to a surface you select. You can then create your refinement function to be, if the distance is less than some number, then use a small size if the grad condition is satisfied, else, make a really big cell.

You can also use shape parts and incorporate these into the field function to declare regions that should or should not have refinement

Don't be afraid to make 15 user defined functions and 30 if ?'s in Star if that's what it takes to implement your idea. It doesn't have to be all done in 1 unwieldly, unprogrammable function.
LuckyTran is online now   Reply With Quote

Old   July 27, 2023, 13:58
Default
  #3
New Member
 
Kevin
Join Date: Jul 2023
Posts: 12
Rep Power: 3
kev11 is on a distinguished road
Thank you so much for the fast reply!

How do I go about creating this distancetoSurface function you mentioned? The only field functions I see with distance are the "deviationDistance.AutomatedMesh" and "DeviationDistance.Root."

I apologize once again, I am new to STAR so I appreciate your help!
kev11 is offline   Reply With Quote

Old   July 27, 2023, 14:08
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
distancetoSurface is not a field function like pressure, temperature, etc.

distancetoSurface is a programming function that you can use when you create a field function. For example, ceil(), floor(), sin(), cos(), etc etc
LuckyTran is online now   Reply With Quote

Old   July 31, 2023, 11:28
Default
  #5
New Member
 
Kevin
Join Date: Jul 2023
Posts: 12
Rep Power: 3
kev11 is on a distinguished road
I am still having trouble having the AMR refine areas of interest on my aircraft. I just want to capture shocks, but the AMR is refining areas on the wing, fuselage, any surface with high changes in Mach (which was my criterion). Since I am running a sim on a half geometry, is there any way I can apply the AMR to the symmetry plane only?
kev11 is offline   Reply With Quote

Reply

Tags
amr, shocks, star ccm+ mesh


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] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 14:41
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[snappyHexMesh] Edge Refinement fracasce OpenFOAM Meshing & Mesh Conversion 3 December 2, 2017 13:30
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 20:30.