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

Surface intgrals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2006, 13:09
Default Hi all, can someone please
  #1
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17
anja is on a distinguished road
Hi all,

can someone please explain me, how I can get the size of one cell/face within a patch?

I'm trying to write an application for surface integrals.

Thanks
Anja
anja is offline   Reply With Quote

Old   May 4, 2006, 02:48
Default Hi Anja, I have written a mod
  #2
theof
Guest
 
Posts: n/a
Hi Anja,
I have written a module for paraview that allows surface integrals for flow rate computations, torque, energy losses, etc.
Into your own compiled paraview, it can be easily added as an extra external module.
Is that what you need? Let me know if you are interested and I'll make it available.
thf
  Reply With Quote

Old   May 8, 2006, 10:00
Default Hi, for the moment I'm just t
  #3
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17
anja is on a distinguished road
Hi,
for the moment I'm just trying to get surface integrals for the pressure, meaning calculating an average for an inlet.

Any suggestions for that?

Anja
anja is offline   Reply With Quote

Old   May 9, 2006, 03:45
Default Hi Theophane Foggia, I woul
  #4
atzaru
Guest
 
Posts: n/a
Hi Theophane Foggia,

I would be very interested in the module you have written.

and if is possible a brief description of how this can be integrated with paraview.

thanks a lot
atzaru
  Reply With Quote

Old   May 9, 2006, 05:32
Default Simply averaging the pressure
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Simply averaging the pressure values would be a very bad idea, i.e.

p_average != average(p);

Rather

p_average should be volume or surface weighted.

For a known patch ID: patchID

scalar patchPmean = gSum(p.boundaryField()[patchID] * mesh.boundary()[patchID].magSf())/gSum(mesh.boundary()[patchID].magSf());

Using gSum instead of sum allows the expression to work in parallel as well.
eugene is offline   Reply With Quote

Old   May 9, 2006, 06:13
Default But in the programmers guide (
  #6
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17
anja is on a distinguished road
But in the programmers guide (chapter 2.4.10) it's saying that the function average "produces an area weighted average".
But when I tried, it did not work.
anja is offline   Reply With Quote

Old   May 15, 2006, 05:11
Default Hi The filter I mentioned abo
  #7
theof
Guest
 
Posts: n/a
Hi
The filter I mentioned above is available here as an extra external module for paraview:

http://public.kitware.com/pipermail/paraview/attachments/20060322/cf8b2475/vtkCS CSIntegrateVariables.tar.bin

In paraview-2.4.3 the integrate attribute filter will work as well for 2D integration. It is much more advanced stuff but less easy to get through.
  Reply With Quote

Old   August 3, 2006, 11:30
Default Hi Theophane, could you pleas
  #8
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17
melanie is on a distinguished road
Hi Theophane,
could you please give me hint to install this module as I never worked with CMake and I'm using paraFoam ?
Thanks !
melanie
melanie is offline   Reply With Quote

Old   August 4, 2006, 01:43
Default Hi Melanie, I think you shoul
  #9
theof
Guest
 
Posts: n/a
Hi Melanie,
I think you should first try to use the Integrate Attributes filter in ParaView. It is available in paraview 2.4.* and above. If you really want to install the Integrate Variables filter, the README should tell what to do.
Theophane
  Reply With Quote

Old   August 4, 2006, 06:26
Default Thanks Theophane, I tried thi
  #10
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17
melanie is on a distinguished road
Thanks Theophane,
I tried this morning the Integrate Attributes, but I cannot find a guide to understand how it works... I am not able to select the surface I want the attribute be calculated on !
melanie is offline   Reply With Quote

Old   August 4, 2006, 06:54
Default Well it works like any other p
  #11
theof
Guest
 
Posts: n/a
Well it works like any other paraview filter, it should select automatically the surface you want to integrate on. Make sure the surface is highlighted in the selection window before applying the Integrate Attributes filter.
  Reply With Quote

Old   August 4, 2006, 07:20
Default ok, now I've understood! I hav
  #12
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17
melanie is on a distinguished road
ok, now I've understood! I have to create a cut and apply the filter on it.
meanwhile I have another question: for me it does not work if I create a cut exactly located on a boundary, because there are no attributes on the created cut ? is there a reason for this ?
thank you
melanie 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
Recover surface from surface mesh in IcemCFD Jerry Tanner CFX 0 August 20, 2008 12:48
surface to surface radiation heat transfer? suresh Siemens 1 July 7, 2006 06:54
surface tension gradient on a free surface Abrem FLUENT 1 April 30, 2006 03:41
Surface tension - Continuum Surface Force model Robert Main CFD Forum 0 May 2, 2002 07:34
[surface tension effect at free-surface ?] name Main CFD Forum 1 September 21, 2001 09:54


All times are GMT -4. The time now is 23:43.