Sage Modeling and Simulation Library

Mixture Methods

The Mixture type exposes the following members.

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.