Sage Modeling and Simulation Library

Mixture Members

The Mixture type exposes the following members.

Constructors


  Name Description
Public method Mixture()()()()
Default Constructor for deserialization.
Public method Mixture(String)
Creates a new instance of the Mixture class.
Public method Mixture(String, Guid)
Creates a new instance of the Mixture class.
Public method Mixture(IModel, String)
Creates a new instance of the Mixture class.
Public method Mixture(IModel, String, Guid)
Creates a new instance of the Mixture class.

Methods


  Name Description
Public method AddEnergy
Adds the specified number of joules of energy to the mixture.
Public method AddMaterial
Adds the specified material to the mixture.
Public method Clear
Removes all substances from this mixture.
Public method Clone
Clones this instance.
Public method ContainedMassOf
Returns the containeds mass of the specified MaterialType.
Public method Static member Create
Creates a mixture from the specified constituents.
Public method DeserializeFrom
Reconstitutes this object from the specified XmlSerializationContext.
Public method Equals(ISupportsMementos)
Returns true if the two mixtures are semantically equal.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetEstimatedBoilingPoint(Double)
Estimates a boiling point for the substance.
Public method GetEstimatedBoilingPoint(Double, PressureUnits)
Estimates a boiling point for the substance.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetMolarConcentration
Returns the number of moles of the specified material type that exist in a liter of the mixture.
Public method GetMoleFraction(MaterialType, MaterialType..::..Filter)
Gets the mole fraction of the specified MaterialType in this mixture, with the calculations counting only the materials that pass the MaterialType..::..Filter.
Public method GetMoleFraction(MaterialType)
Gets the mole fraction of the specified MaterialType in this mixture, with the calculations counting all present material types.
Public method GetSubstance
Gets the substance of the specified material type from the mixture that this MaterialChangeDistiller is watching.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetVaporFor
Returns an estimate of the amount and constituents of this mixture that would exist in a vapor space of the given size at the given temperature.
Public method Initialize
Initializes this mixture within the specified model. Could theoretically return an ITransitionFailureReason, but there is no way this operation can fail, so it always returns null.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method RecomputeTemperature
Recomputes the temperature of the mixture after adding in the supplemental energy.
Public method RemoveMaterial(Substance)
Removes all of the specified substance from the mixture.
Public method RemoveMaterial(Mixture)
Removes all of the specified material from the mixture.
Public method RemoveMaterial(MaterialType)
Removes all of the specified material from the mixture.
Public method RemoveMaterial(MaterialType, Double)
Removes the specified mass of the specified material from the mixture. If more is requested removed than is present, all that is present, is removed.
Public method RemoveMaterial(Double)
Removes the specified mass of the mixture in even proportions of all material types. If more is requested removed than is present, all that is present, is removed.
Public method ResumeChangeEvents
Resumes the change events. When change events are resumed, one change event will be fired if the material has changed. This prevents a cascade of change events that would be issued, for example during the processing of a reaction.
Public method SerializeTo
Stores this object to the specified XmlSerializationContext.
Public method SuspendChangeEvents
Suspends the issuance of change events. When change events are resumed, one change event will be fired if the material has changed. This prevents a cascade of change events that would be issued, for example during the processing of a reaction.
Public method ToString()()()()
Returns a String that represents the current Mixture.
Public method ToString(String, String)
Returns a String that represents the current IMaterial. Uses caller-supplied format strings in forming the numbers representing mass and temperature.
Public method ToStringWithoutTemperature()()()()
Returns a String that represents the current IMaterial.
Public method ToStringWithoutTemperature(String)
Returns a String that represents the current IMaterial.

Operators


  Name Description
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Mixture to WriteLock)
Obtains the WriteLock that represents this mixture.

Properties


  Name Description
Public property Constituents
Gets the constituents (Materials) that comprise this mixture.
Public property Density
Gets the density of the material in kilograms per liter.
Public property Guid
Gets the GUID of the Mixture.
Public property HasChanged
Reports whether the Mixture has changed relative to its memento since the last memento was recorded.
Public property IsWritable
Indicates if write operations on this equipment are permitted.
Public property LatentHeatOfVaporization
The Latent Heat Of Vaporization of the mixture, in Joules per kilogram.
Public property Mass
Gets the mass of the mixture.
Public property MaterialType
Gets the material type of the mixture - always null.
Public property Memento
Retrieves a memento from the mixture.
Public property Model
The model that owns this object, or from which this object gets time, etc. data.
Public property Name
Gets the name.
Public property ReportsOwnChanges
Indicates whether this Mixture can report memento changes to its parent. (Mementos can contain other mementos.)
Public property SpecificHeat
The specific heat of the mixture, in Joules per kilogram degree-K.
Public property Tag
Gets or sets the tag, which is a user-supplied data element.
Public property Temperature
Gets or sets the temperature of the mixture.
Public property Updater
Public property Volume
Gets or sets the volume of the mixture, in liters. If the mixture is a non-gaseous mixture, then gases are presumed to be in solution, and therefore to have zero incremental volume. If the mixture is all gaseous, though, the volumes of the simply gases are simply added together.

Events


  Name Description
Public event MaterialChanged
Fired after a change in mass, constituents or temperature has taken place in this mixture.
Public event MementoChangeEvent
Fired when the memento changes.
Public event OnReactionGoingToHappen
Fires before a reaction takes place in this mixture.
Public event OnReactionHappened
Fires after a reaction has taken place in this mixture.