WRApplication
External kratos "application" for multiscale time integration.
|
Class representing a snapshot of a ModelPart state. More...
Public Member Functions | |
None | Load (self, KratosMultiphysics.ModelPart model_part) |
Load data from this snapshot to the specified model part. More... | |
None | Write (self, KratosMultiphysics.ModelPart model_part) |
Write data from the current state of the specified model part to the snapshot. More... | |
None | Erase (self, KratosMultiphysics.DataCommunicator communicator) |
Erase stored data related to this snapshot. More... | |
bool | Exists (self) |
Check whether the data related to this Snapshot has already been written. More... | |
bool | IsValid (self) |
Check whether the stored data matches the ID of the Snapshot. More... | |
typing.Type["SnapshotManager"] | GetManagerType (cls) |
Return the manager type associated with the specialized Snapshot type. More... | |
KratosMultiphysics.Parameters | GetDefaultParameters (cls) |
"Snapshot" | FromModelPart (cls, KratosMultiphysics.ModelPart model_part, KratosMultiphysics.Parameters parameters) |
int | analysis_path (self) |
int | step (self) |
WRApp.CheckpointID | id (self) |
Static Public Member Functions | |
typing.Type[SnapshotIO] | GetInputType () |
Get the class responsible for reading snapshot data. More... | |
typing.Type[SnapshotIO] | GetOutputType () |
Get the class responsible for writing snapshot data. More... | |
list | GetSolutionPath (list snapshots) |
Pick snapshots from the provided list that are part of the solution path. More... | |
Class representing a snapshot of a ModelPart state.
@classname Snapshot
A snapshot is uniquely defined by its path ID and step index for a specific analysis. The path ID indicates how many times the solution loop jumped back and continued from an earlier Checkpoint, while the step index counts the number of steps since the analysis began, disregarding steps that branched off the current analysis path.
int analysis_path | ( | self | ) |
None Erase | ( | self, | |
KratosMultiphysics.DataCommunicator | communicator | ||
) |
Erase stored data related to this snapshot.
Reimplemented in SnapshotInMemory, SnapshotFS, and HDF5Snapshot.
bool Exists | ( | self | ) |
Check whether the data related to this Snapshot has already been written.
Reimplemented in SnapshotInMemory, and SnapshotFS.
"Snapshot" FromModelPart | ( | cls, | |
KratosMultiphysics.ModelPart | model_part, | ||
KratosMultiphysics.Parameters | parameters | ||
) |
KratosMultiphysics.Parameters GetDefaultParameters | ( | cls | ) |
|
static |
Get the class responsible for reading snapshot data.
Reimplemented in SnapshotInMemory, and HDF5Snapshot.
typing.Type["SnapshotManager"] GetManagerType | ( | cls | ) |
Return the manager type associated with the specialized Snapshot type.
Reimplemented in SnapshotInMemory, and HDF5Snapshot.
|
static |
Get the class responsible for writing snapshot data.
Reimplemented in SnapshotInMemory, and HDF5Snapshot.
|
static |
Pick snapshots from the provided list that are part of the solution path.
snapshots | list of snapshots of the analysis. |
A path is assembled backtracking from the last snapshot, recreating the solution path iff the input list contains the solution path. Otherwise the assembled path is the one that has a dead-end at the last snapshot.
WRApp.CheckpointID id | ( | self | ) |
bool IsValid | ( | self | ) |
Check whether the stored data matches the ID of the Snapshot.
Reimplemented in SnapshotInMemory, and SnapshotFS.
None Load | ( | self, | |
KratosMultiphysics.ModelPart | model_part | ||
) |
Load data from this snapshot to the specified model part.
int step | ( | self | ) |
None Write | ( | self, | |
KratosMultiphysics.ModelPart | model_part | ||
) |
Write data from the current state of the specified model part to the snapshot.