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

question about createMesh.H

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2014, 17:33
Default question about createMesh.H
  #1
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
doubtsincfd is on a distinguished road
In file createMesh.H, an instance 'mesh' of type 'fvMesh' is created
Code:
 Foam::fvMesh mesh
    (
        Foam::IOobject
        (
            Foam::fvMesh::defaultRegion,
            runTime.timeName(),
            runTime,
            Foam::IOobject::MUST_READ
        )
    );
Question 1: Is the following constructor from fvMesh.H used in the above case?
Code:
explicit fvMesh(const IOobject& io);
Question 2: In the above code, what does defaultRegion indicate?

I found following information about 'defaultRegion' in polyMesh.H and polyMesh.C

Code:
    //- Return the default region name
    static word defaultRegion;
Code:
namespace Foam
{
defineTypeNameAndDebug(polyMesh, 0);

word polyMesh::defaultRegion = "region0";
word polyMesh::meshSubDir = "polyMesh";
}
Code:
const Foam::fileName& Foam::polyMesh::dbDir() const
{
    if (objectRegistry::dbDir() == defaultRegion)
    {
        return parent().dbDir();
    }
    else
    {
        return objectRegistry::dbDir();
    }
}
Question 2 continued: What is region0 and why is it equal to 'defaultRegion' ?
doubtsincfd is offline   Reply With Quote

Old   June 13, 2016, 04:34
Default Sorry to write below this post
  #2
Member
 
Akr
Join Date: Apr 2015
Location: India
Posts: 53
Rep Power: 11
NightWing is on a distinguished road
I too have the same doubt regarding createMesh.H

What does defaultRegion refer to?

Any suggestions?
NightWing 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
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37
Philosophical CFD question Richard Howe Main CFD Forum 14 June 17, 2001 14:41


All times are GMT -4. The time now is 07:48.