Hi, all: I searched the for
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!
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;
nimasam, did you found a solution?
I have the same problem now...
mesh.V() is a scalarField, not a volScalarField. Why would you have volumes at patches?
thanks for the quick reply, l_r_mcglashan
i used it without thinking because it's written like this in the programmersGuide P33.
|All times are GMT -4. The time now is 21:25.|