CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

how can define two or more refinementBox in SHMDict?

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

Like Tree1Likes
  • 1 Post By Artur

Reply
 
LinkBack Thread Tools 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: 6
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, 1 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: 226
Rep Power: 6
Artur is on a distinguished road
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: 6
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: 226
Rep Power: 6
Artur is on a distinguished road
That's how I do it, yes.
Artur is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 140 June 19, 2010 09:23
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19


All times are GMT -4. The time now is 15:57.