Now, the solver needs to be an input parameter of the case, to select if
it is for charged or neutral particles.
Resolution of Poisson equation with Dirichlet boundary conditions is
possible. The source vector is the charge density. This resolution is
done in two steps to save computational time:
1. When reading the mesh, the PLU factorization of the K matrix is
computed.
2. In each iteration, the system K*u = f is solved, in which f is the
source vector (charge density) and u is the solution (potential) in
each node.
No case has been added to the repository. This will be done in next
commit.
The 'non-analog' scheme has been commented. It still needs to split
the particle to avoid 'overweight' particles.
- Injection is now performed in parallalel (an IF statement could be
required to avoid overhead when number of injected particles is
below a margin).
- Added the possibility for multiple injections.
assumed to be inside the domain but without cell assigned.
Now, particles are assumed to be outside the domain (n_in = .FALSE.)
until findCell assign them a cell.
Bugs fixed:
- Solved an issue with particles being injected with infinite velocity
resulting in Inf velocity in some cells of the output files.
- Particles are now equally distributed in cylindrical geometry along
the radial direction.
New features:
- Particles now have their own weight that is recalculated when the
particle moves to a new cell. This avoid the reduction of density at
r = 0.
Cases:
- Added a case of Argon flow around a cylinder to measure performance
and future improvements.