CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to get cell length?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 14, 2013, 06:03
Default How to get cell length?
New Member
Qingyun Zeng
Join Date: Oct 2012
Posts: 9
Rep Power: 7
Chandler is on a distinguished road
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!
Chandler is offline   Reply With Quote

Old   June 14, 2013, 10:25
Senior Member
akidess's Avatar
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,280
Rep Power: 23
akidess will become famous soon enough
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?
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 1 October 11, 2016 13:17
snappyhexmesh cell splitted ununiform..2D case sharonyue OpenFOAM Native Meshers: snappyHexMesh and Others 1 April 22, 2013 23:34
Dynamic Mesh.. Layering.. cell addition kedarj14 OpenFOAM Programming & Development 0 January 29, 2010 02:48
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Running, Solving & CFD 0 October 27, 2009 09:47
DPM: Particle Tracking Madhukar FLUENT 1 July 24, 2007 03:51

All times are GMT -4. The time now is 20:50.