Small correction to input. Adjustment of ALPHIE_Grid case

This commit is contained in:
Jorge Gonzalez 2026-03-03 14:50:09 +01:00
commit a89853135c
5 changed files with 4334 additions and 1607 deletions

View file

@ -10,66 +10,58 @@
"geometry": { "geometry": {
"dimension": 2, "dimension": 2,
"type": "Cyl", "type": "Cyl",
"meshType": "gmsh2", "meshType": "vtu",
"meshFile": "mesh.msh" "meshFile": "mesh.vtu"
}, },
"species": [ "species": [
{"name": "Argon+", "type": "charged", "mass": 6.633e-26, "charge": 1.0, "weight": 1.0e1}, {"name": "Ar+", "type": "charged", "mass": 6.633e-26, "charge": 1.0, "weight": 1.0e1},
{"name": "Electron", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e2} {"name": "e", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1},
{"name": "eSec", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1}
], ],
"boundary": [ "boundaries": {
{"name": "Ionization Chanber", "physicalSurface": 1, "bTypes": [ "particles": [
{"type": "transparent"}, {"name": "Transparent", "type": "transparent"},
{"type": "transparent"} {"name": "Reflection", "type": "reflection"},
]}, {"name": "Absorption", "type": "absorption"},
{"name": "Vacuum Chamber", "physicalSurface": 2, "bTypes": [ {"name": "Axis", "type": "axis"}
{"type": "transparent"},
{"type": "transparent"}
]},
{"name": "Exterior", "physicalSurface": 3, "bTypes": [
{"type": "reflection"},
{"type": "reflection"}
]},
{"name": "Grid Extraction", "physicalSurface": 4, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Grid Acceleration", "physicalSurface": 5, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Axis", "physicalSurface": 6, "bTypes": [
{"type": "axis"},
{"type": "axis"}
]}
], ],
"boundaryEM": [ "EM": [
{"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0, "physicalSurface": 4}, {"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0},
{"name": "Acceleration Grid", "type": "dirichlet", "potential": -600.0, "physicalSurface": 5}, {"name": "Cover Grid", "type": "dirichlet", "potential": -600.0},
{"name": "Ionization Chamber", "type": "dirichlet", "potential": 0.0, "physicalSurface": 1}, {"name": "Ionization Chamber", "type": "dirichlet", "potential": 0.0}
{"name": "Infinite", "type": "dirichlet", "potential": -600.0, "physicalSurface": 2} ]
},
"physicalSurfaces": [
{"index": 1, "particles": ["Transparent", "Transparent", "Transparent"], "EM": "Ionization Chamber"},
{"index": 2, "particles": ["Transparent", "Transparent", "Transparent"]},
{"index": 3, "particles": ["Reflection", "Reflection", "Reflection"]},
{"index": 4, "particles": ["Absorption", "Absorption", "Absorption"], "EM": "Extraction Grid"},
{"index": 5, "particles": ["Absorption", "Absorption", "Absorption"], "EM": "Cover Grid"},
{"index": 6, "particles": ["Axis", "Axis", "Axis"]}
], ],
"inject": [ "inject": [
{"name": "Ionization Argon+", "species": "Argon+", "flow": 1.0e-5, "units": "A", "v": 2500.0, "T": [ 500.0, 500.0, 500.0], {"name": "Cathode", "species": "e", "flow": 1.0e-4, "units": "A", "v": 0.0, "T": [11604.5, 11604.5, 11604.5],
"velDist": ["Maxwellian", "Maxwellian", "Maxwellian"], "n": [ 1, 0, 0], "physicalSurface": 1}, "velDist": ["Half-Maxwellian", "Maxwellian", "Maxwellian"], "n": [-1, 0, 0], "physicalSurface": 2, "particlesPerEdge": 20},
{"name": "Ionization Electron", "species": "Electron", "flow": 1.0e-5, "units": "A", "v": 87000.0, "T": [30000.0, 30000.0, 30000.0], {"name": "Ionization Argon+", "species": "Ar+", "flow": 1.0e-5, "units": "A", "v": 300.0, "T": [ 500.0, 500.0, 500.0],
"velDist": ["Maxwellian", "Maxwellian", "Maxwellian"], "n": [ 1, 0, 0], "physicalSurface": 1}, "velDist": ["Maxwellian", "Maxwellian", "Maxwellian"], "n": [ 1, 0, 0], "physicalSurface": 1, "particlesPerEdge": 5},
{"name": "Cathode Electron", "species": "Electron", "flow": 1.0e-4, "units": "A", "v": 87000.0, "T": [30000.0, 30000.0, 30000.0], {"name": "Ionization Electron", "species": "eSec", "flow": 4.2e-5, "units": "A", "v": 0.0, "T": [11604.5, 11604.5, 11604.5],
"velDist": ["Maxwellian", "Maxwellian", "Maxwellian"], "n": [-1, 0, 0], "physicalSurface": 2} "velDist": ["Half-Maxwellian", "Maxwellian", "Maxwellian"], "n": [ 1, 0, 0], "physicalSurface": 1, "particlesPerEdge": 20}
], ],
"reference": { "reference": {
"density": 1.0e16, "density": 1.0e14,
"mass": 9.109e-31, "mass": 9.109e-31,
"temperature": 2500.0, "temperature": 11604.5,
"radius": 1.88e-10 "radius": 1.88e-10
}, },
"solver": { "solver": {
"tau": [1.0e-9, 1.0e-11], "tau": [1.0e-9, 5.0e-12, 5.0e-12],
"finalTime": 1.0e-6, "finalTime": 1.5e-6,
"pusher": ["Electrostatic", "Electrostatic"], "pusher": ["Electrostatic", "Electrostatic", "Electrostatic"],
"WeightingScheme": "Volume",
"EMSolver": "Electrostatic" "EMSolver": "Electrostatic"
}, },
"average":{
"startTime": 1.0e-6
},
"parallel": { "parallel": {
"OpenMP":{ "OpenMP":{
"nThreads": 24 "nThreads": 24

View file

@ -10,63 +10,56 @@
"geometry": { "geometry": {
"dimension": 2, "dimension": 2,
"type": "Cyl", "type": "Cyl",
"meshType": "gmsh2", "meshType": "vtu",
"meshFile": "mesh.msh" "meshFile": "mesh.vtu"
}, },
"species": [ "species": [
{"name": "Argon+", "type": "charged", "mass": 6.633e-26, "charge": 1.0, "weight": 1.0e1}, {"name": "Ar+", "type": "charged", "mass": 6.633e-26, "charge": 1.0, "weight": 1.0e1},
{"name": "Electron", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e2} {"name": "e", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1},
{"name": "eSec", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1}
], ],
"boundary": [ "boundaries": {
{"name": "Ionization Chanber", "physicalSurface": 1, "bTypes": [ "particles": [
{"type": "transparent"}, {"name": "Transparent", "type": "transparent"},
{"type": "ionization", "neutral": {"ion": "Argon+", "mass": 6.633e-26, "density": 5.0e16, "velocity": [2500, 0, 0], "temperature": 300}, {"name": "Reflection", "type": "reflection"},
{"name": "Absorption", "type": "absorption"},
{"name": "Axis", "type": "axis"},
{"name": "Ionization", "type": "ionization", "neutral": {"ion": "Ar+", "mass": 6.633e-26, "density": 5.0e16, "velocity": [2500, 0, 0], "temperature": 300},
"effectiveTime": 5.0e-6,"energyThreshold": 15.76, "crossSection": "./data/collisions/IO_e-Ar.dat"} "effectiveTime": 5.0e-6,"energyThreshold": 15.76, "crossSection": "./data/collisions/IO_e-Ar.dat"}
]},
{"name": "Vacuum Chamber", "physicalSurface": 2, "bTypes": [
{"type": "transparent"},
{"type": "transparent"}
]},
{"name": "Exterior", "physicalSurface": 3, "bTypes": [
{"type": "reflection"},
{"type": "reflection"}
]},
{"name": "Grid Extraction", "physicalSurface": 4, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Grid Acceleration", "physicalSurface": 5, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Axis", "physicalSurface": 6, "bTypes": [
{"type": "axis"},
{"type": "axis"}
]}
], ],
"boundaryEM": [ "EM": [
{"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0, "physicalSurface": 4}, {"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0},
{"name": "Acceleration Grid", "type": "dirichlet", "potential": -600.0, "physicalSurface": 5}, {"name": "Cover Grid", "type": "dirichlet", "potential": -600.0},
{"name": "Ionization Chamber", "type": "dirichlet", "potential": 0.0, "physicalSurface": 1}, {"name": "Ionization Chamber", "type": "dirichlet", "potential": 0.0}
{"name": "Infinite", "type": "dirichlet", "potential": -600.0, "physicalSurface": 2} ]
},
"physicalSurfaces": [
{"index": 1, "particles": ["Transparent", "Ionization", "Ionization"], "EM": "Ionization Chamber"},
{"index": 2, "particles": ["Transparent", "Transparent", "Transparent"]},
{"index": 3, "particles": ["Reflection", "Reflection", "Reflection"]},
{"index": 4, "particles": ["Absorption", "Absorption", "Absorption"], "EM": "Extraction Grid"},
{"index": 5, "particles": ["Absorption", "Absorption", "Absorption"], "EM": "Cover Grid"},
{"index": 6, "particles": ["Axis", "Axis", "Axis"]}
], ],
"inject": [ "inject": [
{"name": "Cathode Electron", "species": "Electron", "flow": 1.0e-4, "units": "A", "v": 87000.0, "T": [30000.0, 30000.0, 30000.0], {"name": "Cathode", "species": "e", "flow": 1.0e-4, "units": "A", "v": 0.0, "T": [11604.5, 11604.5, 11604.5],
"velDist": ["Maxwellian", "Maxwellian", "Maxwellian"], "n": [-1, 0, 0], "physicalSurface": 2} "velDist": ["Half-Maxwellian", "Maxwellian", "Maxwellian"], "n": [-1, 0, 0], "physicalSurface": 2, "particlesPerEdge": 20}
], ],
"reference": { "reference": {
"density": 1.0e16, "density": 1.0e14,
"mass": 9.109e-31, "mass": 9.109e-31,
"temperature": 2500.0, "temperature": 11604.5,
"radius": 1.88e-10 "radius": 1.88e-10
}, },
"solver": { "solver": {
"tau": [1.0e-9, 1.0e-11], "tau": [1.0e-9, 5.0e-12, 5.0e-12],
"finalTime": 1.0e-6, "finalTime": 1.5e-6,
"pusher": ["Electrostatic", "Electrostatic"], "pusher": ["Electrostatic", "Electrostatic", "Electrostatic"],
"WeightingScheme": "Volume",
"EMSolver": "Electrostatic" "EMSolver": "Electrostatic"
}, },
"average":{
"startTime": 1.0e-6
},
"parallel": { "parallel": {
"OpenMP":{ "OpenMP":{
"nThreads": 24 "nThreads": 24

File diff suppressed because it is too large Load diff

4256
runs/ALPHIE_Grid/mesh.vtu Normal file

File diff suppressed because it is too large Load diff

View file

@ -873,8 +873,8 @@ MODULE moduleInput
IF (.NOT. found) CALL criticalError("missing parameter 'crossSection' for neutrals in ionization", 'readBoundary') IF (.NOT. found) CALL criticalError("missing parameter 'crossSection' for neutrals in ionization", 'readBoundary')
CALL config%get(object // '.electronSecondary', electronSecondary, found) CALL config%get(object // '.electronSecondary', electronSecondary, found)
electronSecondaryID = speciesName2Index(electronSecondary)
IF (found) THEN IF (found) THEN
electronSecondaryID = speciesName2Index(electronSecondary)
CALL initIonization(self, me/m_ref, m0, n0, v0, T0, & CALL initIonization(self, me/m_ref, m0, n0, v0, T0, &
speciesID, effTime, crossSection, eThreshold, electronSecondaryID) speciesID, effTime, crossSection, eThreshold, electronSecondaryID)