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

Assigning and retrieving geometrical mesh properties

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2005, 09:39
Default I generated a mesh consisting
  #1
New Member
 
Klaus Schnitzlein
Join Date: Mar 2009
Posts: 7
Rep Power: 17
schnitzlein is on a distinguished road
I generated a mesh consisting of triangles, quadrilaterals and prismas. To each cell a set of geometric properties (from the physics) is assigned. Is there a way to assign these properties during the run or prior? How can this be achieved? These properties are necessary to calculate the momentum source term for each cell.

In order to accomplish this I need the information to which cell (it would be sufficient to know the index) each entry of the U-field belongs to. The geometric information can then be retrieved by looking at the appropriate entry of the properties field.

Moreover, how can I retrieve the velocities on a element-wise basis?

Thank you.
schnitzlein is offline   Reply With Quote

Old   June 28, 2005, 15:27
Default 2] if cellI is your cell label
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
2] if cellI is your cell label:

U[cellI]

gives you access to the cell value of U.

mesh.C()[cellI] gives you the cell centre of the cell.


1] to read in a cell-by-cell property read a volScalarField like e.g. p (see createFields.H in any solver). Just put e.g. 'calculated' b.c. on your field.
mattijs 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
Different material properties on the same mesh fw407 OpenFOAM Running, Solving & CFD 9 April 18, 2011 18:08
data from geometrical coordinates ?? Ken FLUENT 1 December 8, 2006 14:35
Geometrical dependent physical property Jiri Novak FLUENT 4 October 24, 2005 13:08
how to specify a mechanism in a geometrical zone ? Ionut FLUENT 0 January 5, 2005 11:30
geometrical modeling software Dileep Main CFD Forum 0 December 14, 2001 05:34


All times are GMT -4. The time now is 12:43.