You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am a fresher on Julia working on active matter physics. I am trying to simulate a famous equation, conserved model B, in active matter physics(see https://arxiv.org/pdf/1904.01330.pdf, page 4 for more details) using method of lines.However, I got an error in discretization. Here is the error message.
I also paste my codes below. I find that if I set K=0 and A,B,T>0, then there is no error. However, there is always an error when K>0. I would appreciate it if you could help me solve the problem.
using Symbolics,ModelingToolkit
using SymbolicUtils
using DomainSets,MethodOfLines, OrdinaryDiffEq
rhs = (2B*rho(x, y, t)*Differential(x)(rho(x, y, t)) - A*Differential(x)(rho(x, y, t)) - K*(Differential(x)(Differential(x)(Differential(x)(rho(x, y, t)))) + Differential(x)(Differential(y)(Differential(y)(rho(x, y, t))))))*Differential(x)(rho(x, y, t)) + (2B*rho(x, y, t)*Differential(y)(rho(x, y, t)) - A*Differential(y)(rho(x, y, t)) - K*(Differential(y)(Differential(x)(Differential(x)(rho(x, y, t)))) + Differential(y)(Differential(y)(Differential(y)(rho(x, y, t))))))*Differential(y)(rho(x, y, t)) + (2B*(Differential(x)(rho(x, y, t))^2) + 2B*rho(x, y, t)*Differential(x)(Differential(x)(rho(x, y, t))) - A*Differential(x)(Differential(x)(rho(x, y, t))) - K*(Differential(x)(Differential(x)(Differential(x)(Differential(x)(rho(x, y, t))))) + Differential(x)(Differential(x)(Differential(y)(Differential(y)(rho(x, y, t)))))))*rho(x, y, t) + (2B*(Differential(y)(rho(x, y, t))^2) + 2B*rho(x, y, t)*Differential(y)(Differential(y)(rho(x, y, t))) - A*Differential(y)(Differential(y)(rho(x, y, t))) - K*(Differential(y)(Differential(y)(Differential(x)(Differential(x)(rho(x, y, t))))) + Differential(y)(Differential(y)(Differential(y)(Differential(y)(rho(x, y, t)))))))*rho(x, y, t) + T*Differential(x)(Differential(x)(rho(x, y, t))) + T*Differential(y)(Differential(y)(rho(x, y, t)))
Hi, I will take a look at this soon, I think it's related to this term
Differential(y)(Differential(y)(Differential(y)(rho(x, y, t))))))*Differential(y)(rho(x, y, t))
We have only a rudimentary scheme for 3rd order derivatives with high dispersion, and it is possible that the upwind scheme is interacting poorly here, but you could try wrapping this 3rd order deriv with an auxiliary variable.
Hello, I am a fresher on Julia working on active matter physics. I am trying to simulate a famous equation, conserved model B, in active matter physics(see https://arxiv.org/pdf/1904.01330.pdf, page 4 for more details) using method of lines.However, I got an error in discretization. Here is the error message.
I also paste my codes below. I find that if I set K=0 and A,B,T>0, then there is no error. However, there is always an error when K>0. I would appreciate it if you could help me solve the problem.
The text was updated successfully, but these errors were encountered: