Skip to content

Commit

Permalink
add moving window config option to PyPIConGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
mafshari64 authored and BrianMarre committed Jul 16, 2024
1 parent 4fdb872 commit 3b8f57c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
21 changes: 21 additions & 0 deletions share/picongpu/pypicongpu/schema/movingWindowVelocity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.movingWindowVelocity",
"type": "object",
"description": "Describes the velocity of the moving window in the simulation.",
"unevaluatedProperties": false,
"required": ["x", "y", "z"],
"properties": {
"x": {
"type": "number",
"exclusiveMinimum" : 0
},
"y": {
"type": "number",
"exclusiveMinimum" : 0
},
"z": {
"type": "number",
"exclusiveMinimum" : 0
}
}
}
11 changes: 11 additions & 0 deletions share/picongpu/pypicongpu/schema/simulation.Simulation.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@
}
]
},
"moving_window_velocity": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.movingWindowVelocity"
}
]
},
"species_initmanager": {
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.initmanager.InitManager"
},
Expand Down Expand Up @@ -71,6 +81,7 @@
"solver",
"grid",
"laser",
"moving_window_velocity",
"customuserinput"
],
"unevaluatedProperties": false
Expand Down
12 changes: 9 additions & 3 deletions share/picongpu/pypicongpu/template/etc/picongpu/N.cfg.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,17 @@ TBG_plugins="!TBG_pypicongpu_output"

TBG_deviceDist="!TBG_devices_x !TBG_devices_y !TBG_devices_z"

TBG_programParams="-d !TBG_deviceDist \
TBG_programParams="
{{#moving_window_velocity}}
--moving_window_velocity_X = {{{x}}} \
--moving_window_velocity_Y = {{{y}}} \
--moving_window_velocity_Z = {{{z}}} \
{{/moving_window_velocity}}
-d !TBG_deviceDist \
-g !TBG_gridSize \
-s !TBG_steps \
!TBG_periodic \
!TBG_plugins \
!TBG_periodic \
!TBG_plugins \
--versionOnce"

# TOTAL number of devices
Expand Down

0 comments on commit 3b8f57c

Please sign in to comment.