CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   How to get cell length? (

Chandler June 14, 2013 06:03

How to get cell length?
Hi, everyone. I need to get the cell length deltax in my solver. How to achieve this? I find a surfaceScalarField definition of deltaCoeffs, but i need a volscalarField nor surfaceScalarField.

any help? thank you!

akidess June 14, 2013 10:25

A volume scalar field doesn't make any sense. You have four neighboring cells in 2D, how are you going to put all distances in a single scalar per cell?

All times are GMT -4. The time now is 03:38.