|
[Sponsors] |
Distance between boundary cell and boundary face |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2016, 16:07 |
Distance between boundary cell and boundary face
|
#1 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10 |
Hi
I wanted to find out if there is a function in OpenFOAM that directly gives you the distance between boundary cell center and boundary face centre. I wanted to use it for coding my boundary condition. I know that there is function (\delta()) that exists in swak4foam in groovyBC but I cannot directly use it in OpenFOAM. Thank you. Saurabh |
|
March 13, 2016, 07:40 |
|
#2 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
Hi,
If you have a look at yPlus.C (in OF 3.0.0): Code:
volScalarField::GeometricBoundaryField d = nearWallDist(mesh).y(); "Distance calculation for cells with face on a wall. Searches pointNeighbours to find closest." All the best, A |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 05:50 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |