CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Patch size

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2006, 08:07
Default Hi all, can someone please he
  #1
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17
anja is on a distinguished road
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
anja is offline   Reply With Quote

Old   June 1, 2006, 13:06
Default const fvPatchList& patches(mes
  #2
Member
 
Pierre Le Fur
Join Date: Mar 2009
Location: UK
Posts: 60
Rep Power: 17
pierre is on a distinguished road
const fvPatchList& patches(mesh.boundary());
forAll (patches, patchi)
{
if (patches[patchi].name()==word("inlet"))
{
scalar areaP = sum(patches[patchi].magSf());
}
}

Hope this helps

Pierre
pierre is offline   Reply With Quote

Old   June 2, 2006, 11:22
Default This scalar A = gSum(mesh.b
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
This

scalar A = gSum(mesh.boundaryField()[inletIndex].magSf());

should work fine.
eugene 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
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


All times are GMT -4. The time now is 16:01.