Shifting towards constant number of particles per edge

So now each edge has the same number of particles and the weight of each
particle is calculated based on the surface of each edge compared to the
total one.

Only in 2DCyl, still to extend to other geometries.

Not perfect constant density, but the issue might be the node volume.
This commit is contained in:
Jorge Gonzalez 2024-07-09 17:49:42 +02:00
commit b36f9c2615
5 changed files with 36 additions and 49 deletions

View file

@ -78,6 +78,8 @@ MODULE moduleMesh
REAL(8):: normal(1:3)
!Weight for random injection of particles
REAL(8):: weight = 1.D0
! Surface of edge
REAL(8):: surface = 0.D0
!Pointer to boundary type
TYPE(boundaryCont), POINTER:: boundary
!Array of functions for boundary conditions