Click or drag to resize

PropertyPackagesimulationContext Property

Allows the PME to convey the PMC a reference to the former’s simulation context.

Namespace: DWSIM.Thermodynamics.PropertyPackages
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
public virtual Object simulationContext { set; }
Request Example View Source

Property Value

Object
The reference to the PME’s simulation context class. For the PMC to use this class, this reference will have to be converted to each of the defined CO Simulation Context interfaces.

Implements

ICapeUtilities.simulationContext
Remarks
The simulation context will be PME objects which will expose a given set of CO interfaces. Each of these interfaces will allow the PMC to call back the PME in order to benefit from its exposed services (such as creation of material templates, diagnostics or measurement unit conversion). If the PMC does not support accessing the simulation context, it is recommended to raise the ECapeNoImpl error. Initially, this method was only present in the ICapeUnit interface. Since ICapeUtilities.SetSimulationContext is now available for any kind of PMC, ICapeUnit. SetSimulationContext is deprecated.
See Also