First version with possibility for charged particles to be included.
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.
This commit is contained in:
parent
73fc9f69c1
commit
c82279f5c5
20 changed files with 859 additions and 227 deletions
12
makefile
12
makefile
|
|
@ -12,20 +12,24 @@ JSONINC := $(JSONDIR)/include
|
|||
INCDIR :=
|
||||
INCDIR += $(JSONINC)
|
||||
|
||||
VAR := ""
|
||||
|
||||
# compile flags
|
||||
FCFLAGS := -fopenmp -Ofast -J $(MODDIR) -I $(INCDIR) -Wall -fno-stack-arrays -g
|
||||
FCFLAGS := -fopenmp -Ofast -J $(MODDIR) -I $(INCDIR) -Wall -g
|
||||
|
||||
#Output file
|
||||
OUTPUT = DSMC_Neutrals
|
||||
OUTPUT = PPartiC
|
||||
|
||||
export
|
||||
|
||||
$(OUTPUT): src.o
|
||||
all: $(OUTPUT)
|
||||
|
||||
$(OUTPUT): src.o
|
||||
|
||||
src.o:
|
||||
@mkdir -p $(MODDIR)
|
||||
@mkdir -p $(OBJDIR)
|
||||
$(MAKE) -C src all
|
||||
$(MAKE) -C src $(OUTPUT)
|
||||
|
||||
clean:
|
||||
rm -f $(OUTPUT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue