Quick question about the mass source subroutine

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Jundi He
Posts: 106
Joined: Fri Jan 13, 2017 3:23 pm

Quick question about the mass source subroutine

Post by Jundi He »

Hi

I have a quick question about the mass source subroutine. When I specify the mass source, smacel(ieltsm,ipr) is the mass injection rate, and when itypsm(ieltsm,ivar)=1, I can also specify a variable (ivar) of the mass source, like: smacel(ieltsm,ivar)=300. So when this variable is temperature, which word should I replace "ivar"? Thanks a lot.

Best Regards!
Jundi He
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Quick question about the mass source subroutine

Post by Yvan Fournier »

Hello,

You have some partial info here: http://code-saturne.org/doxygen/src/field.html and in the user pdf.

But in your case, assuming the temperature is the solved variable, you can use
ivar = isca(iscalt)
Regards,

Yvan
Jundi He
Posts: 106
Joined: Fri Jan 13, 2017 3:23 pm

Re: Quick question about the mass source subroutine

Post by Jundi He »

Yvan:

Thanks for the link, so the temperature of the mass source in one cell is smacel(ieltsm,isca(iscalt)), am I correct? Many thanks!

Best Regards!
Jundi He
Post Reply