CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

How to get cell length?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 14, 2013, 06:03
Default How to get cell length?
  #1
New Member
 
Zeng Qingyun
Join Date: Oct 2012
Posts: 8
Rep Power: 4
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
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Reply

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
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
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 0 October 26, 2009 13:10
DPM: Particle Tracking Madhukar FLUENT 1 July 24, 2007 03:51


All times are GMT -4. The time now is 09:37.