Sage Modeling and Simulation Library

MaterialResourceItem Constructor (IModel, Guid, MaterialType, Double, Double, Double)

Initializes a new instance of the MaterialResourceItem class with its name being the material type name.

Namespace:  Highpoint.Sage.Materials.Chemistry
Assembly:  Sage4 (in Sage4.dll)

Syntax


public MaterialResourceItem(
	IModel model,
	Guid guid,
	MaterialType mt,
	double initialQuantity,
	double initialTemp,
	double initialCapacity
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model in which the MaterialResourceItem runs.
guid
Type: Guid
The unique identifier of the MaterialResourceItem.
mt
Type: Highpoint.Sage.Materials.Chemistry..::..MaterialType
The MaterialType of the substance managed in this MaterialResourceItem.
initialQuantity
Type: Double
The initial quantity of the substance.
initialTemp
Type: Double
The initial temperature of the substance.
initialCapacity
Type: Double
The initial capacity of the MaterialResourceItem to hold the substance.

Exceptions


ExceptionCondition
ApplicationExceptionA MaterialResourceItem cannot contain a spec with the same Guid as that of its own core material type.