|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 19 ![]() |
operator[]
Hi! I have fvPatchScalarField& vsfp I want to print the values and the coordinates of all face centers that belong to vsfp. I found operator like [] in the documentation but I do not know how to use it. Any idea how to do that? Thanks. Best regards, Maka. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,908
Rep Power: 34 ![]() |
Try:
const vectorField& ctrs = vsfp.patch().Cf(); Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 19 ![]() |
face order in patches.
I noticed that if the patch is normal to z, the values of the scalar on the patch is ordered: x1 y z1 x1 y z2 ... x2 y z1 x2 y z2 Is there a general rule of ordering such face value. I want to use this to average patch value over specified direction. Thanks. Best regards, Maka. |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 19 ![]() |
correction:
I noticed .. normal to Y. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ouput Variable Operator | selim | CFX | 1 | October 24, 2007 12:15 |
| Question about fvmlaplacian operator | cosimobianchini | OpenFOAM Running, Solving & CFD | 0 | February 1, 2007 14:40 |
| Operator Splitting. | Maria. | Main CFD Forum | 5 | September 17, 2005 23:10 |
| Operator precedence | hemph | OpenFOAM | 1 | September 13, 2005 13:40 |
| a math operator in UDF | lichun Dong | FLUENT | 7 | June 18, 2005 23:04 |