CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Assigning and retrieving geometrical mesh properties

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 28, 2005, 08:39
Default I generated a mesh consisting
New Member
Klaus Schnitzlein
Join Date: Mar 2009
Posts: 7
Rep Power: 10
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, 14:27
Default 2] if cellI is your cell label
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
mattijs is on a distinguished road
2] if cellI is your cell label:


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


Thread Tools
Display Modes

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 On
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 17:08
data from geometrical coordinates ?? Ken FLUENT 1 December 8, 2006 14:35
Geometrical dependent physical property Jiri Novak FLUENT 4 October 24, 2005 12: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 16:59.