Click or drag to resize

HarnessSimulation Class

A single or multi-run MHARNESS simulation.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25.Core.ExecutionSubProcessBase
    ema3d.Api.V25.Core.ExecutionHarnessSimulation

Namespace: ema3d.Api.V25.Core.Execution
Assembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntax
public sealed class HarnessSimulation : SubProcessBase

The HarnessSimulation type exposes the following members.

Properties
 NameDescription
Public propertyEndTime Gets time that the process finished or current time if process is still running.
(Inherited from SubProcessBase)
Public propertyProgress Gets the current percent completion of process [0 - 100].
(Inherited from SubProcessBase)
Public propertyStartTime Gets time that the process was started.
(Inherited from SubProcessBase)
Public propertyStatus Gets current status of the process.
(Inherited from SubProcessBase)
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from SubProcessBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodKill Kills the process.
(Inherited from SubProcessBase)
Public methodStatic memberLaunch Starts a standard MHARNESS simulation using the provided input file.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWaitForCompletion Blocks until the process finishes.
(Inherited from SubProcessBase)
Public methodWaitForCompletion(CancellationToken) Blocks until the process finishes.
(Inherited from SubProcessBase)
Top
Events
 NameDescription
Public eventMessageReceived Occurs when some message is received from the process.
(Inherited from SubProcessBase)
Top
Example
Python
from ema3d.Api.V25.Core.Execution import HarnessSimulation as HarnessSimulation
# Run simulation from filepath
_filepath = r"C:\Users\Example Simulation\Harness.inp"
_sim = HarnessSimulation.Launch(_filepath).WaitForCompletion()
See Also