How to set the source term of scalar in the implicit form?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yhuang
Posts: 32
Joined: Tue Mar 27, 2012 2:14 pm

How to set the source term of scalar in the implicit form?

Post by yhuang »

hi, everyone

I defined two user scalars(c1 and c2), and the source term of two scalars are w1 and w2.

w1=w1(c1, c2)
w2=w2(c1, c2)

First, I set the the source term in the explicit form(the value of w1, w2 are at time step n), but the result is divergence.

So I want to set the source term in the implicit form(the value of w1, w2 are at time step n+1).


How to do this?

thanks!


Yuan Huang
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: How to set the source term of scalar in the implicit fo

Post by Jacques Fontaine »

Hello,

Could you please be more precise?
Best regards,
Post Reply