UM-PEPL / HallThruster.jl

An open-source fluid Hall thruster code
Other
18 stars 10 forks source link

solved potential equation using dirichlet BCs #20

Closed dere4 closed 2 years ago

dere4 commented 2 years ago

used simple dirichlet boundaries, implemented interpolation at first to be consistent but there is some bug in it. Planning to make a separate source function for the potential equation, such that the implementation can be verified with an analytical solution for the 0 source term and just assuming 1 for magnetic moment and electron density (== heat equation with dirichlet boundaries, can do grid convergence study). Will make implementation more neat, then test with a nonlinear electron temperature function and find a better solution for the way electron pressure is calculated (have a separate array for Tev and p), probably not very efficient. After that, planning to study the Hara papers a bit more to actually understand the discretization and why he would calculate potential in the first place. And will implement boundary at anode using Bohm diffusion and recombination on surface, as we talked about on friday.

archermarx commented 2 years ago

i gave resolving some of the merge conflicts a go, let's see if the tests pass or if i screwed something up