|
[Sponsors] |
August 17, 2006, 02:55 |
If I declared a variable Tp:
|
#1 |
Member
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17 |
If I declared a variable Tp:
const fvPatchField<scalar>& Tp = lookupPatchField<volscalarfield,>("T"); This Tp would represent the values of temperature at inlet. So Tp.size() gives me the number of cells at inlet, Tp.patch().faceCells() gives me the cells list. But if I want just a single temperature value of one cell, how to do that? Thanks! |
|
August 17, 2006, 03:00 |
Sorry I got it. Simply Tp can
|
#2 |
Member
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17 |
Sorry I got it. Simply Tp[i] can access to the ith value of the patch!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP NEEDED HOW TO MAP VALUES FROM PATCH OF ONE MESH TO PATCH OF ANOTHER MESH | mkraposhin | OpenFOAM Running, Solving & CFD | 3 | September 4, 2011 10:42 |
Retrieving boundary patch values adjacent to a given cell | brooksmoses | OpenFOAM Post-Processing | 2 | December 8, 2008 11:00 |
Saving Patch cell centres as an IOobject | jaswi | OpenFOAM Running, Solving & CFD | 4 | June 27, 2007 11:01 |
unsturcture cell & cylinder cell Difference~ | lenson | Siemens | 1 | January 9, 2006 06:32 |
Cell-vertex and cell-centered finite volume method | Praveen | Main CFD Forum | 4 | September 9, 2003 00:58 |