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

Confusion about polyMesh constructor

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By dlahaye
  • 1 Post By olesen
  • 1 Post By Tobermory
  • 1 Post By olesen

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 28, 2023, 01:32
Default Confusion about polyMesh constructor
  #1
Ary
New Member
 
Join Date: Apr 2023
Posts: 11
Rep Power: 3
Ary is on a distinguished road
Dear all,

This may be another stupid question, but I am so confued. So sorry to bother you.

When we construct mesh object for manipulation such as

Code:
Info<< mesh.cellVolumes() << endl;
We construct the mesh object by

Code:
Foam::polyMesh mesh
{
    IOobject
    (
        defaultRegion,
        runTime.timeName(),
        runTime,
        IOobject::MUST_READ
    )
};
So, why construct mesh based on path [runTime.timeName()] instead of maybe path [runTime.constant().polyMesh()] (or something representing case/constant/polyMesh/)?

I am confused that the mesh is supposed to relate to [constant/polyMesh/] directly rather than [time] directory, right?

If not, how does the [mesh] object get information (such as points, faces) from [constant/polyMesh] directory?

Thank you very much if any kind foamer could help me.

Best regards,
Ary
Ary is offline   Reply With Quote

 


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
Adding a Constructor to ThermoCloud schradc OpenFOAM Programming & Development 0 February 4, 2023 21:15
eigenValues of volTensorField xuegy OpenFOAM Programming & Development 8 February 26, 2021 16:46
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56


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