CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] how can define two or more refinementBox in SHMDict?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Artur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2013, 02:41
Default how can define two or more refinementBox in SHMDict?
  #1
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Hi Dear All,
Anybody knows that, how can define two or more refinementBox in SHMDict??
i have a two element aifoil, and i wana define a refinementBox around the two element and also define another one around leading edge of the main element, can anybody guide me?
thank you very much
Attached Files
File Type: gz snappyHexMeshDict.tar.gz (3.6 KB, 7 views)

Last edited by s.m; July 9, 2013 at 06:01.
s.m is offline   Reply With Quote

Old   July 10, 2013, 03:34
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
Try something like:

Code:
    refinementBox1
    {
        type searchableBox;
        min (-1 -0.5 -1);
        max ( 3  0.5  1);
    }

    refinementBox2
    {
        type searchableBox;
        min (-1 -0.5 -1);
        max ( 3  0.5  1);
    }
and then:

Code:
    refinementRegions
    {
        refinementBox1
        {
            mode    inside;
            levels       ((4 4));
        }
        refinementBox2
        {
            mode    inside;
            levels       ((2 2));
        }
    }
s.m likes this.
Artur is offline   Reply With Quote

Old   July 10, 2013, 09:26
Default
  #3
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
Try something like:

Code:
    refinementBox1
    {
        type searchableBox;
        min (-1 -0.5 -1);
        max ( 3  0.5  1);
    }

    refinementBox2
    {
        type searchableBox;
        min (-1 -0.5 -1);
        max ( 3  0.5  1);
    }
and then:

Code:
    refinementRegions
    {
        refinementBox1
        {
            mode    inside;
            levels       ((4 4));
        }
        refinementBox2
        {
            mode    inside;
            levels       ((2 2));
        }
    }
thank you, is it also true to define the refinementBox's levels in this way?
refinementRegions
{
refinementBox
{
mode inside;
levels ((1e15 2));
}
}
s.m is offline   Reply With Quote

Old   July 10, 2013, 09:29
Default
  #4
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
That's how I do it, yes.
Artur is offline   Reply With Quote

Reply


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
Species Mole and Mass Fraction Macro combustion FLUENT 18 February 5, 2024 12:23
How to setup the wall boundary condition of maxwell_slip_velocity_x_full UDF? ailee0303 Fluent UDF and Scheme Programming 4 January 13, 2021 08:14
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
udf problem eb.nabizadeh Fluent UDF and Scheme Programming 2 March 1, 2013 00:28
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 09:23


All times are GMT -4. The time now is 09:45.