CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to get cell length? (http://www.cfd-online.com/Forums/openfoam-programming-development/119319-how-get-cell-length.html)

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 19:38.