Commit graph

373 commits

Author SHA1 Message Date
4c72e68246 Boundaries for EM almost done 2026-02-18 13:31:38 +01:00
6a7c92f62f Skeleton of boundaries for EM with new structure for mesh 2026-02-17 14:54:22 +01:00
4872bcc194 Forgot to rename submodule in makefile 2026-02-17 09:31:38 +01:00
0ae121e3b1 Rename of boundary module as I start with EM 2026-02-17 09:30:25 +01:00
f566776af2 New common module for mesh module to avoid repetition 2026-02-17 09:26:37 +01:00
6f8656bc21 Init for boundaries particles 2026-02-16 20:05:23 +01:00
6b96d56c9d Init for edges changed. Now, input 2026-02-13 10:58:31 +01:00
defcf02466 Preparing to change the input 2026-02-10 18:46:37 +01:00
c1b6cf1b31 Now the deferred apply is pass and I made some generic boundaries to use internally 2026-02-10 17:22:56 +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
fbbb0d5d13 fPsi functions for edges
I need to make a common module for mesh, many functions for elements are
shared.

Also, try to reduce the 'select type' statements, but I don't know
enough Fortran for it.
2026-02-05 15:30:50 +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
13dde3b1f9 I need to ensure quasi-neutrality at the inlet with a new kind of BC 2026-02-04 22:43:59 +01:00
8d5cb6a516 Wrong surface in edges
Some edges were calculating the area surface incorrectly, which was leading to wrong densities.
2026-02-02 14:31:58 +01:00
6a901a0cac Merge pull request 'feature/meshText' (#57) from feature/meshText into development
Reviewed-on: https://plasmalab.aero.upm.es/git/git/JGonzalez/fpakc/pulls/57
2026-01-23 15:27:27 +01:00
56a17300f3 Change in manual 2026-01-23 15:26:23 +01:00
0c0017b84a txs auto checkin 2026-01-23 15:21:26 +01:00
1b1a574edc Read initial
Now we can read an initial condition as we do with other formats.

Only documentation left.
2026-01-23 15:04:39 +01:00
d34e72d2e8 Collisions done
Thanks to the advance statement the output of collisions is done.
2026-01-23 14:51:49 +01:00
46b9f263ea Average done
Now we can output averages in this format.
2026-01-23 14:26:39 +01:00
8c8c6409f6 Output for EM
The output for the EM field properties is done.
2026-01-23 12:16:52 +01:00
27158c7c1d Output for species
First output done. Now it is mostly Copy Paste.

There are so many things I need to reform in other parts... Learning new things is awful.
2026-01-22 18:44:25 +01:00
3083e20ff7 Subroutine for reading mesh
It is now complete and working. I also added some minor improvements to moduleMesh.f90 using 'associate' to practice.

I noticed there are a lot of things (allocating K, for example) that are common for all meshes and should be moved to a general module.
2026-01-22 14:06:20 +01:00
7d4f4b98c3 Implementing input subroutines 2026-01-19 15:37:31 +01:00
9f9bacca7c Skeleton implementation of text mesh for simple 1D cases. 2026-01-19 14:48:06 +01:00
d5bcf8ce50 Merge branch 'issue/triangles' into 'development'
Fixed issue with volume in triangles

See merge request JorgeGonz/fpakc!56
2025-10-11 12:01:28 +00: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
c9b551458d Merge branch 'citationFile' into 'development'
Add citation file

See merge request JorgeGonz/fpakc!55
2025-09-24 17:34:24 +00:00
9d789ef7a6 Add citation file
I think it follows the standard.
2025-09-24 19:33:25 +02:00
b1f21a2c02 Merge branch 'IEPC2025' into 'development'
Merge IEPC2025

See merge request JorgeGonz/fpakc!54
2025-09-23 16:42:04 +00:00
dff9a87f0d Implemenint injecting particles without direction
I was almost sure this was implemented in the past, but it was not working.

Now, if n = 0 or if n is not provided, particles are injected with the normal to the surface.
2025-08-08 19:27:27 +02:00
5166a650d2 Data for Kr, just to test 2025-08-06 10:59:03 +02:00
3d7b1ce476 Fixed!
So it seems that rectangles and triangles are now working properly.

I have also checked the phy2log routine, now it seems a bit more complicated, but it is much clearer.
Maybe in the future is worth rethinking to improve speed (specially for quad elements)
2025-08-03 22:14:19 +02:00
102fd013f3 Issue with triangles fixed
Now they give the right electric field.

I have to change 2DCyl.

However, there was some insonsistency between the change of coordinates in phy2log and the Jacobian for the K matrix. I fixed it putting a transpose() in phy2log, but I don't like that solution.

I need to review the basic procedure of phy2log.
2025-08-03 20:46:12 +02:00
7e193b9fa8 Minor changes, no improvement made yet 2025-08-03 15:32:55 +02:00
d86c8480f3 Fixed issue with some velocities. Still, at some point I need to rething all the injection thing. 2025-08-02 16:51:00 +02:00
4b040c35c3 Fixes to random variables
After reading some works and reviewing what I had, I've done some
corrections to how the randomb velicities in Maxwellian distributions
are calculated. These should be correct now.
2025-08-02 13:25:48 +02:00
78cb9a2453 No reflection of particles at injection, that should be a boundary condition 2025-08-02 10:31:06 +02:00
d1e73297eb Adjust flux when no particlesPerEdge is used
This does not affects the cases of the IEPC, but I am also doing other
stuff.
2025-07-27 18:17:01 +02:00
8e531ede08 Vol_ref was the right answer 2025-07-27 17:16:57 +02:00
76c5af89b2 Merge branch 'IEPC2025' of gitlab.com:JorgeGonz/fpakc into IEPC2025 2025-07-27 17:15:36 +02:00
7f73b69dc2 Fix injection
Half-Maxwellian distribution should inject particles correctly
2025-07-27 17:14:38 +02:00
69215ef66d Change in calculating ionization
I don't know why I normalizing density n_0 by Vol_ref and not n_ref
2025-07-22 19:52:39 +02:00
a2f9957f32 I am dumb
The Poisson equation was not working because I didn't finish
implementing the new type of BCs. Dirichlet is probably untested. I
should stop doing shitty developments and no testing.
2025-07-18 16:31:52 +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
2268a97e23 Merge branch 'mergeDevleopment' into 'development'
Issue with injecting current

See merge request JorgeGonz/fpakc!53
2024-10-13 12:41:03 +00:00
3d8d912722 Merge branch 'development' of gitlab.com:JorgeGonz/fpakc into development 2024-10-13 13:35:34 +02:00