CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to get the value of one cell in a patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2006, 02:55
Default If I declared a variable Tp:
  #1
Member
 
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17
tangd is on a distinguished road
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!
tangd is offline   Reply With Quote

Old   August 17, 2006, 03:00
Default Sorry I got it. Simply Tp can
  #2
Member
 
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17
tangd is on a distinguished road
Sorry I got it. Simply Tp[i] can access to the ith value of the patch!
tangd is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:04.