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

patchMassFlow through boundary type cyclic

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bb_

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2010, 07:00
Default patchMassFlow through boundary type cyclic
  #1
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
Is that possible?
My values are totally wrong.

At boundaries type patch, no problem.
RalphS is offline   Reply With Quote

Old   October 13, 2010, 07:13
Default
  #2
bb_
New Member
 
Join Date: Jul 2010
Posts: 20
Rep Power: 15
bb_ is on a distinguished road
You can use function objects to check continuity across your ggi interface.

Put the following code into system/controlDict:

Code:
    ggiCheck
     {
 

         type ggiCheck;
 

         phi phi;
 

         functionObjectLibs ("libsampling.so");
     }
Now, at every time step, for every pair of cyclic boundaries, you should get an output on the terminal such as

Code:
Cyclic GGI pair (PERIODIC1, PERIODIC2) : 0.0235516 0.0235515 Diff = 1.15512e-11 or 4.90464e-08 %
The first two numbers are mass flow through the interface on either side, the last two the error (abs and rel) between the two.
mm.abdollahzadeh likes this.
bb_ is offline   Reply With Quote

Old   October 13, 2010, 07:41
Default
  #3
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
Is that possible that ggiCheck functionObject isn't integrated in Openfoam 1.7.1?
And it is also possible to do MassFlowAverage for the field ptot through a cyclic boundary?

--> FOAM FATAL ERROR:
Unknown function type ggiCheck
Valid functions are :
15
(
panicDump
patchAverage
patchFieldFlow
patchIntegrate
patchMassFlow
patchMassFlowAverage
probes
sets
surfaces
trackDictionary
volumeAverage
volumeIntegrate
volumeMinMax
writeAdditionalFields
writeFieldsOften
)
RalphS is offline   Reply With Quote

Old   October 13, 2010, 07:49
Default
  #4
bb_
New Member
 
Join Date: Jul 2010
Posts: 20
Rep Power: 15
bb_ is on a distinguished road
I might be wrong on that, but if I'm correctly informed, GGI is only available in the -dev branch of OF. Now that I read your 1st post more carefully I realized that you're probably using the boundary type "cyclic" and not "cyclicGgi" which are two different things. Unfortunately, I guess if you're using OF-1.7 and not the -dev branch, you're stuck with the "cyclic" bc. Sadly, I don't have any experience with this type of bc....
Anyway, the the workaround i showed you would only work for mass flux, not other custom quantites (although I think it could be easily done by adding some lines of code to ggiCheck)
bb_ is offline   Reply With Quote

Old   August 4, 2015, 09:50
Default
  #5
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
I had the same problem than you Ralph

It indeed appears that patchMassFlow is not working with the cyclic BC.

I solved the issue by creating a faceSet from the cyclic BC using topoSet

Then I used swakExpression as mentioned in this document (page 41)

http://www.tfd.chalmers.se/~hani/pdf.../AISwithOF.pdf

Looks to be working. I have to check that though ;-)

best regards

Sylvain
Sylvain 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
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 04:32
buoyantSimpleRadiationFoam msarkar OpenFOAM 0 February 15, 2010 06:22
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
Fan Type Boundary Condition for Non-conformal Patch Pair albcem OpenFOAM 1 November 21, 2009 09:37
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 05:49


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