Sage Modeling and Simulation Library

MaterialService..::..AddCompartment Method (IModel, Guid, Guid, Double, Double, Double, Guid)

Adds a compartment for the specified material type, specifications, initial quantity, temperature & capacity. Creates a MaterialResourceItem which will be the provider and/or receiver of material of the specified type and specifications.

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

Syntax


public void AddCompartment(
	IModel model,
	Guid materialTypeGuid,
	Guid materialSpecificationGuid,
	double initialQuantity,
	double initialTemp,
	double initialCapacity,
	Guid compartmentGuid
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model that contains the material catalog that holds the material type whose guid is listed below.
materialTypeGuid
Type: Guid
The guid of the intended material type which will be in this compartment.
materialSpecificationGuid
Type: Guid
The single Guid that denotes the material specification of material in this compartment.
initialQuantity
Type: Double
How many kilograms of this material will be in this compartment to begin with.
initialTemp
Type: Double
The initial temperature of the material in the new material compartment.
initialCapacity
Type: Double
How many kilograms of the material this compartment will be able to hold.
compartmentGuid
Type: Guid
The guid that will identify this compartment.