Mass source term

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
napken
Posts: 6
Joined: Wed Oct 01, 2014 12:30 pm

Mass source term

Post by napken »

Hello,

I'm using the fuel combustion case and I want to add a source term for the mass equation of mixture (equation of rho) but density is not a transported variable. Does anyone know how to do it? Or how to add a mass directly to the mass flow not using cs_user_source_term?

Best regard!
Ken
Yvan Fournier
Posts: 4069
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mass source term

Post by Yvan Fournier »

Hello,

Which version of the code are you using ? There is a specific mechanism for mass source terms, and some examples in the code, but the system has changed between v6.2 and earlier versions.

Regards,

Yvan
napken
Posts: 6
Joined: Wed Oct 01, 2014 12:30 pm

Re: Mass source term

Post by napken »

Hi,

Thank you for your reply.
I'm using ver 5.0. Is it possible for this version? If yes, could you please tell me how?
Many thanks

Regard,
Ken
Yvan Fournier
Posts: 4069
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mass source term

Post by Yvan Fournier »

Hello,

Yes, you should check the user documentation pdf, and the cs_user_mass_source_terms.f90 user example.
You will see in the example that the pressure term is used to store the mass flow (as there is no pressure mass source term).

Best regards,

Yvan
napken
Posts: 6
Joined: Wed Oct 01, 2014 12:30 pm

Re: Mass source term

Post by napken »

Hello,

Thank you very much for your help, I got the solution.

Best regards,
Ken
Post Reply