Output of mass or volume flow

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
bajsi
Posts: 15
Joined: Wed Jul 18, 2012 12:51 pm

Output of mass or volume flow

Post 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
Last edited by bajsi on Mon Oct 27, 2014 9:44 pm, edited 1 time in total.
Brian Angel

Re: Outout of mass or volume flow

Post 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.
Attachments
cs_user_extra_operations.f90
(7.78 KiB) Downloaded 255 times
bajsi
Posts: 15
Joined: Wed Jul 18, 2012 12:51 pm

Re: Outout of mass or volume flow

Post 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.
Attachments
compile2.log
(2.84 KiB) Downloaded 226 times
compile1.log
(1.98 KiB) Downloaded 249 times
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: Outout of mass or volume flow

Post 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,
bajsi
Posts: 15
Joined: Wed Jul 18, 2012 12:51 pm

Re: Output of mass or volume flow - solved

Post 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).
Attachments
cs_user_extra_operations.f90
(6.97 KiB) Downloaded 251 times
Post Reply