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

Get cell volumes from lduSolver

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 8, 2022, 12:59
Default Get cell volumes from lduSolver
  #1
Member
 
Join Date: Feb 2020
Posts: 90
Rep Power: 6
Shibi is on a distinguished road
Hello to all,


I would like to know if there is a way to retrieve the a reference to the scalarField storing the cell volume of the mesh from an ldusolver.

We could call the reference to the objectRegistry with:

Code:
const objectRegistry& a =  matrix().mesh().thisDb();
And possibly get the cell volumes with the cellVolumes() function from the primitiveMesh.

But I am getting the error:

Code:
error: invalid use of incomplete type ‘const class Foam::objectRegistry’
Would appreciate the help.
Shibi 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
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 04:27
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
volScalarField for cell volumes and face surfaces AlmostSurelyRob OpenFOAM 2 December 13, 2010 05:24
SVN 1226 - Possible bug with cell centres and volumes philippose OpenFOAM Bugs 2 June 5, 2009 13:19


All times are GMT -4. The time now is 04:23.