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

question about createMesh.H

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2014, 18:33
Default question about createMesh.H
  #1
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 7
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

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
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 11:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16: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 04:31.