piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
74 stars 17 forks source link

PIC-externalField #3

Closed lkampoli closed 3 years ago

lkampoli commented 4 years ago

Hello,

When I try to run the /SingleParticle testcase, I get the following error;

Program abort caused on Proc 0 in File : src/readintools/readintools.f90 Line 1335 This file was compiled at May 21 2020 11:10:45 Message: Array size of option 'PIC-externalField' is not correct! See implicit_ERRORS_000000.out for more details

Indeed, as I can see in the regression tests, I guess this is something TODO.

Nevertheless, if I comment the line:

#PIC-externalField=(/0.,0.,0.,0.,0.,0.,0.,0./)

in parameter.ini, it works. Moreover, the implicit_ERRORS_000000.out file is always empty.

Regards, Lorenzo Campoli

scopplestone commented 4 years ago

Hello,

unfortunately, the complete ini folder and all test-cases are deprecated and need to be revised.

├── Maxwell
│   ├── Coaxial
│   ├── PlaneWave
│   └── RecCav
└── Particles
    ├── auxBCs
    ├── BC_ConstMassflow
    ├── BC_ConstPressure
    ├── BC_PorousPump
    ├── BilinTest
    ├── Coaxial
    ├── cube_test
    ├── curvedDebugging
    ├── curved_parabola
    ├── Cylinder
    ├── DSMCTest
    ├── EinzelLens
    ├── GyratingParticle
    ├── HangingParticle
    ├── InfiniteCapacitor
    ├── MaxwellJuettner
    ├── Microchannel
    ├── mortar
    ├── PeriodicBox
    ├── PlasmaWave
    ├── QKIonization
    ├── QK_Reaction_exchange
    ├── RotatingParticles
    ├── Semicircle
    ├── Semicircle_lin_RefMap_T
    ├── SingleParticle
    ├── sphere_hard
    ├── sphere_soft
    ├── SurfaceFlux
    ├── Test_for_innerBC
    ├── TwoStreamInstability
    └── Verification_for_LD

These will either be salvaged into regression check test-cases or tutorials or they will simply be deleted if they pose no usefulness any more.

The problem with PIC-externalField=(/0.,0.,0.,0.,0.,0.,0.,0./) in the parameter.ini file is that the length of the vector was reduced from 8 to 6. Simply commenting this line makes it work, however.

The implicit_ERRORS_000000.out is used for storing error that occur during the simulation (mainly when running in parallel with MPI) and is only created because the parameter WriteErrorFiles=T is set (default is true). This is also somewhat deprecated and will be revised in the future.

scopplestone commented 4 years ago

A working PIC example can be found under ./regressioncheck/checks/NIG_PIC_maxwell_RK4/single_particle/, however, for the parameter PIC-Deposition-Type=shape_function,nearest_blurycenter,delta_distri three options are given, from which you have to choose one (those three are used in the nightly continuous integration scheme of the code).

scopplestone commented 4 years ago

Note that the correct compiler flags are given in ./regressioncheck/checks/NIG_PIC_maxwell_RK4/builds.ini for the test-cases in NIG_PIC_maxwell_RK4.