|
[Sponsors] |
How to get the cellcell center to center distance dx dy dz |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 7, 2008, 23:26 |
Hi, I am trying to implement v
|
#1 |
Member
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17 |
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! |
|
August 8, 2008, 05:23 |
Hi Roy
On patches the inver
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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. |
|
August 8, 2008, 05:37 |
mesh.deltaCoeffs() will work.
|
#3 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
mesh.deltaCoeffs() will work. It is in surfaceInterpolation.H.
Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
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 |