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

Calculation of integral boundary values

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 17, 2005, 10:10
Default This is the fix. http://ww
  #21
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
This is the fix.

SortableList.C
mattijs is offline   Reply With Quote

Old   April 19, 2005, 12:25
Default The algorithm posted by Jarrod
  #22
ali
Member
 
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 8
ali is on a distinguished road
The algorithm posted by Jarrod a few threads above (for evaluating flux at the patches such as inlet etc) works fine. But what if I have a channel of say length L=1 (from x=0 to x=1) and I want to calculate flux through the middle point (x=0.5). How do I introduce a face at x=0.5 which is not a boundary patch? I found the velocities at the middle to be more accurate, so I thought calculating flux at the middle would be better. inlet flux changes its sign while it shouldn't be like that. I guess something may be wrong there.
ali is offline   Reply With Quote

Old   January 14, 2009, 12:29
Default Dear all, Keeping the idea
  #23
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Belgium
Posts: 179
Rep Power: 8
cedric_duprat is on a distinguished road
Dear all,

Keeping the idea of Ali, I need to calculate a mass flow average throught a plane in my geometry.
I'll like also to define this plane (coordinate, ect...) after my calculation because I can't guess the result.
I use these few lines to create a plane inside the geometry where I can get every value I need.
// Plane 1
point pnt(0,0,0);
vector direction(0,0,1);
plane pl1(pnt,direction);
cuttingPlane cutPlane1(mesh,pl1);
const labelList& cutCells1 = cutPlane1.cells();
word setName("someCells");
cellSet currentSet1(mesh, setName, cutCells1);

// Create mesh subsetting engine
fvMeshSubset subsetter1(mesh);
label patchI = -1;
subsetter1.setLargeCellSubset(currentSet1, patchI, true);

But, how can I use them to define a patch like boundary patch which wouldn't be at the boundary of my geometry ?
So I could use previous piece of code to get different value like mass flow average or pressure average, ect ...

Thank you for your help,

Cedric
cedric_duprat is offline   Reply With Quote

Old   September 9, 2009, 07:44
Default
  #24
Senior Member
 
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 186
Rep Power: 8
mabinty is on a distinguished road
dear all!!

added the posted codes to chtMultiRegionFoam to get the net mass flux in the fluid region(s). it compiles but giving me the following warnings:

************************************************** *******************************
fluid/setRegionFluidFields.H: In function ‘int main(int, char**)’:
fluid/setRegionFluidFields.H:1: warning: unused variable ‘mesh’
fluid/setRegionFluidFields.H:5: warning: unused variable ‘K’
fluid/setRegionFluidFields.H:6: warning: unused variable ‘U’
fluid/setRegionFluidFields.H:7: warning: unused variable ‘phi’
fluid/setRegionFluidFields.H:8: warning: unused variable ‘g’
fluid/setRegionFluidFields.H:10: warning: unused variable ‘turb’
fluid/setRegionFluidFields.H:11: warning: unused variable ‘DpDt’
fluid/setRegionFluidFields.H:14: warning: unused variable ‘psi’
fluid/setRegionFluidFields.H:15: warning: unused variable ‘h
************************************************** *******************************

but the code is running. should I stil care about the warnings??

greatly appreciate your comments!

aram
mabinty is offline   Reply With Quote

Old   April 21, 2010, 14:10
Default Is this mass flux or mass flow rate ?
  #25
New Member
 
sankarv
Join Date: Feb 2010
Posts: 26
Rep Power: 7
sankarv is on a distinguished road
Hello,

I have a question about the code you have posted here.
Does it calculate Mass Flux or Mass flow rate ?

Thanks
Vaidya


Quote:
Originally Posted by mattijs View Post
Hello Jarrod,



we located found the problem in SortableList. It is because setSize when it grows the list does not adapt the list of indices. Until we fix it you can work around it by creating your list big enough and shrinking it (i.e. setSize with something smaller than the current size)

Mattijs
sankarv is offline   Reply With Quote

Old   March 30, 2013, 15:11
Default
  #26
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
hi
I have a question about about where should we add the includes and their related headers?
immortality is offline   Reply With Quote

Old   March 31, 2013, 06:12
Default
  #27
Senior Member
 
Håkon Strandenes
Join Date: Dec 2011
Location: Norway
Posts: 111
Rep Power: 10
haakon will become famous soon enough
immortality: Have you heard about the phrase thread necromancy before?

I really think it is bad practice to post the same question twice on the same forum at the same time. Post it once, and wait for answer.
haakon is offline   Reply With Quote

Old   March 31, 2013, 07:06
Default
  #28
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
i didn't received a related answer yet.
immortality is offline   Reply With Quote

Old   March 31, 2013, 07:12
Default
  #29
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
i didn't received a related answer yet.
immortality 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
Surface integral calculation by undefined area Bloshchitsyn Vladimir CFX 0 November 18, 2007 23:19
Evaluation of boundary integral aunola Main CFD Forum 0 May 8, 2006 07:54
Boundary Integral Method CFDtoy Main CFD Forum 0 October 5, 2004 13:08
Boundary integral parameters StarCD CD-adapco 2 May 24, 2004 14:33
Calculation of lagrangian integral time scale R.Sripriya FLUENT 4 June 12, 2003 12:49


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