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
Output of mass or volume flow
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Output of mass or volume flow
Last edited by bajsi on Mon Oct 27, 2014 9:44 pm, edited 1 time in total.
Re: Outout of mass or volume flow
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.
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 515 times
Re: Outout of mass or volume flow
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.
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 481 times
-
- compile1.log
- (1.98 KiB) Downloaded 501 times
-
- Posts: 118
- Joined: Mon Feb 20, 2012 2:07 pm
Re: Outout of mass or volume flow
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,
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
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).
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 526 times