-
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.RotRefFrame.Subcycling' into 'master.dev'
[feature.RotRefFrame.Subcycling] Feature.rot ref frame.subcycling Closes #235 See merge request piclas/piclas!862
- Loading branch information
Showing
24 changed files
with
546 additions
and
177 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
10 changes: 10 additions & 0 deletions
10
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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,10 @@ | ||
! =============================================================================== ! | ||
! Species1, O2 | ||
! =============================================================================== ! | ||
Part-Species1-InteractionID = 2 | ||
Part-Species1-Tref = 273 | ||
Part-Species1-dref = 4.07E-10 | ||
Part-Species1-omega=0.27 | ||
Part-Species1-CharaTempRot=2.1 | ||
Part-Species1-CharaTempVib=2272.18 | ||
Part-Species1-Ediss_eV=5.17 |
4 changes: 4 additions & 0 deletions
4
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/ParticlePosition_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,4 @@ | ||
"001-time","PartNum","PartPosX","PartPosY","PartPosZ","PartVelX","PartVelY","PartVelZ","gamma","Element" | ||
0.0000000000000000E+000,0.1000000000000000E+001,-.2500000000000000E+000,0.0000000000000000E+000,0.0000000000000000E+000,0.7071067811865476E+001,0.7071067811865476E+001,0.0000000000000000E+000,0.1000000000000001E+001,0.3000000000000000E+001 | ||
0.2000000000000000E-001,0.1000000000000000E+001,-.4716580473546355E-002,0.1782332060813231E+000,0.0000000000000000E+000,0.7071067811865476E+001,0.7071067811865476E+001,0.0000000000000000E+000,0.1000000000000001E+001,0.1000000000000000E+001 | ||
0.4000000000000000E-001,0.1000000000000000E+001,-.1909047836164587E-001,0.4039505911426143E+000,0.0000000000000000E+000,-.1268564898553164E+002,0.7071067811865476E+001,0.0000000000000000E+000,0.1000000000000001E+001,0.1000000000000000E+001 |
6 changes: 6 additions & 0 deletions
6
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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 columns | ||
compare_column_file = ParticlePosition.csv | ||
compare_column_reference_file = ParticlePosition_Ref.csv | ||
compare_column_index = 0,2,3 ! column index for comparison (starts at 0) | ||
compare_column_tolerance_value = 0.0001 ! tolerance (depends on machine accuracy and MPI) | ||
compare_column_tolerance_type = relative ! absolute or relative tolerance |
2 changes: 2 additions & 0 deletions
2
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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 | ||
cmd_suffix=DSMC.ini |
7 changes: 7 additions & 0 deletions
7
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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,7 @@ | ||
! --- Externals Tool Reggie | ||
MPI = 1 | ||
externalbinary = ./hopr/build/bin/hopr | ||
externaldirectory = hopr.ini | ||
externalruntime = pre | ||
|
||
nocrosscombination:MPI,externalbinary,externaldirectory,externalruntime |
55 changes: 55 additions & 0 deletions
55
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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,55 @@ | ||
ProjectName = cube | ||
Debugvisu = T | ||
DebugVisuLevel=2 | ||
NVisu =1 | ||
Mode =1 | ||
|
||
DEFVAR = (REAL): minus_x = -0.5 | ||
DEFVAR = (REAL): plus_x = 0.5 | ||
DEFVAR = (REAL): top_x_incline = 0.0 | ||
|
||
DEFVAR = (REAL): minus_y = -0.5 | ||
DEFVAR = (REAL): plus_y = 0.5 | ||
|
||
DEFVAR = (REAL): minus_z = -0.1 | ||
DEFVAR = (REAL): plus_z = 0.1 | ||
|
||
nZones = 3 | ||
|
||
Corner =(/minus_x,minus_y,minus_z ,, 0.0,minus_y,minus_z ,, 0.0,0.0,minus_z ,, minus_x,0.0,minus_z ,, minus_x,minus_y,plus_z ,, 0,minus_y,plus_z ,, 0.0,0.0,plus_z ,, minus_x,0.0,plus_z /) | ||
nElems =(/1,1,1/) | ||
BCIndex =(/6 ,4 ,0 ,0 ,2 ,5/) | ||
elemtype =108 | ||
|
||
Corner =(/minus_x,0.0,minus_z ,, 0.0,0.0,minus_z ,,top_x_incline,plus_y,minus_z ,, minus_x,plus_y,minus_z ,, minus_x,0.0,plus_z ,,0.0,0.0,plus_z ,, top_x_incline,plus_y,plus_z ,, minus_x,plus_y,plus_z /) | ||
nElems =(/1,1,1/) | ||
BCIndex =(/6 ,0 ,7 ,3 ,2 ,5/) | ||
elemtype =108 | ||
|
||
Corner =(/0.0,minus_y,minus_z ,, plus_x,minus_y,minus_z ,, plus_x,0.0,minus_z ,, 0.0,0.0,minus_z ,, 0.0,minus_y,plus_z ,, plus_x,minus_y,plus_z ,, plus_x,0.0,plus_z ,, 0.0,0.0,plus_z /) | ||
nElems =(/1,1,1/) | ||
BCIndex =(/6 ,4 ,1 ,7 ,0 ,5/) | ||
elemtype =108 | ||
|
||
|
||
|
||
|
||
nUserDefinedBoundaries=7 | ||
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/) | ||
BoundaryName=BC_Wall | ||
BoundaryType=(/4,0,0,0/) | ||
|
||
postscalemesh=true | ||
!meshscale=1e-5 | ||
jacobiantolerance=1e-20 |
99 changes: 99 additions & 0 deletions
99
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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,99 @@ | ||
! =============================================================================== ! | ||
! EQUATION (linearscalaradvection) | ||
! =============================================================================== ! | ||
IniExactFunc = 0 | ||
! =============================================================================== ! | ||
! DISCRETIZATION | ||
! =============================================================================== ! | ||
N = 1 ! Polynomial degree | ||
NAnalyze = 1 ! Number of analyze points | ||
! =============================================================================== ! | ||
! MESH | ||
! =============================================================================== ! | ||
MeshFile = cube_mesh.h5 | ||
useCurveds = T | ||
! =============================================================================== ! | ||
! OUTPUT / VISUALIZATION | ||
! =============================================================================== ! | ||
ProjectName = RotRefFrame | ||
Logging = F | ||
WriteErrorFiles = F | ||
IterDisplayStep = 1 | ||
DoCalcErrorNorms = T | ||
Part-AnalyzeStep = 10 | ||
! =============================================================================== ! | ||
! CALCULATION | ||
! =============================================================================== ! | ||
ManualTimeStep = 2E-3 | ||
tend = 4E-2 ! End time | ||
Analyze_dt = 1.0 ! Timestep of analyze outputs | ||
CFLscale = 0.5 | ||
|
||
Part-RotRefFrame-UseSubCycling = T | ||
Part-RotRefFrame-SubCyclingSteps = 200 | ||
! =============================================================================== ! | ||
! BOUNDARIES | ||
! =============================================================================== ! | ||
Part-nBounds=7 | ||
Part-Boundary1-SourceName=BC_Xplus | ||
Part-Boundary1-Condition=open | ||
Part-Boundary2-SourceName=BC_Xminus | ||
Part-Boundary2-Condition=open | ||
Part-Boundary3-SourceName=BC_Yplus | ||
Part-Boundary3-Condition=open | ||
Part-Boundary4-SourceName=BC_Yminus | ||
Part-Boundary4-Condition=open | ||
Part-Boundary5-SourceName=BC_Zplus | ||
Part-Boundary5-Condition=open | ||
Part-Boundary6-SourceName=BC_Zminus | ||
Part-Boundary6-Condition=open | ||
Part-Boundary7-SourceName=BC_Wall | ||
Part-Boundary7-Condition=reflective | ||
Part-Boundary7-WallTemp = 1.0 | ||
Part-Boundary7-MomentumACC = 0. | ||
Part-Boundary7-TransACC = 0. | ||
Part-Boundary7-VibACC = 0. | ||
Part-Boundary7-RotACC = 0. | ||
Part-Boundary7-ElecACC = 0. | ||
Part-Boundary7-RotVelo = T | ||
Part-Boundary7-RotAxis = 3 | ||
Part-Boundary7-RotFreq = 5 | ||
Part-FIBGMdeltas=(/0.5,0.5,0.2/) | ||
! =============================================================================== ! | ||
! Tracking | ||
! =============================================================================== ! | ||
TrackingMethod = triatracking | ||
! =============================================================================== ! | ||
! PARTICLES | ||
! =============================================================================== ! | ||
Part-maxParticleNumber=10 | ||
Part-nSpecies=1 | ||
Part-Species1-ChargeIC=0. | ||
Part-Species1-MassIC=1. | ||
Part-Species1-MacroParticleFactor=1E0 | ||
|
||
Part-Species1-nInits = 1 | ||
Part-Species1-Init1-SpaceIC=point | ||
Part-Species1-Init1-ParticleNumber=1 | ||
Part-Species1-Init1-BasePointIC=(/-0.25,0.0,0./) | ||
Part-Species1-Init1-NormalIC=(/0.,0.,0.0/) | ||
Part-Species1-Init1-velocityDistribution=constant | ||
Part-Species1-Init1-VeloIC=10. | ||
Part-Species1-Init1-VeloVecIC=(/1.0,1.0,0.0/) | ||
! =============================================================================== ! | ||
! Analysis | ||
! =============================================================================== ! | ||
Part-TrackPosition = T | ||
! =============================================================================== ! | ||
! DSMC | ||
! =============================================================================== ! | ||
UseDSMC=true | ||
Particles-DSMC-CollisMode=0 ! Collisionless flow | ||
Part-NumberOfRandomSeeds =2 | ||
Particles-RandomSeed1= 1 | ||
Particles-RandomSeed2= 2 | ||
Particles-HaloEpsVelo=2 | ||
|
||
Part-UseRotationalReferenceFrame = T | ||
Part-RotRefFrame-Axis = 3 | ||
Part-RotRefFrame-Frequency = 5 |
5 changes: 5 additions & 0 deletions
5
regressioncheck/CHE_DSMC/Rotational_Reference_Frame_Subcycling/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,5 @@ | ||
# Rotational frame of reference: Subcycling | ||
* Frame of reference is rotating with 5 revolutions per second | ||
* A single particle is initially placed at coordinates (x,y) = (-0.25,-0.0) with a velocity vector of (10,10,0). It is anticipated to traverse a circular-like trajectory within the rotating frame of reference due to fictitious forces. | ||
* A wall, rotating synchronously with the frame of reference, induces a specular reflection upon collision. | ||
* A relatively large time step is employed (Delta_t=2E-3). Reference positions are calculated using a smaller time step (1E-5). Utilization of a subcycling with 200 substeps ensures identical positions in the regression test as in the reference case. Disabling subcycling results in failure of the regression test. |
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.