|
[Sponsors] |
access field value at boundary face and nearest cell in boundary condition class |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 21, 2015, 19:02 |
access field value at boundary face and nearest cell in boundary condition class
|
#1 |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi,
I want to know how can I access a field value eg Temperature at a patch (boundary face) and how can I do the same for nearest boundary cell. Code:
const fvMesh& mesh = patch().boundaryMesh().mesh(); const volScalarField& T= mesh.lookupObject<volScalarField>("T"); Thanks Maqs |
|
October 22, 2015, 00:09 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
This post should help accessing patch face values directly:
http://www.cfd-online.com/Forums/ope...ces-patch.html |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
snappyhexmesh remove blockmesh geometry | philipp1 | OpenFOAM Running, Solving & CFD | 2 | December 12, 2014 11:58 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
UPWIND scheme: boundary condition ? | Lionel S. | Main CFD Forum | 2 | July 17, 2007 06:39 |