Commit graph

66 commits

Author SHA1 Message Date
04cd9dffc6 Implementing output for injects. Cleaning code 2026-04-01 16:19:16 +02:00
d3f1f0808e Skeleton for new injection type 2026-03-31 19:21:03 +02:00
818f9fe37b Rename of procedures in boundaries 2026-03-14 20:28:03 +01:00
c325e12553 Correct input 2026-03-14 20:03:17 +01:00
7f9d6da2fc First verstion that seems to work! 2026-03-14 18:53:05 +01:00
e54c86a952 Recovered the ouflowBoundary code 2026-03-12 20:09:34 +01:00
6828f1ef96 Merge, but I have to recover the outflow boundary condition 2026-03-12 19:40:48 +01:00
493f7b9785 Almost done, just have to check the examples 2026-03-11 20:57:23 +01:00
551a488fde All actions related to path/fodler should be in moduleOutput now 2026-03-11 20:23:08 +01:00
76be78c883 Fixed 0D case, reference. Put everything in the moduleOutput 2026-03-11 20:14:14 +01:00
a48e5111e7 Corrections and some basic printing 2026-03-10 18:26:47 +01:00
776734db58 Calculates a reflection parameter (alpha) per edge based on the ratio of densities between the incident species and the rest 2026-03-09 14:31:11 +01:00
5d82ea2ddc Code cleanup 2026-03-06 09:30:33 +01:00
600f7305bd Added center point procedure to edge and eps in inside to avoid some rounding errors 2026-03-04 10:41:55 +01:00
a89853135c Small correction to input. Adjustment of ALPHIE_Grid case 2026-03-03 14:50:09 +01:00
352a5578cc Wrong subroutine name in error 2026-03-01 09:57:40 +01:00
aad8675214 Small changes while testing 0D case 2026-02-27 22:21:37 +01:00
31f0b510bc The program reads the case but stops while doind the simulation 2026-02-26 14:25:47 +01:00
135f1f464c Files compile but there is no linking in mesh module 2026-02-24 20:03:36 +01:00
5dfc8d4ce9 Inject fixed. Now getting close to input 2026-02-20 11:24:58 +01:00
70f6db0883 Add new elements to point containers is now more general 2026-02-20 11:03:11 +01:00
a0d45503f7 Working on init for new physical surfaces 2026-02-19 20:42:28 +01:00
1b32dfdfd6 Rewriting surfaces and boundaries 2026-02-19 20:23:13 +01:00
d211ed9a71 Almost done with EM, not to modify the EM module itself 2026-02-18 15:14:59 +01:00
4c72e68246 Boundaries for EM almost done 2026-02-18 13:31:38 +01:00
6f8656bc21 Init for boundaries particles 2026-02-16 20:05:23 +01:00
defcf02466 Preparing to change the input 2026-02-10 18:46:37 +01:00
0ccf455986 Boundaries done. Now to change the input and edges 2026-02-09 18:43:59 +01:00
c78d92fa7d Changing now boundaries 2026-02-09 15:22:41 +01:00
58e2fa7566 Working towards compilation with submodules 2026-02-09 13:52:52 +01:00
e7e6e1bece New BC for quasi-neutrality
Still, the adjustment it is not iterative.
I need to build new subroutines to gather values of edges.
2026-02-05 11:01:15 +01:00
159f2e7620 Trying partial reflection 2026-02-03 10:15:12 +01:00
9f9bacca7c Skeleton implementation of text mesh for simple 1D cases. 2026-01-19 14:48:06 +01:00
55e062a9ef Fixed issue with volume in triangles
The right value in 2D Cartesian is used for calculating the volume.
2025-10-11 14:00:16 +02:00
d28dd16c2e Average fix and data for Xe 2025-07-17 18:34:11 +02:00
221de46734 Merge branch 'development' into feature/BoltzmannElectrons 2024-10-13 14:54:34 +02:00
2d4b405fb1 Functionality added
Now we have a new boundary condition that can change the value of the
potential in a surface based on a file.
2024-07-13 12:06:41 +02:00
10dee05922 NOT WORKING: Compilation okay, but not Dirichlet BC
The code compiles but the right BC is not being applied to the vectorF.

I'll check this tomorrow.
2024-07-12 23:30:35 +02:00
ac27725940 Big one...
I should've commited before, but I wanted to make things compile.

The big change is that I've added a global time step so the parameter
does not need to be passed in each function. This is useful as we are
moving towards using time profiles for boundary conditions and injection
of particles (not in this branch, but in the future and the procedure
will be quite similar)
2024-07-12 23:08:19 +02:00
abedb79b16 Some comments
Just some comments on how I am going to make the desired changes (have a
Dirichlet boundary condition for the electric potential that changes
with time). This might be a good opportunity to rework the boundary
conditions in the electrostatic field and include other things like a
Newmann boundary condition. We will see.
2024-07-12 11:02:26 +02:00
bc8f205287 Clean-up!
Trying to reduce warnings and unused variables in the code. This should
not be in this branch.
2024-07-11 15:55:02 +02:00
96c563c146 Finally, some progress
I rewrote how particles are injected. Now the particles per edge and its
weight are calculated in the initialization. There is the possibility
for the user to select the particles per edge.

TODO: Write documentation for new feature.
TODO: Test in 2DCyl
2024-07-11 14:39:56 +02:00
1f2ec8d82f New option for initial distribution of species
The number of particles per cell can be defined when giving an initial
distribution fora species. If not, the typical method of using the
species weight is used. This is particularly useful for cylindrical
coordinates in which very little particles might end up in the axis if a
constant weight is used.
2024-07-07 14:37:34 +02:00
a3bdf8230a Implementation of Boltzmann electrons
Still not working, just saving code.
2024-05-19 10:55:20 +02:00
d86b3a3417 Implementing injection with current density
WARNING: This current denstiy will be multiplied by the reference
length, no the surface area that is being used for injection!

New units in the injection of particles 'Am2' to inject a density
current. Manual has been modified accordingly.

Reference parameters are now also printed in the case folder.
2024-03-28 09:45:46 +01:00
e41b448ef8 Different species for secondary electrons
The option to have a different species than the impacting electron for
secondary electrons from ionization is introduced.
2023-11-24 10:30:50 +01:00
e05c0d4635 Coulomb Scattering fully conservative
Coulomb scattering is now fully conservative thanks to the method in
lemos2009small.

The trick was to conserve the momentum and energy of ALL particles
involved in the scattering in each cell.

The substeps in Coulomb collisions have been removed as they are no
longer necessary.

Still some issues with e-i, but I don't know right now.
2023-07-16 14:30:49 +02:00
28b2bf206a Added the possibility to have sub-steps
Now per each Coulomb collision process there is the possibility to do
sub-steps. This helps in improving accuracy without reducing the time
step of the problem.
2023-07-12 14:21:29 +02:00
94a4864e6a Issue with injection of particles
I was having a lot of issues trying to get quasi-neutrality with the
injection of electrons and ions. Main issue was a definition of the
direction of injection. This should be fixed now (tested in 1D).

Added a definition for Half-Maxwellian velocity distribution.

WARNING: I'm still not happy at all about the definition of the
direction of injection and the velocity definition to be in that
direction so I might change it at some point (for example take into
account the sign of each direction in the thermal part of the velocity)
2023-05-22 15:14:33 +02:00
ed6c2c46e4 I'm a fucking idiot
The limit I set to avoid divisions by zero was wront and collisions were
being skipped. It is corrected now.
2023-03-29 10:08:11 +02:00