Density for user scalar equation
Posted: Thu Mar 22, 2018 1:51 pm
Hi,
In Code Saturne, can I define a density for the user scalar equation, instead of using the density employed by the continuity, momentum and energy equations?
In my simulation, I have set up several user scalars, and I want to use constant densities for different scalar equations, however the fluid density is a variable as a function of the temperature and pressure. So I'm wondering if I can specify different densities for the user scalars, but didn't manage to find where can I do that. I've just found that I can edit the diffusivities for each user scalar through field_get_val_s, can I do the same to the density through it?
Thanks,
Xiaoxue
In Code Saturne, can I define a density for the user scalar equation, instead of using the density employed by the continuity, momentum and energy equations?
In my simulation, I have set up several user scalars, and I want to use constant densities for different scalar equations, however the fluid density is a variable as a function of the temperature and pressure. So I'm wondering if I can specify different densities for the user scalars, but didn't manage to find where can I do that. I've just found that I can edit the diffusivities for each user scalar through field_get_val_s, can I do the same to the density through it?
Thanks,
Xiaoxue