Click or drag to resize

RestartSimulation Class

Generates and runs a simulation with initial conditions at a given timestep from a previous simulation's results.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V26.Charging.ExecutionRestartSimulation

Namespace: ema3d.Api.V26.Charging.Execution
Assembly: ema3d.Api.V26 (in ema3d.Api.V26.dll) Version: 0.0.0.0
Syntax
public sealed class RestartSimulation

The RestartSimulation type exposes the following members.

Constructors
 NameDescription
Public methodRestartSimulation 
Top
Methods
 NameDescription
Public methodStatic memberCreate Creates a RestartSimulation instance.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Extracts initial conditions from the given HDF5 file with specified timesteps.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Exported restart folder is created based on input file path.
Example
Python
from ema3d.Api.V26.Charging.Execution import RestartSimulation

h5_path = r"C:\Documents\Restart Simulation Model\restart_model\N2_arcing_model\1\CHARGE_results.h5"
time_steps = 5

rs = RestartSimulation.Create()
result = rs.Execute(h5_path, time_steps)
See Also