CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to get the cellcell center to center distance dx dy dz

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2008, 23:26
Default Hi, I am trying to implement v
  #1
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Hi, I am trying to implement vonNeumann and Ritchmyer's artificial viscosity for shock capture, which required a term delta^2, which is the center to center distance (or the vector(dx, dy, dz), the grid distance), how to obtain that with OpenFOAM's field operations?

Thanks a lot!
dbxmcf is offline   Reply With Quote

Old   August 8, 2008, 05:23
Default Hi Roy On patches the inver
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Roy

On patches the inverse distance is found as this->patch().deltaCoeffs(). You might find something similar for the interior.
Otherwise, you need to locate owner/neighbour properties for each face and then calculate the distance by hand.

The shock capturing sounds very interesting.

Good luck,

Niels

P.S. Have seen a surfaceScalarField definition of deltaCoeffs at some point, but cannot recall where or when.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 8, 2008, 05:37
Default mesh.deltaCoeffs() will work.
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
mesh.deltaCoeffs() will work. It is in surfaceInterpolation.H.

Enjoy,

Hrv
mbookin likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
center of pressure kartik FLUENT 0 July 2, 2008 11:10
center of pressure Filippo FLUENT 2 March 29, 2007 03:48
Center of Pressure Balder Siemens 1 October 13, 2006 14:39
Center of pressure edi FLUENT 0 March 10, 2006 12:45
About Cell Center Harry FLUENT 0 December 3, 2000 05:33


All times are GMT -4. The time now is 23:35.