|
[Sponsors] |
Assigning and retrieving geometrical mesh properties |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 28, 2005, 09:39 |
I generated a mesh consisting
|
#1 |
New Member
Klaus Schnitzlein
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
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. |
|
June 28, 2005, 15:27 |
2] if cellI is your cell label
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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. |
|
|
|
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 |