-
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.hdg.floating.bc' into 'master.dev'
[feature.hdg.floating.bc] Floating Boundary Condition for the HDG solver See merge request piclas/piclas!782
- Loading branch information
Showing
43 changed files
with
1,838 additions
and
110 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
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
2 changes: 2 additions & 0 deletions
2
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/FieldAnalyze_ref.csv
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 @@ | ||
"001-time","002-E-El","003-HDG-#iterations","004-HDG-RunTime","005-HDG-RunTimePerIteration","006-HDG-Norm","007-FPC-Charge-BCState-001","008-FPC-Voltage-BCState-001","009-FPC-Charge-BCState-002","010-FPC-Voltage-BCState-002" | ||
0.1000000000000000E-009,0.3127506087087529E+012,0.2000000000000000E+001,0.1911449000000065E-002,0.9557245000000325E-003,0.3987716128529526E-006,0.5000000000000000E+001,0.2547103581523394E+011,0.1000000000000000E+002,0.4986308056035036E+011 |
14 changes: 14 additions & 0 deletions
14
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/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,14 @@ | ||
! integrate columns x:y in a data file as integral(y(x), x, x(1), x(end)) | ||
integrate_line_file = FieldAnalyze.csv ! data file name | ||
integrate_line_columns = 0:6 ! columns x:y [time:nPart_in] | ||
integrate_line_integral_value = 5.0 ! Integrated accumulated charge of FPC | ||
integrate_line_tolerance_value = 1e-10 ! tolerance | ||
integrate_line_tolerance_type = relative ! special option | ||
integrate_line_option = DivideByTimeStep ! the first column in Database.csv is used for this option | ||
integrate_line_multiplier = 2.0 ! this yiels the charge 5.0 on the 1st FPC | ||
|
||
! Compare last line in .csv file | ||
compare_data_file_name = FieldAnalyze.csv | ||
compare_data_file_reference = FieldAnalyze_ref.csv | ||
compare_data_file_tolerance = 1e3 ! Ignore small values, the acutally tested values are > 1e10 | ||
compare_data_file_tolerance_type = absolute ! Ignore HDG solver info: "003-HDG-#iterations", "004-HDG-RunTime", "005-HDG-RunTimePerIteration", "006-HDG-Norm" |
2 changes: 2 additions & 0 deletions
2
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/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,2,3,4,5,7,10,12 | ||
!restart_file = plasma_wave_State_000.00000000000000000.h5 |
3 changes: 3 additions & 0 deletions
3
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/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,3 @@ | ||
! poisson | ||
PICLAS_PARTICLES=OFF!ON is currently not possible due to load balance restart that requires ElemInfo_Shared, which is not available for PARTICLES=OFF at the moment | ||
PICLAS_POLYNOMIAL_DEGREE=1 |
8 changes: 8 additions & 0 deletions
8
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/externals.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,8 @@ | ||
! --- Externals Tool Reggie | ||
MPI = 1 , 5 | ||
externalbinary = ./hopr/build/bin/hopr , ./bin/piclas | ||
externaldirectory = pre-hopr , post-piclas-restart/ | ||
externalruntime = pre , post | ||
cmd_suffix = , ../FPC_State_000.00000000010000000.h5 | ||
|
||
nocrosscombination:MPI,externalbinary,externaldirectory,externalruntime,cmd_suffix |
119 changes: 119 additions & 0 deletions
119
regressioncheck/NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/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,119 @@ | ||
NVisu = 7 | ||
N = 6!,2,3,4 ! 7 | ||
! =============================================================================== ! | ||
! HDG | ||
! =============================================================================== ! | ||
epsCG = 1e-6!1e-66 | ||
maxIterCG = 12000 | ||
! =============================================================================== ! | ||
! Mesh | ||
! =============================================================================== ! | ||
MeshFile = ./pre-hopr/Box_mesh.h5 | ||
useCurveds = F | ||
ExactLambda = T | ||
IniExactFunc = 600 | ||
! =============================================================================== ! | ||
! OUTPUT / VISUALIZATION | ||
! =============================================================================== ! | ||
ProjectName = FPC | ||
Logging = F | ||
WriteErrorFiles = F | ||
printRandomSeeds = F | ||
DoCalcErrorNorms = F | ||
OutputErrorNormsToH5 = F | ||
! =============================================================================== ! | ||
! ANALYZE | ||
! =============================================================================== ! | ||
CalcPotentialEnergy = T | ||
! =============================================================================== ! | ||
! CALCULATION | ||
! =============================================================================== ! | ||
Field-AnalyzeStep = 2 | ||
ManualTimestep = 5e-11 | ||
tend = 10e-11 ! 100e-11 | ||
Analyze_dt = 10e-11 ! 100e-11 | ||
doPrintStatusLine = T | ||
! =============================================================================== ! | ||
! Field Boundaries | ||
! =============================================================================== ! | ||
BoundaryName = BC_Cube_left | ||
BoundaryType = (/20,1/) ! 20: activate FPC, 2: Group #1 | ||
|
||
BoundaryName = BC_Cube_right | ||
BoundaryType = (/20,2/) ! 20: activate FPC, 2: Group #2 | ||
|
||
! =============================================================================== ! | ||
! Load Balance | ||
! =============================================================================== ! | ||
DoLoadBalance = T | ||
DoInitialAutoRestart = T | ||
Load-DeviationThreshold = 1e-7 | ||
LoadBalanceMaxSteps = 1 | ||
|
||
! =============================================================================== ! | ||
! Particles | ||
! =============================================================================== ! | ||
PIC-DoDeposition = F | ||
PIC-DoInterpolation = F | ||
VisuParticles = T | ||
TrackingMethod = 3 | ||
Particles-HaloEpsVelo = 300E6 | ||
Part-maxParticleNumber = 20000 | ||
Part-nSpecies = 1 | ||
Part-Species$-MacroParticleFactor = 1 | ||
|
||
!Part-FIBGMdeltas = (/ 0.04 , 0.04 , 1e-6 /) | ||
Part-FIBGMdeltas = (/ 16.0 , 8.0 , 8.0 /) | ||
Part-FactorFIBGM = (/ 2.0 , 1.0 , 1.0 /) | ||
|
||
CalcNumSpec = T | ||
CalcMeshInfo = T | ||
! =============================================================================== ! | ||
! Particle Boundaries | ||
! =============================================================================== ! | ||
Part-nBounds = 8 | ||
|
||
Part-Boundary1-SourceName = BC_z- | ||
Part-Boundary1-Condition = reflective | ||
|
||
Part-Boundary2-SourceName = BC_z+ | ||
Part-Boundary2-Condition = reflective | ||
|
||
!Part-nPeriodicVectors = 1 | ||
|
||
Part-Boundary3-SourceName = BC_y- | ||
Part-Boundary3-Condition = reflective | ||
|
||
Part-Boundary4-SourceName = BC_y+ | ||
Part-Boundary4-Condition = reflective | ||
|
||
|
||
Part-Boundary5-SourceName = BC_x- | ||
Part-Boundary5-Condition = reflective | ||
|
||
Part-Boundary6-SourceName = BC_x+ | ||
Part-Boundary6-Condition = reflective | ||
|
||
|
||
Part-Boundary7-SourceName = BC_Cube_left | ||
Part-Boundary7-Condition = open | ||
|
||
Part-Boundary8-SourceName = BC_Cube_right | ||
Part-Boundary8-Condition = open | ||
|
||
|
||
! =============================================================================== ! | ||
! Species1 | e | ||
! =============================================================================== ! | ||
Part-Species1-MassIC = 9.1E-31 | ||
Part-Species1-ChargeIC = -4.806529902E-13 | ||
!Part-Species1-ChargeIC = 0 | ||
!nocrosscombination:N,Part-Species1-ChargeIC | ||
|
||
Part-Species1-nInits=1 | ||
Part-Species1-Init1-velocityDistribution = maxwell_lpn | ||
Part-Species1-Init1-PartDensity = 1.01e-6 ! 1.01e12 | ||
Part-Species1-Init1-SpaceIC = cell_local | ||
Part-Species1-Init1-VeloIC = 2.2e8 | ||
Part-Species1-Init1-VeloVecIC = (/0.,1.,0./) | ||
Part-Species1-Init1-MWTemperatureIC = 1e3 |
119 changes: 119 additions & 0 deletions
119
...NIG_poisson_PETSC/floating_boundary_condition_multi_FPC/post-piclas-restart/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,119 @@ | ||
NVisu = 7 | ||
N = 6!,2,3,4 ! 7 | ||
! =============================================================================== ! | ||
! HDG | ||
! =============================================================================== ! | ||
epsCG = 1e-6!1e-66 | ||
maxIterCG = 12000 | ||
! =============================================================================== ! | ||
! Mesh | ||
! =============================================================================== ! | ||
MeshFile = ../pre-hopr/Box_mesh.h5 | ||
useCurveds = F | ||
ExactLambda = T | ||
IniExactFunc = 600 | ||
! =============================================================================== ! | ||
! OUTPUT / VISUALIZATION | ||
! =============================================================================== ! | ||
ProjectName = FPC | ||
Logging = F | ||
WriteErrorFiles = F | ||
printRandomSeeds = F | ||
DoCalcErrorNorms = F | ||
OutputErrorNormsToH5 = F | ||
! =============================================================================== ! | ||
! ANALYZE | ||
! =============================================================================== ! | ||
CalcPotentialEnergy = T | ||
! =============================================================================== ! | ||
! CALCULATION | ||
! =============================================================================== ! | ||
Field-AnalyzeStep = 2 | ||
ManualTimestep = 5e-11 | ||
tend = 20e-11 ! 100e-11 | ||
Analyze_dt = 10e-11 ! 100e-11 | ||
doPrintStatusLine = T | ||
! =============================================================================== ! | ||
! Field Boundaries | ||
! =============================================================================== ! | ||
BoundaryName = BC_Cube_left | ||
BoundaryType = (/20,1/) ! 20: activate FPC, 2: Group #1 | ||
|
||
BoundaryName = BC_Cube_right | ||
BoundaryType = (/20,2/) ! 20: activate FPC, 2: Group #2 | ||
|
||
! =============================================================================== ! | ||
! Load Balance | ||
! =============================================================================== ! | ||
DoLoadBalance = T | ||
DoInitialAutoRestart = T | ||
Load-DeviationThreshold = 1e-7 | ||
LoadBalanceMaxSteps = 1 | ||
|
||
! =============================================================================== ! | ||
! Particles | ||
! =============================================================================== ! | ||
PIC-DoDeposition = F | ||
PIC-DoInterpolation = F | ||
VisuParticles = T | ||
TrackingMethod = 3 | ||
Particles-HaloEpsVelo = 300E6 | ||
Part-maxParticleNumber = 20000 | ||
Part-nSpecies = 1 | ||
Part-Species$-MacroParticleFactor = 1 | ||
|
||
!Part-FIBGMdeltas = (/ 0.04 , 0.04 , 1e-6 /) | ||
Part-FIBGMdeltas = (/ 16.0 , 8.0 , 8.0 /) | ||
Part-FactorFIBGM = (/ 2.0 , 1.0 , 1.0 /) | ||
|
||
CalcNumSpec = T | ||
CalcMeshInfo = T | ||
! =============================================================================== ! | ||
! Particle Boundaries | ||
! =============================================================================== ! | ||
Part-nBounds = 8 | ||
|
||
Part-Boundary1-SourceName = BC_z- | ||
Part-Boundary1-Condition = reflective | ||
|
||
Part-Boundary2-SourceName = BC_z+ | ||
Part-Boundary2-Condition = reflective | ||
|
||
!Part-nPeriodicVectors = 1 | ||
|
||
Part-Boundary3-SourceName = BC_y- | ||
Part-Boundary3-Condition = reflective | ||
|
||
Part-Boundary4-SourceName = BC_y+ | ||
Part-Boundary4-Condition = reflective | ||
|
||
|
||
Part-Boundary5-SourceName = BC_x- | ||
Part-Boundary5-Condition = reflective | ||
|
||
Part-Boundary6-SourceName = BC_x+ | ||
Part-Boundary6-Condition = reflective | ||
|
||
|
||
Part-Boundary7-SourceName = BC_Cube_left | ||
Part-Boundary7-Condition = open | ||
|
||
Part-Boundary8-SourceName = BC_Cube_right | ||
Part-Boundary8-Condition = open | ||
|
||
|
||
! =============================================================================== ! | ||
! Species1 | e | ||
! =============================================================================== ! | ||
Part-Species1-MassIC = 9.1E-31 | ||
Part-Species1-ChargeIC = -4.806529902E-13 | ||
!Part-Species1-ChargeIC = 0 | ||
!nocrosscombination:N,Part-Species1-ChargeIC | ||
|
||
Part-Species1-nInits=1 | ||
Part-Species1-Init1-velocityDistribution = maxwell_lpn | ||
Part-Species1-Init1-PartDensity = 1.01e-6 ! 1.01e12 | ||
Part-Species1-Init1-SpaceIC = cell_local | ||
Part-Species1-Init1-VeloIC = 2.2e8 | ||
Part-Species1-Init1-VeloVecIC = (/0.,1.,0./) | ||
Part-Species1-Init1-MWTemperatureIC = 1e3 |
Oops, something went wrong.