Strong non-linear term treatment
First off thank you again sir for cbcpdesys and all the support you continue to provide for its users.
I am trying to linearize non-linear terms in the following pde system:
class DarcyGlobal(
def form(self, u, u_, u_1, v_u, p, p_, v_p, dt, Sw, Sw_, Sw_1, v_Sw, **kwargs):
Krw = Sw_*Sw_*Sw_*Sw_
Kro = (1.0-Sw_
lambda = Krw + Kro
fw = Krw/(Krw + Kro)
F = inner(u,
+ inner(u,
+ (Sw-Sw_
return F
Simple expressions for Krw and Kro seem to work fine, but the quadratic expression I am using does not. I am under the impression that since the Kro and Krw terms use Sw_, they are projected, making their order irrelevant. Do I need to project fw and lambda?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- CBC.PDESys Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Yaakoub El Khamra
- Solved:
- Last query:
- Last reply: