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.
This commit is contained in:
Jorge Gonzalez 2020-12-17 18:21:27 +01:00
commit 2c3e25b40e
18 changed files with 19389 additions and 1174 deletions

View file

@ -17,12 +17,30 @@
{"name": "Electron", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1}
],
"boundary": [
{"name": "Ionization Chanber", "type": "absorption", "physicalSurface": 1},
{"name": "Vacuum Chamber", "type": "absorption", "physicalSurface": 2},
{"name": "Exterior", "type": "reflection", "physicalSurface": 3},
{"name": "Grid Extraction", "type": "absorption", "physicalSurface": 4},
{"name": "Grid Acceleration", "type": "absorption", "physicalSurface": 5},
{"name": "Axis", "type": "axis", "physicalSurface": 6}
{"name": "Ionization Chanber", "physicalSurface": 1, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Vacuum Chamber", "physicalSurface": 2, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"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": [
{"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0, "physicalSurface": 4},

View file

@ -17,12 +17,30 @@
{"name": "Electron", "type": "charged", "mass": 9.109e-31, "charge":-1.0, "weight": 1.0e1}
],
"boundary": [
{"name": "Ionization Chanber", "type": "absorption", "physicalSurface": 1},
{"name": "Vacuum Chamber", "type": "absorption", "physicalSurface": 2},
{"name": "Exterior", "type": "reflection", "physicalSurface": 3},
{"name": "Grid Extraction", "type": "absorption", "physicalSurface": 4},
{"name": "Grid Acceleration", "type": "absorption", "physicalSurface": 5},
{"name": "Axis", "type": "axis", "physicalSurface": 6}
{"name": "Ionization Chanber", "physicalSurface": 1, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"name": "Vacuum Chamber", "physicalSurface": 2, "bTypes": [
{"type": "absorption"},
{"type": "absorption"}
]},
{"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": [
{"name": "Extraction Grid", "type": "dirichlet", "potential": -150.0, "physicalSurface": 4},