Skip to content

Plasma Sheath Model in Fipy #998

Closed Answered by guyer
LOrellanaG asked this question in Q&A
Jan 30, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The issue isn't the ConvectionTerm, but rather the SourceTerm in mom_eq. phi.grad is rank-1, but your equation is rank-0. Change

-mom_eq=ConvectionTerm(coeff=ui/2*[[1]],var=ui)==-phi.grad
+mom_eq=ConvectionTerm(coeff=ui/2*[[1]],var=ui)==-phi.grad.dot([[1]])

At that point, you'll likely get a singular matrix error (exactly what will depend on which solver suite you're using). This can be seen with just cont_eq; with $u_i = 0$, then any $n_i$ is a solution to $\nabla\cdot(n_i * u_i) = 0$.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by LOrellanaG
Comment options

You must be logged in to vote
1 reply
@guyer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants