CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

patchIntegrate over a specified patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2009, 10:04
Default Hello, in my case I want to
  #1
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
Hello,

in my case I want to integrate over the patch "outlet".

Any idea how I can do this with openFoam?

Thanks and best regards
Khaled
booz is offline   Reply With Quote

Old   February 16, 2009, 02:52
Default Hi Khaled, try the utility
  #2
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Khaled,

try the utility "patchIntegrate":

patchIntegrate <root> <case> <fieldname> <patchname>.

Kerstin
kbr is offline   Reply With Quote

Old   February 16, 2009, 04:01
Default Hi Kerstin, first thanks. I
  #3
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
Hi Kerstin,

first thanks. I tried this, but it doesn´t work.

My case is "caseGeometrie", the fieldname is "p" for pressure and the patchname is "outlet".

So i triesd with

pathchIntegrate . caseGeometrie.p.outlet

But it output an error message.

Regards,
Khaled
booz is offline   Reply With Quote

Old   February 16, 2009, 04:10
Default Hi Khaled, just try pat
  #4
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Khaled,

just try

patchIntegrate 'name of the directory your case is located' caseGeometrie p outlet

If it doesn't work put the error message in your thread, please.

Kerstin
kbr is offline   Reply With Quote

Old   February 16, 2009, 04:18
Default Hi Khaled, just try pat
  #5
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Khaled,

just try

patchIntegrate 'name of the directory your case is located' caseGeometrie p outlet

If it doesn't work put the error message in your thread, please.

Kerstin
kbr is offline   Reply With Quote

Old   February 16, 2009, 04:18
Default Hi Kerstin well here is th
  #6
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
Hi Kerstin

well here is the error message:


:~/OpenFOAM/studi8-1.4.1/tutorials$ patchIntegrate object caseGeomtrie p outlet
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : patchIntegrate object caseGeomtrie p outlet
Date : Feb 16 2009
Time : 10:19:27
Host : fed-lin44
PID : 12011
Root : object
Case : caseGeomtrie
Nprocs : 1


--> FOAM FATAL ERROR : patchIntegrate: Cannot open case directory "object/caseGeomtrie"


FOAM exiting

Khaled
booz is offline   Reply With Quote

Old   February 16, 2009, 04:21
Default Hi Khaled, maybe there's on
  #7
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Khaled,

maybe there's only a mistake in writing, isn't it? Have a look on your case name: 'caseGeomtrie'

Kerstin
kbr is offline   Reply With Quote

Old   February 16, 2009, 04:39
Default Oh, thanks a lot. That was the
  #8
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
Oh, thanks a lot. That was the mistake!

Now it is running.

Regards,
Khaled
booz is offline   Reply With Quote

Old   April 17, 2009, 15:06
Default How to do the patch integrate
  #9
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Hello,

I have a square geometry and would like to calculate the average velocity across the channel at different points along my channel.. Hence I would to integrate the velocity across the channel to calculate the average values.. May I know how exactly we should do this..

Kindly do the needful

Regards

Vishal Nandigana
nandiganavishal is offline   Reply With Quote

Old   May 20, 2016, 13:50
Default 2 Outlets in one patch
  #10
New Member
 
Daniel
Join Date: May 2016
Posts: 5
Rep Power: 10
dpermacaroni is on a distinguished road
Hello everyone,

Situation: I'm simulating a Fluidic oscilaltor (see image in attachment taken from google) with pimpleFoam.
For pre-processing, I used "icem cfd" to make the geometry, export it as a fluent-file and then imported it to openFoam.

The most important property I need to analize is the frequency of the oscillation. For that, I thought I could plot de integration of the velocity field over the time on each "output" using patchIntegrate.

Problem: I defined the two outlets of the oscillator (right side of image) as one patch named "output" in icem. So when I use patchIntegrate, it integrates the velocity over both outlets.

Posibilities: I thought of 3, though I'm not sure if they can be implemented. If you think of more, they are very welcome!

1. Define a region when using patchIntegrate. Does the patch has to be devided in regions beforehand? How to define the "regions"?

2. Use a tool from paraview to plot the massflow through a part of the "outlet"-patch. How is the tool called?

3. Extract the cell velocity-data from the time-directories of the desired region "outlet" and make the integration mannually. (no clue how to do that)

Thanks a lot in advance for your help
Attached Images
File Type: jpg FO_google.jpg (9.5 KB, 90 views)
dpermacaroni is offline   Reply With Quote

Old   April 19, 2017, 05:45
Default
  #11
Member
 
Sebastian Trunk
Join Date: Mar 2015
Location: Erlangen, Germany
Posts: 60
Rep Power: 11
sisetrun is on a distinguished road
Hey dpermacaroni,

you can try the to create a patch with the createPatchDict

https://github.com/OpenFOAM/OpenFOAM...reatePatchDict
sisetrun 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
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
patch value laure FLUENT 0 June 6, 2007 10:14
VOF Patch Adour FLUENT 0 April 5, 2007 05:01
patch lu FLUENT 2 September 4, 2003 03:48
Patch Eric FLUENT 5 December 1, 2000 10:14


All times are GMT -4. The time now is 04:53.