Commit graph

95 commits

Author SHA1 Message Date
fc272be08f New version of the manual explaining briefly collisional processes and
the examples.

README.md updated to include basic installation instructions.

Small changes to input files (just formatting)
2021-01-19 10:46:09 +01:00
b609430b3c First version of manual incorporated into the main repository.
Information added to account for changes in collisional processes
mostly.
2021-01-12 18:41:42 +01:00
5516e46ec3 Particles are injected in each iteration and pushed with tauMin when
injected. Then, particles are pushed as normal in their own time step.
2021-01-02 16:31:31 +01:00
874d573e89 New and improved method to calculate collisions per iteration:
In each iteration, number of collisions are calculate as a REAL variable
(collFrac) and stored in each cell. The number of collisions is
calculated as FLOOR(collFrac) and, if it is >1 collisions are computed
as usual. Per each collision calculated, 1.0 is removed from collFrac
2021-01-02 14:09:27 +01:00
4ba08e74af Method to divide collisions from a collisional iteration into multiple
pushing iterations.
2021-01-02 12:50:22 +01:00
a45df9de22 Recombination process introduced. No photon creation yet. 2020-12-27 13:15:36 +01:00
9e0d1a7cc7 Final implementation of ionization process by electron impact.
Possibility to input initial species distributions (density, velocity
    and temperature) via an input file for each species.

New moduleRandom includes function to generate random numbers in
different ways (still uses) the implicit RANDOM_NUMBER().
2020-12-26 22:45:55 +01:00
e50cc3325b Implementation of ionization process.
Now collisions can have a different time step.

Added species name to output names as it was starting to get confusing
in Gmsh for multiple species.

Output filenames adapted to match any number of iterations.
2020-12-25 23:08:59 +01:00
159d1527e6 Fixed a bug related with reading information on linking species. 2020-12-22 16:52:05 +01:00
35936ea918 Implementation of charge exchange and structure for ionization
processes.
2020-12-22 10:41:30 +01:00
baf25c1157 New boundary condition 'wallTemperature' that simulates a reflecting
wall with constant temperature and specific heat.
2020-12-19 16:20:28 +01:00
ef0b4ae832 Removed an unusued boundary type 2020-12-17 22:06:23 +01:00
9e3a1a771b Modification in boundary conditions:
- Now absorption scatte the particle  properties into the edge nodes.
  - New boundary condition 'transparent' subsitute old absorption.
2020-12-17 21:16:35 +01:00
2c3e25b40e Added the possibility to have different boundary conditions per species.
A boundary condition for each species must be indicated in the case
file.
This opens the door to use boundary conditions with different parameters
(for example, a wall temperature, coefficients for reflection or
 absorption...)

The examples included with the code have been updated accordently.
2020-12-17 18:21:27 +01:00
dc98fe9399 New version of the user manual.
Small modification 1D_Cathode cases.
2020-12-15 15:27:06 +01:00
d3d070a367 First implementation of 1D radial case. Only charged particles taked
into account (as in 1D Cartesian case).

The 1D Cathode example case has been modified, having now 2 input files:
  - inputCart.json: Used for Cartesian coordinates
  - inputRad.json:  Used for Radial coordinates

Pusher is a Boris pusher but without z direction.
2020-12-13 22:14:37 +01:00
f151f3cd0e Renaming the generic 'non-analogue' scheme for 'weighting' scheme. 2020-12-13 17:04:52 +01:00
37b0139b1f Implementation of different distribution functions for velocities.
Maxwellian and Diract Delta distributions have been implemented.

The input for injection of particles should be rewritten to allow more
clear input file.
2020-12-13 13:56:48 +01:00
af74205932 Files renamed and makefile make compatible with ifort. 2020-12-10 19:25:17 +01:00
3b125d0952 Minor improvement in mesh structure to allow different imput formats.
Organization of meshes per geometry type.
2020-12-08 18:28:24 +01:00
7152a232fe Separating CPU time output from Data outut to allow better analysis. 2020-12-07 17:58:33 +01:00
d69b59143d !Implementation for 1D solver for charged particles. Added a 1D case for
testing. Still, no formal test has been performed so issues may appear.
2020-12-07 09:12:30 +01:00
7859a73274 First implementation of Non-Analogue Scheme using volume weighting. The
scheme to use is chosen in the input file. Additional schemes could be
added easily.
2020-12-03 08:57:34 +01:00
a5d5ceb53d Implementation of different time steps per species. 2020-12-01 17:37:22 +01:00
d0bd6e73ed First implementation of multiple pushers for different species 2020-11-29 19:10:11 +01:00
bf5310c2c3 Slight improvement in using triangles in electrostaic pusher, but still
no final solution.
2020-11-29 12:09:54 +01:00
c16968ea9d Writing fpakc in lowercase in the .gitignore file 2020-11-26 19:35:21 +01:00
075530e967 The electric field from a triangular element is incorrect. Issue with
directional derivative depending on the definition of first node. Trying
to solve it with searching for the right first node but it is very
difficult. A solution is required to allow triangular meshes in charged
simulations.
2020-11-26 09:04:26 +01:00
20dc4d4012 First Implementation of Tria elements in 2D Cylindrical space.
Reading of this type of element needs to be implemented.

Fixed a bug in which the L_ref (reference length) was not correctly
being calculated for neutral solver.
2020-11-18 10:32:18 +01:00
7b707e7806 Renaming of code. New name is FPAKC. 2020-11-16 18:25:42 +01:00
c82279f5c5 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.
2020-11-15 21:16:02 +01:00
73fc9f69c1 Main changes:
- 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.
2020-10-25 08:08:18 +01:00
a04b46a0f0 Issue with reflecting particles solved. 2020-10-23 13:41:44 +02:00
5368ff2bf3 Fixing a bug in injection of particles that was creating ghost particles
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.
2020-10-21 10:13:43 +02:00
88b7dae9e5 No big improvements, just some syntaxis corrections in
src/modules/moduleList.f95
2020-10-21 08:43:30 +02:00
ca9948139b Dynamic schedule for collision loop to balance the uneven number of
collisions in each cell.

No success with balancing particle loops (push and weighting).
2020-10-20 17:50:57 +02:00
e44eed8af8 Base commit befor trying to use dynamic scheduling to boost parallel
performance.
2020-10-18 17:00:15 +02:00
e14c3ef65b Fixed bug with number of collisions not computing correctly because
INT/REAL conversions.

Number of collisions now take into account the different weight of
particles inside a cell without impacting performance.
2020-10-18 10:26:58 +02:00
bf6caad56a Final adjustments, format of verbose corrected and minor modifications
to the input case cylFlow.
2020-10-18 00:21:13 +02:00
fd42e0f3f9 Huge improvement in reset (by increasing a little bit push time) using
OMP locks to assign particles to cells in the pushing step.

Trying to combine push+reset and  collision+scatter did not work.
2020-10-17 18:46:10 +02:00
1686da7694 Trying to use OpenMP locks to improve code performance in parallel
regions.
2020-10-17 15:23:34 +02:00
ffb03e634b Minor improvements in performance and code clarity.
Still no solution for the reset subroutine. It is really time
consumming.
2020-10-13 18:16:18 +02:00
60f38a2d95 Commit befor trying to convert particle array to linked list to improve
performance.
2020-10-10 21:25:49 +02:00
05f5adcfe1 First commit of branch performance:
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.
2020-10-10 14:47:22 +02:00
bd7e8b040b First commit of code.
New functionality:
- DSMC module:
  - 2D cyl geometry
    - GMSH file format
    - Elastic cross-section for Argon-Argon collisions.
    - Basic boundary conditions: reflection, absorption and axis
      symmetry.

Bugs fixed:

Other comments:
- Still searching for name.
2020-10-09 08:45:07 +02:00