-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build PyPIConGPu and PICMI interfaces
- Loading branch information
1 parent
b38a6e1
commit 472fb9c
Showing
12 changed files
with
152 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ sympy >= 1.9 | |
chevron >= 0.13.1 | ||
jsonschema == 4.17.3 | ||
scipy >= 1.7.1 | ||
pydantic >= 2.6.4 | ||
picmistandard >= 0.27.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
""" | ||
This file is part of the PIConGPU. | ||
Copyright 2024 PIConGPU contributors | ||
Authors: Brian Edward Marre | ||
License: GPLv3+ | ||
""" | ||
|
||
import pydantic | ||
import typing | ||
|
||
from .rendering import RenderedObject | ||
|
||
|
||
class MovingWindow(RenderedObject, pydantic.BaseModel): | ||
move_point: float | ||
""" | ||
point a light ray reaches in y from the left border until we begin sliding the simulation window with the speed of | ||
light | ||
in multiples of the simulation window size | ||
@attention if moving window is active, one gpu in y direction is reserved for initializing new spaces, | ||
thereby reducing the simulation window size according | ||
""" | ||
|
||
stop_iteration: typing.Optional[int] | ||
"""iteration, at which to stop moving the simulation window""" | ||
|
||
def check(self) -> None: | ||
if self.move_point < 0.0: | ||
raise ValueError("window_move point must be >= 0.") | ||
if self.stop_iteration <= 0: | ||
raise ValueError("stop iteration must be > 0.") | ||
|
||
def _get_serialized(self) -> dict: | ||
return {"move_point": self.move_point, "stop_iteration": self.stop_iteration} |
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
21 changes: 0 additions & 21 deletions
21
share/picongpu/pypicongpu/schema/movingWindowVelocity.json
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
share/picongpu/pypicongpu/schema/movingwindow.MovingWindow.json
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,24 @@ | ||
{ | ||
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.movingwindow.MovingWindow", | ||
"type": "object", | ||
"description": "moving window setting of picongpu", | ||
"unevaluatedProperties": false, | ||
"required": ["move_point", "stop_iteration"], | ||
"properties": { | ||
"move_point": { | ||
"type": "number", | ||
"minimum" : 0 | ||
}, | ||
"stop_iteration": { | ||
"anyOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "integer", | ||
"exclusiveMinimum" : 0 | ||
} | ||
] | ||
} | ||
} | ||
} |
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
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