-
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.multiple.time.dependent.coils' into 'master.dev'
Allow more than 1 time-dependent coil in superB and consider different amplitude and phase See merge request piclas/piclas!618
- Loading branch information
Showing
12 changed files
with
189 additions
and
21 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
6 changes: 6 additions & 0 deletions
6
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/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 @@ | ||
! hdf5 diff | ||
!h5diff_file = SuperB_CircularCoil_BGField.h5 | ||
!h5diff_reference_file = SuperB_CircularCoil_BGField_reference.h5 | ||
!5diff_data_set = DG_Solution\sBGField ! data set name in h5diff_file and h5diff_reference_file | ||
!h5diff_tolerance_value = 1.0e-5 | ||
!h5diff_tolerance_type = relative |
1 change: 1 addition & 0 deletions
1
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/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 @@ | ||
MPI=1,4 |
Binary file added
BIN
+18.2 KB
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/cube_mesh.h5
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/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,38 @@ | ||
!=========================================================================================================================== | ||
DEFVAR = (REAL): minus_x = 0.0 | ||
DEFVAR = (REAL): plus_x = 1.0 | ||
|
||
DEFVAR = (REAL): minus_y = 0.0 | ||
DEFVAR = (REAL): plus_y = 1.0 | ||
|
||
DEFVAR = (REAL): minus_z = 0.0 | ||
DEFVAR = (REAL): plus_z = 1.0 | ||
!=========================================================================================================================== | ||
ProjectName = cube | ||
Debugvisu = T | ||
DebugVisuLevel = 2 | ||
NVisu = 1 | ||
Mode = 1 | ||
|
||
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 = (/3,3,3/) | ||
elemtype = 108 | ||
|
||
BCIndex = (/6 ,4 ,1 ,3 ,2 ,5/) | ||
! = (/z-,y-,x+,y+,x-,z+/) | ||
nZones = 1 | ||
|
||
! BCs | ||
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/) |
111 changes: 111 additions & 0 deletions
111
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/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,111 @@ | ||
! =============================================================================== ! | ||
! EQUATION (linearscalaradvection) | ||
! =============================================================================== ! | ||
IniExactFunc = 0 | ||
! =============================================================================== ! | ||
! DISCRETIZATION | ||
! =============================================================================== ! | ||
N = 3 ! Polynomial degree | ||
!NVisu = 1 | ||
!NAnalyze = 1 ! Number of analyze points | ||
! =============================================================================== ! | ||
! MESH | ||
! =============================================================================== ! | ||
MeshFile = cube_mesh.h5 | ||
useCurveds = F | ||
TrackingMethod = triatracking | ||
! =============================================================================== ! | ||
! OUTPUT / VISUALIZATION | ||
! =============================================================================== ! | ||
ProjectName = SuperB_CircularCoil | ||
IterDisplayStep = 1 | ||
Part-AnalyzeStep = 1 | ||
! =============================================================================== ! | ||
! LOAD BALANCE | ||
! =============================================================================== ! | ||
DoLoadBalance = T | ||
DoInitialAutoRestart = T | ||
LoadBalanceMaxSteps = 1 | ||
Load-DeviationThreshold = 1E-9 | ||
! =============================================================================== ! | ||
! CALCULATION | ||
! =============================================================================== ! | ||
tend = 1.0E-8 | ||
Analyze_dt = 1.0E-8 | ||
CFLscale = 0.2 ! Scaling of theoretical CFL number | ||
! =============================================================================== ! | ||
! SuperB | ||
! =============================================================================== ! | ||
PIC-BG-Field = T | ||
|
||
PIC-CalcBField-OutputVTK = T ! output the magnet or coil geometries for visualization | ||
|
||
NumOfCoils = 3 | ||
|
||
! --- Coil 1 | ||
Coil1-Type = circle | ||
Coil1-BasePoint = (/0.5,0.5,0.0/) | ||
Coil1-LengthVector = (/0.,0.,0.2/) | ||
Coil1-Current = 1.e6 | ||
Coil1-Radius = 0.9 | ||
Coil1-LoopNum = 10 | ||
Coil1-PointsPerLoop = 20 | ||
Coil1-AxisVec1 = (/0.,0.,1.0/) | ||
Coil1-TimeDepCoil = T | ||
Coil1-CurrentFrequency = 1e8 | ||
Coil1-CurrentPhase = 0. | ||
|
||
! --- Coil 2 | ||
Coil2-Type = circle | ||
Coil2-BasePoint = (/0.5,0.5,0.4/) | ||
Coil2-LengthVector = (/0.,0.,0.2/) | ||
Coil2-Current = 1.e6 | ||
Coil2-Radius = 0.9 | ||
Coil2-LoopNum = 10 | ||
Coil2-PointsPerLoop = 20 | ||
Coil2-AxisVec1 = (/0.,0.,1.0/) | ||
Coil2-TimeDepCoil = T | ||
Coil2-CurrentFrequency = 1e8 | ||
Coil2-CurrentPhase = 2.0943951023932 ! 120° | ||
|
||
! --- Coil 3 | ||
Coil3-Type = circle | ||
Coil3-BasePoint = (/0.5,0.5,0.8/) | ||
Coil3-LengthVector = (/0.,0.,0.2/) | ||
Coil3-Current = 1.e6 | ||
Coil3-Radius = 0.9 | ||
Coil3-LoopNum = 10 | ||
Coil3-PointsPerLoop = 20 | ||
Coil3-AxisVec1 = (/0.,0.,1.0/) | ||
Coil3-TimeDepCoil = T | ||
Coil3-CurrentFrequency = 1e8 | ||
Coil3-CurrentPhase = 4.18879020478639 ! 240° | ||
|
||
nTimePoints = 31 | ||
! =============================================================================== ! | ||
! PARTICLES | ||
! =============================================================================== ! | ||
Part-maxParticleNumber = 1 | ||
Part-nSpecies = 1 | ||
Part-nBounds = 6 | ||
Part-Boundary1-SourceName = BC_Xplus | ||
Part-Boundary1-Condition = symmetric | ||
Part-Boundary2-SourceName = BC_Xminus | ||
Part-Boundary2-Condition = symmetric | ||
Part-Boundary3-SourceName = BC_Yplus | ||
Part-Boundary3-Condition = symmetric | ||
Part-Boundary4-SourceName = BC_Yminus | ||
Part-Boundary4-Condition = symmetric | ||
Part-Boundary5-SourceName = BC_Zplus | ||
Part-Boundary5-Condition = symmetric | ||
Part-Boundary6-SourceName = BC_Zminus | ||
Part-Boundary6-Condition = symmetric | ||
Part-FIBGMdeltas = (/0.1,0.1,0.1/) | ||
Part-Species1-ChargeIC = 0. | ||
Part-Species1-MassIC = 1. | ||
Part-Species1-MacroParticleFactor = 1. | ||
! =============================================================================== ! | ||
! DSMC | ||
! =============================================================================== ! | ||
ManualTimeStep= 1.0E-9 | ||
Particles-HaloEpsVelo = 2.0E+03 |
6 changes: 6 additions & 0 deletions
6
regressioncheck/NIG_SuperB/CircularCoilTimeDependentMulti/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,6 @@ | ||
# SuperB: Circular coils (time-dependent) | ||
- Magnetic field of a three circular coils with a current of 1e6 A that changes in time with a sin function | ||
- The three different coils must have the same frequency but have different phases in this example (shifted by 120 and 240 degrees) | ||
- Output of DG_Solution field to SuperB_CircularCoil_BGField.h5 with additional dimension that accounts for temporal change | ||
- When running this reggie with piclas and MPI=4, the field is created and the read-in when the automatic load balance is performed | ||
after the first time step |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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