Page 1 of 1

Quick question about the mass source subroutine

Posted: Thu Feb 23, 2017 6:11 pm
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

Re: Quick question about the mass source subroutine

Posted: Fri Feb 24, 2017 1:35 am
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

Re: Quick question about the mass source subroutine

Posted: Fri Feb 24, 2017 11:59 am
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