Page 1 of 1

Output of mass or volume flow

Posted: Tue Oct 21, 2014 9:07 pm
by bajsi
Hi,

I am using CS 3.3.2.
What would be the appropriate (easiest) way to output the mass flow through outlet or inlet.
I need a periodic output - similar to the output of monitoring points - for further evaluation.

Best regards

Re: Outout of mass or volume flow

Posted: Wed Oct 22, 2014 8:20 am
by Brian Angel
Hello,

You can use the routine cs_user_extra_operations to output mass or volume flow. The attached file gives an example for different boundary conditions in the flow domain.

Regards,

Brian Angel.

Re: Outout of mass or volume flow

Posted: Sun Oct 26, 2014 9:22 pm
by bajsi
Brian, thank you for your help.

I tried using subroutine that you attached.
I got errors when compiling that there are symbol conflicts with module entsor (attached as log 1).

Then I renamed some symbols (ifac, ilelt , nlelt, iflmab, keylog) as (ifacb, ileltb, nleltb, iflmax, keylox). The calculation runs fine, although some compiling errors are present (attached as log 2).
But I cannot find the output files Mass_flow.dat and Volumic_flow.dat.

Re: Outout of mass or volume flow

Posted: Mon Oct 27, 2014 10:54 am
by Jacques Fontaine
Hello,

Brian has joined an example for Code_Saturne 3.2; you are using 3.3. This example should be updated from 3.2 -> 3.3 (in this case only the header should be updated).

Regards,

Re: Output of mass or volume flow - solved

Posted: Mon Oct 27, 2014 9:25 pm
by bajsi
Hi,

I used the reference file of correct version and added/adjusted the routines from Brians example.
Now it works as expected.

Thank you for help - I am posting the final code (attached).