|
[Sponsors] |
Question about volScalarField boundaryField set. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 12, 2014, 11:49 |
Question about volScalarField boundaryField set.
|
#1 |
New Member
Join Date: Apr 2014
Posts: 3
Rep Power: 12 |
Dear FOAMers:
I have a question about boundaryField set of a volScalarField object. I have the value of each cell center. So I can set the internalFiled with my existing value. But for the boundaryField, I want to set each boundaryField face center's value equals to cell center's value, which the boundary face belongs to. How could I find the cell ID that a particular boundary face belongs to? I hope the question is described clearly. Thank you! Kelong |
|
May 12, 2014, 13:33 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hallo Kelong,
Welcome to the forum. If I understand correctly, then your problem is solved by using the zeroGradient boundary condition. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
May 12, 2014, 14:15 |
|
#3 | |
New Member
Join Date: Apr 2014
Posts: 3
Rep Power: 12 |
Quote:
Sorry. My question is how to set the boundaryField value of each boundary face with the existing cell centers value. As you know, every boundary face belongs to a cell, I want to set the boundary face value's equals to the cell center's value. So for a boundary face, I need some code to find which cell the boundary face belongs to. And then read the cell center's value and set the boundary face's value. Thank you for your reply. Kelong |
||
May 12, 2014, 15:19 |
|
#4 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Well, you are still describing a Neumann boundary condition. This is exactly what the
Code:
type zeroGradient; Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
Tags |
boudary field, volscalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
make a dimensionedScalar to be volScalarField | sharonyue | OpenFOAM Programming & Development | 4 | April 2, 2014 06:44 |
correction of Grub after installing Windows XP and 8 | immortality | Lounge | 20 | January 5, 2014 18:41 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |
a question on why output pressure has set fixedValue as minimum of it? | immortality | OpenFOAM Post-Processing | 6 | April 30, 2013 19:17 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |