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

Patch size

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 1, 2006, 07:07
Default Hi all, can someone please he
  #1
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 8
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, 12:06
Default const fvPatchList& patches(mes
  #2
Member
 
Pierre Le Fur
Join Date: Mar 2009
Location: UK
Posts: 60
Rep Power: 8
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, 10:22
Default This scalar A = gSum(mesh.b
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
This

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

should work fine.
eugene is offline   Reply With Quote

Reply

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
Limit on maximum cell size to minimum cell size ratio albcem OpenFOAM Running, Solving & CFD 2 October 17, 2011 12: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 09: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 13:42
how to use patch sudhakar FLUENT 2 March 1, 2007 01:02


All times are GMT -4. The time now is 18:40.