CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   patchMassFlow through boundary type cyclic (http://www.cfd-online.com/Forums/openfoam/81000-patchmassflow-through-boundary-type-cyclic.html)

RalphS October 13, 2010 07:00

patchMassFlow through boundary type cyclic
 
Is that possible?
My values are totally wrong.

At boundaries type patch, no problem.

bb_ October 13, 2010 07:13

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.

RalphS October 13, 2010 07:41

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
)

bb_ October 13, 2010 07:49

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)


All times are GMT -4. The time now is 13:31.