|
[Sponsors] |
Boundary condition. How to get the normal gradient of the patchField U |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2015, 08:57 |
Boundary condition. How to get the normal gradient of the patchField U
|
#1 |
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 14 |
Dear Foam,
I have a home-made solver, which has the volVectorField named Vs aside the classic U and p field. In a custom inlet boundary condition of U (named "customBC"), I need to access Vs, which is quite easy with a lookupObject. I also need the normal gradient of Vs on my inlet BC. I have implemented several possibilities, which work fine, but they are either costly or not flexible.
Cheers, Marcel |
|
April 21, 2015, 09:29 |
|
#2 |
New Member
Martin S.
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
From a boundary field you have access to the face value ("psif"), the value at the cell center ("psic") and the delta coeffient ("delta"), which is 1/(distance from center to face).
From these values you can calculate the normal gradient sngrad=delta*(psif-psic). I don't remember the functions to access psif,psic and delta, but you'll find them if you browse the fvPatchField documentation. Martin |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fixed gradient of boundary condition in Openfoam | nwpukaka | OpenFOAM | 1 | February 20, 2014 04:36 |
conjugate boundary condition | Daniel_Khazaei | OpenFOAM Programming & Development | 0 | December 31, 2013 14:11 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |
temperature normal gradient on a boundary | Sandrine | Main CFD Forum | 2 | June 10, 2009 17:34 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |