Page 1 of 1

Mass source term

Posted: Tue Mar 02, 2021 11:28 am
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

Re: Mass source term

Posted: Tue Mar 02, 2021 5:10 pm
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

Re: Mass source term

Posted: Tue Mar 02, 2021 7:49 pm
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

Re: Mass source term

Posted: Tue Mar 02, 2021 9:57 pm
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

Re: Mass source term

Posted: Wed Mar 03, 2021 9:16 am
by napken
Hello,

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

Best regards,
Ken