|
[Sponsors] |
June 1, 2006, 08:07 |
Hi all,
can someone please he
|
#1 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17 |
Hi all,
can someone please help me with getting the size of a patch? For example something like that: scalarField af = mesh.magSf().boundaryField()[inletIndex]; A +=gSum(af); does not work. Thanks Anja |
|
June 1, 2006, 13:06 |
const fvPatchList& patches(mes
|
#2 |
Member
Pierre Le Fur
Join Date: Mar 2009
Location: UK
Posts: 60
Rep Power: 17 |
const fvPatchList& patches(mesh.boundary());
forAll (patches, patchi) { if (patches[patchi].name()==word("inlet")) { scalar areaP = sum(patches[patchi].magSf()); } } Hope this helps Pierre |
|
June 2, 2006, 11:22 |
This
scalar A = gSum(mesh.b
|
#3 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
This
scalar A = gSum(mesh.boundaryField()[inletIndex].magSf()); should work fine. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Limit on maximum cell size to minimum cell size ratio | albcem | OpenFOAM Running, Solving & CFD | 2 | October 17, 2011 13:00 |
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 |
size function max size | Cz | FLUENT | 0 | January 7, 2009 06:08 |
SampleDict patch export surface size amp orientation | axel | OpenFOAM Post-Processing | 1 | September 29, 2008 14:42 |
how to use patch | sudhakar | FLUENT | 2 | March 1, 2007 01:02 |