Mass flow in cs user boundary condition

Questions and remarks about Code_Saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
cs5burn
Posts: 3
Joined: Thu Apr 11, 2019 4:47 pm

Mass flow in cs user boundary condition

Post by cs5burn » Thu Apr 11, 2019 4:53 pm

Hi,

How can i impose an mass flow inlet whitout specefic modules in cs 5.0 and gui.
User examples in doxygen doesn't help me

Yvan Fournier
Posts: 2625
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mass flow in cs user boundary condition

Post by Yvan Fournier » Fri Apr 12, 2019 12:10 am

Hello,

I don't understand whether you want to use the GUI or not (the GUI is recommended; not using the GUI at all should be done only in specific cases such as highly automated workflows or possibly on non-linux systems where installing the graphical environment may be difficult).

In any case, using a mass flow is directly an option in the GUI, If using a user subroutine, you simply need to first compute the zone's surface using an initial loop, so as to be able to determine the local inlet velocity.

Best regards,

Yvan

cs5burn
Posts: 3
Joined: Thu Apr 11, 2019 4:47 pm

Re: Mass flow in cs user boundary condition

Post by cs5burn » Mon Apr 15, 2019 1:15 am

it is not possible to impose a mass flow as it is indicated in the doxygen documentation ?
The only examples I find are those for physical modules and I do not use a specific physical module in my code.



iqimp(izone) = 1
qimp(izone) = 0.8d0


rcodcl(ifac,iu,1) = 0.d0
rcodcl(ifac,iv,1) = 0.d0
rcodcl(ifac,iw,1) = 0.5d0

Yvan Fournier
Posts: 2625
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mass flow in cs user boundary condition

Post by Yvan Fournier » Mon Apr 15, 2019 10:02 am

Hello,

There is no risk in testing it, but I do not think it will work. There are some differences in the way things are handled in specific modules, which should be resolved in an upcoming unified rewrite of boundary conditions in C, but for now, you will probably get zero mass flux.

Best regards,

Yvan

Post Reply