-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature.backGroundGas.regions' into 'master.dev'
Definition of background gas regions & treatment of relativistic electron energies in MCC See merge request piclas/piclas!634
- Loading branch information
Showing
54 changed files
with
952 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+42.6 KB
...E_DSMC/BackgroundGas_RegionsDefinition/BGG_Regions_DSMCState_000.00000000002000000_ref.h5
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/DSMC.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
! =============================================================================== ! | ||
! Species1, N2 | ||
! =============================================================================== ! | ||
Part-Species1-SpeciesName = N2 | ||
Part-Species1-InteractionID = 2 | ||
Part-Species1-Tref = 273 | ||
Part-Species1-dref = 4.17E-10 | ||
Part-Species1-omega = 0.24 | ||
Part-Species1-CharaTempVib = 3393.3 | ||
Part-Species1-Ediss_eV = 9.79 | ||
! =============================================================================== ! | ||
! Species1, He | ||
! =============================================================================== ! | ||
Part-Species2-SpeciesName = He | ||
Part-Species2-InteractionID = 1 | ||
Part-Species2-Tref = 273 | ||
Part-Species2-dref = 2.287E-10 | ||
Part-Species2-omega = 0.147 | ||
Part-Species2-HeatOfFormation_K = 0.0 | ||
! =============================================================================== ! | ||
! Species3, e | ||
! =============================================================================== ! | ||
Part-Species3-SpeciesName = electron | ||
Part-Species3-InteractionID = 4 | ||
Part-Species3-Tref = 273 | ||
Part-Species3-dref = 1E-15 | ||
Part-Species3-omega = 0.147 |
Binary file added
BIN
+52.9 KB
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/MCC_Database.h5
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/analyze.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
! Compare cell-local values | ||
h5diff_file = BGG_Regions_DSMCState_000.00000000002000000.h5 | ||
h5diff_reference_file = BGG_Regions_DSMCState_000.00000000002000000_ref.h5 | ||
h5diff_data_set = ElemData | ||
h5diff_tolerance_value = 5E-2 | ||
h5diff_tolerance_type = relative |
2 changes: 2 additions & 0 deletions
2
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/command_line.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
MPI=1,6 | ||
cmd_suffix=DSMC.ini |
Binary file added
BIN
+32.7 KB
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/cube_mesh.h5
Binary file not shown.
39 changes: 39 additions & 0 deletions
39
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/hopr.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ProjectName = cube | ||
Debugvisu = T | ||
DebugVisuLevel=2 | ||
NVisu =1 | ||
Mode =1 | ||
|
||
DEFVAR = (REAL): minus_x = -0.5 | ||
DEFVAR = (REAL): plus_x = 0.5 | ||
|
||
DEFVAR = (REAL): minus_y = -0.5 | ||
DEFVAR = (REAL): plus_y = 0.5 | ||
|
||
DEFVAR = (REAL): minus_z = 0.0 | ||
DEFVAR = (REAL): plus_z = 10.0 | ||
|
||
Corner =(/minus_x,minus_y,minus_z ,, plus_x,minus_y,minus_z ,, plus_x,plus_y,minus_z ,, minus_x,plus_y,minus_z ,, minus_x,minus_y,plus_z ,, plus_x,minus_y,plus_z ,, plus_x,plus_y,plus_z ,, minus_x,plus_y,plus_z /) | ||
nElems =(/4,4,4/) | ||
elemtype =108 | ||
|
||
BCIndex =(/6 ,4 ,1 ,3 ,2 ,5/) | ||
! =(/z-,y-,x+,y+,x-,z+/) | ||
nZones = 1 | ||
nUserDefinedBoundaries=6 | ||
BoundaryName=BC_Xplus | ||
BoundaryType=(/4,0,0,0/) | ||
BoundaryName=BC_Xminus | ||
BoundaryType=(/4,0,0,0/) | ||
BoundaryName=BC_Yplus | ||
BoundaryType=(/4,0,0,0/) | ||
BoundaryName=BC_Yminus | ||
BoundaryType=(/4,0,0,0/) | ||
BoundaryName=BC_Zplus | ||
BoundaryType=(/4,0,0,0/) | ||
BoundaryName=BC_Zminus | ||
BoundaryType=(/4,0,0,0/) | ||
|
||
postscalemesh=true | ||
meshscale=1e-3 | ||
jacobiantolerance=1e-20 |
159 changes: 159 additions & 0 deletions
159
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/parameter.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
|
||
IniExactFunc = 0 | ||
N = 1 | ||
NVisu = 1 | ||
! =============================================================================== ! | ||
! CALCULATION | ||
! =============================================================================== ! | ||
tend = 2E-11 | ||
Analyze_dt = 2E-11 | ||
ManualTimeStep = 1E-11 | ||
! Volume-average | ||
Part-WriteMacroValues = T | ||
Part-IterationForMacroVal = 2 | ||
! time output | ||
Part-AnalyzeStep = 1 | ||
IterDisplayStep = 1 | ||
! =============================================================================== ! | ||
! LOAD BALANCE | ||
! =============================================================================== ! | ||
Particles-MPIWeight = 1000 | ||
Particles-HaloEpsVelo = 1e3 | ||
DoLoadBalance = T | ||
PartWeightLoadBalance = T | ||
! Initial load balance | ||
DoInitialAutoRestart = T | ||
InitialAutoRestart-PartWeightLoadBalance = T | ||
LoadBalanceMaxSteps = 1 | ||
Load-DeviationThreshold = 1E-9 | ||
! =============================================================================== ! | ||
! MESH | ||
! =============================================================================== ! | ||
MeshFile = cube_mesh.h5 | ||
useCurveds = F | ||
TrackingMethod = triatracking | ||
! =============================================================================== ! | ||
! OUTPUT / VISUALIZATION | ||
! =============================================================================== ! | ||
ProjectName = BGG_Regions | ||
Logging = F | ||
WriteErrorFiles = F | ||
printRandomSeeds= F | ||
printMPINeighborWarnings=F | ||
! =============================================================================== ! | ||
! DSMC | ||
! =============================================================================== ! | ||
UseDSMC = T | ||
Particles-DSMC-CollisMode = 2 | ||
Part-NumberOfRandomSeeds = 2 | ||
Particles-RandomSeed1 = 1 | ||
Particles-RandomSeed2 = 2 | ||
Particles-DSMC-RotRelaxProb = 0.2 | ||
Particles-DSMC-VibRelaxProb = 0.05 | ||
Particles-DSMC-CalcQualityFactors = T | ||
|
||
! Collision cross-section | ||
Particles-CollXSec-Database = MCC_Database.h5 | ||
Part-Species3-UseCollXSec = F,T | ||
! =============================================================================== ! | ||
! PARTICLES | ||
! =============================================================================== ! | ||
Part-maxParticleNumber = 500000 | ||
! Boundaries | ||
Part-nBounds=6 | ||
Part-Boundary1-SourceName=BC_Xplus | ||
Part-Boundary1-Condition=reflective | ||
Part-Boundary2-SourceName=BC_Xminus | ||
Part-Boundary2-Condition=reflective | ||
Part-Boundary3-SourceName=BC_Yplus | ||
Part-Boundary3-Condition=reflective | ||
Part-Boundary4-SourceName=BC_Yminus | ||
Part-Boundary4-Condition=reflective | ||
Part-Boundary5-SourceName=BC_Zplus | ||
Part-Boundary5-Condition=reflective | ||
Part-Boundary6-SourceName=BC_Zminus | ||
Part-Boundary6-Condition=reflective | ||
Part-FIBGMdeltas = (/1E-3,1E-3,1E-2/) | ||
Part-FactorFIBGM = (/ 4.0, 4.0, 40.0 /) | ||
! =============================================================================== ! | ||
! Background Gas Regions | ||
! =============================================================================== ! | ||
Particles-BGGas-nRegions = 3 | ||
|
||
Particles-BGGas-Region1-Type = cylinder | ||
Particles-BGGas-Region1-RadiusIC = 0.0005 | ||
Particles-BGGas-Region1-CylinderHeightIC = 0.0025 | ||
Particles-BGGas-Region1-BasePointIC = (/0.,0.,0./) | ||
Particles-BGGas-Region1-BaseVector1IC = (/1.,0.,0./) | ||
Particles-BGGas-Region1-BaseVector2IC = (/0.,1.,0./) | ||
|
||
Particles-BGGas-Region2-Type = cylinder | ||
Particles-BGGas-Region2-RadiusIC = 0.0005 | ||
Particles-BGGas-Region2-CylinderHeightIC = 0.0025 | ||
Particles-BGGas-Region2-BasePointIC = (/0.,0.,0.0025/) | ||
Particles-BGGas-Region2-BaseVector1IC = (/1.,0.,0./) | ||
Particles-BGGas-Region2-BaseVector2IC = (/0.,1.,0./) | ||
|
||
Particles-BGGas-Region3-Type = cylinder | ||
Particles-BGGas-Region3-RadiusIC = 0.0005 | ||
Particles-BGGas-Region3-CylinderHeightIC = 0.0025 | ||
Particles-BGGas-Region3-BasePointIC = (/0.,0.,0.005/) | ||
Particles-BGGas-Region3-BaseVector1IC = (/1.,0.,0./) | ||
Particles-BGGas-Region3-BaseVector2IC = (/0.,1.,0./) | ||
! =============================================================================== ! | ||
Part-nSpecies = 3 | ||
Part-Species$-MacroParticleFactor = 1E6 | ||
! =============================================================================== ! | ||
! Species1 | N2 | ||
! =============================================================================== ! | ||
Part-Species1-MassIC = 4.65200E-26 ! N2 Molecular Mass | ||
Part-Species1-ChargeIC = 0 | ||
|
||
Part-Species1-nInits = 2 | ||
Part-Species1-Init1-SpaceIC = background | ||
Part-Species1-Init1-BGG-Region = 1 | ||
Part-Species1-Init1-velocityDistribution = maxwell_lpn | ||
Part-Species1-Init1-MWTemperatureIC = 1000.0 | ||
Part-Species1-Init1-PartDensity = 1E23 | ||
Part-Species1-Init1-VeloIC = 500. | ||
Part-Species1-Init1-VeloVecIC = (/0.,0.,1./) | ||
Part-Species1-Init1-TempVib = 1000.0 | ||
Part-Species1-Init1-TempRot = 2000.0 | ||
|
||
Part-Species1-Init2-SpaceIC = background | ||
Part-Species1-Init2-BGG-Region = 3 | ||
Part-Species1-Init2-velocityDistribution = maxwell_lpn | ||
Part-Species1-Init2-MWTemperatureIC = 5000.0 | ||
Part-Species1-Init2-PartDensity = 5E24 | ||
Part-Species1-Init2-VeloIC = 0 | ||
Part-Species1-Init2-VeloVecIC = (/0.,0.,1./) | ||
Part-Species1-Init2-TempVib = 3000.0 | ||
Part-Species1-Init2-TempRot = 4000.0 | ||
! =============================================================================== ! | ||
! Species2 | He | ||
! =============================================================================== ! | ||
Part-Species2-MassIC = 6.6464764E-27 | ||
Part-Species2-ChargeIC = 0 | ||
|
||
Part-Species2-nInits = 2 | ||
Part-Species2-Init1-SpaceIC = background | ||
Part-Species2-Init1-BGG-Region = 2 | ||
Part-Species2-Init1-velocityDistribution = maxwell_lpn | ||
Part-Species2-Init1-MWTemperatureIC = 1500.0 | ||
Part-Species2-Init1-PartDensity = 1E24 | ||
Part-Species2-Init1-VeloIC = 250 | ||
Part-Species2-Init1-VeloVecIC = (/1.,0.,0./) | ||
|
||
Part-Species2-Init2-SpaceIC = background | ||
Part-Species2-Init2-BGG-Region = 3 | ||
Part-Species2-Init2-velocityDistribution = maxwell_lpn | ||
Part-Species2-Init2-MWTemperatureIC = 2500.0 | ||
Part-Species2-Init2-PartDensity = 5E24 | ||
Part-Species2-Init2-VeloIC = 750 | ||
Part-Species2-Init2-VeloVecIC = (/0.,1.,0./) | ||
|
||
! =============================================================================== ! | ||
! Species3 | electron | ||
! =============================================================================== ! | ||
Part-Species3-MassIC = 6.6464764E-27 | ||
Part-Species3-ChargeIC = 0 |
7 changes: 7 additions & 0 deletions
7
regressioncheck/CHE_DSMC/BackgroundGas_RegionsDefinition/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Background gas using regions | ||
* Reservoir with 3 species and 3 background gas regions | ||
* 1 region with N2 (1E23/m3), 1 region with He (1E24/m3) and 1 region with N2/He (1E25/m3 in total) | ||
* Corresponding number density and temparte is verified with DSMCState output in the respective species container | ||
* Compared as part of the regression test | ||
* Interaction with particle species was verified by the collision probability | ||
* Comparison with DSMCState not possible due to strong fluctuations, third species is not inserted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
regressioncheck/CHE_DSMC/BackgroundGas_VHS_MCC/excludeBuild.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
! Skip N=1 hard coded | ||
PICLAS_POLYNOMIAL_DEGREE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.