|March 19, 2007, 01:35||
Hi, all: I searched the for
Join Date: Mar 2009
Posts: 44Rep Power: 8
I searched the forum and doxygen, found a function mag and the following comments:
// INSTRUCTION FOR USE!
// When one wants to access the cell centre and magnitude, the
// functionality on the mesh level should be used in preference to the
// functions provided here. They do not rely to the functionality
// implemented here, provide additional checking and are more efficient.
// The cell::centre and cell::mag functions may be removed in the future.
// WARNING! See cell::centre
// first calculate the aproximate cell centre as the average of all
// face centres
I am just confused how to use it and what is the best way to find the cell volume? What I am trying to do is something like:
Thanks a lot!
|August 1, 2010, 03:09||
Join Date: Sep 2009
Location: Tehran, Iran
Blog Entries: 1Rep Power: 14
i want to access volume of cells in volScalarField but in openFoam there is two ways to access to the mesh volume and none of them are volScalarField:
const DimensionedField<scalar, volMesh>& V() const;
const scalarField& cellVolumes() const;
Last edited by nimasam; August 1, 2010 at 03:28.
|June 9, 2011, 10:11||
Join Date: Feb 2010
Posts: 97Rep Power: 7
thanks for the quick reply, l_r_mcglashan
i used it without thinking because it's written like this in the programmersGuide P33.
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to fix a volume cell?||jpsegura||FLUENT||0||May 31, 2007 18:42|
|negative cell volume||alfin||FLUENT||2||January 19, 2006 21:17|
|Cell-vertex and cell-centered finite volume method||Praveen||Main CFD Forum||4||September 8, 2003 23:58|
|Cell volume||Takeshi||CD-adapco||2||July 16, 2003 22:02|
|How to caculate cell volume||Tareq Al-shaalan||Main CFD Forum||2||November 4, 2002 09:48|