CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

question about createMesh.H

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

LinkBack Thread Tools Display Modes
Old   February 20, 2014, 18:33
Default question about createMesh.H
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 9
doubtsincfd is on a distinguished road
In file createMesh.H, an instance 'mesh' of type 'fvMesh' is created
 Foam::fvMesh mesh
Question 1: Is the following constructor from fvMesh.H used in the above case?
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

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

word polyMesh::defaultRegion = "region0";
word polyMesh::meshSubDir = "polyMesh";
const Foam::fileName& Foam::polyMesh::dbDir() const
    if (objectRegistry::dbDir() == defaultRegion)
        return parent().dbDir();
        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
Join Date: Apr 2015
Location: India
Posts: 53
Rep Power: 4
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


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 13:05.