Click or drag to resize

MaterialStream Class

Inheritance Hierarchy
SystemObject
  DWSIM.SharedClasses.UnitOperationsBaseClass
    DWSIM.Thermodynamics.StreamsMaterialStream

Namespace: DWSIM.Thermodynamics.Streams
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
[SerializableAttribute]
public class MaterialStream : BaseClass, 
	ICapeIdentification, ICapeThermoMaterialObject, ICapeThermoCalculationRoutine, ICapeThermoEquilibriumServer, ICapeThermoPropertyPackage, 
	ICapeThermoMaterialTemplate, ICapeThermoMaterial, ICapeThermoCompounds, ICapeThermoPhases, ICapeThermoUniversalConstant, 
	ICapeThermoPropertyRoutine, ICapeThermoEquilibriumRoutine, ICapeThermoMaterialContext, ECapeUser, ECapeUnknown, 
	ECapeRoot, IMaterialStream
Request Example View Source

The MaterialStream type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyAdditionalSolidPhaseProperties 
Public propertyAdjustVarType If an Adjust object is attached to this object, returns a variable describing how this object is used by it (manipulated, controlled or reference).
(Inherited from BaseClass)
Public propertyAnnotation
(Inherited from BaseClass)
Public propertyAtEquilibrium Gets or sets if this stream is at thermodynamic equilbirium or not.
Public propertyAttachedAdjustId If an Adjust object is attached to this object, returns its ID.
(Inherited from BaseClass)
Public propertyAttachedSpecId If an Specification object is attached to this object, returns its ID.
(Inherited from BaseClass)
Public propertyAttachedUtilities
(Inherited from BaseClass)
Public propertyCalculated
(Inherited from BaseClass)
Public propertyCanUsePreviousResults
(Inherited from BaseClass)
Public propertycode 
Public propertyComponentDescription
(Overrides BaseClassComponentDescription)
Public propertyComponentIds Returns the list of compound IDs of a given Material Object.
Public propertyComponentName
(Overrides BaseClassComponentName)
Public propertyCompositionBasis 
Public propertyCreateChartAction
(Inherited from BaseClass)
Public propertyDebugMode
(Inherited from BaseClass)
Public propertyDebugText
(Inherited from BaseClass)
Public propertyDefinedFlow 
Public propertydescription 
Public propertyDetailedDebugReport
(Inherited from BaseClass)
Public propertyDynamicsOnly
(Inherited from BaseClass)
Public propertyDynamicsSpec
(Inherited from BaseClass)
Public propertyEditorState 
Public propertyEnergyFlow Energy Flow property. Only implemented for Energy Streams.
(Inherited from BaseClass)
Public propertyErrorMessage Gets or sets the error message regarding the last calculation attempt.
(Inherited from BaseClass)
Public propertyExtraProperties
(Inherited from BaseClass)
Public propertyExtraPropertiesDescriptions
(Inherited from BaseClass)
Public propertyExtraPropertiesTypes
(Inherited from BaseClass)
Public propertyExtraPropertiesUnitTypes
(Inherited from BaseClass)
Public propertyFloatingTableAmountBasis 
Public propertyFlowSheet Gets the current flowsheet where this object is located.
(Inherited from BaseClass)
Public propertyFlowsheet1 
Public propertyForcePhase 
Public propertyGHGEmissionData
(Inherited from BaseClass)
Public propertyGraphicObject Gets or sets the graphic object representation of this object in the flowsheet.
(Inherited from BaseClass)
Public propertyHasPropertiesForDynamicMode
(Overrides BaseClassHasPropertiesForDynamicMode)
Public propertyInputComposition 
Public propertyinterfaceName 
Public propertyIsAdjustAttached Checks if an Adjust operation is attached to this object.
(Inherited from BaseClass)
Public propertyIsDirty
(Inherited from BaseClass)
Public propertyIsElectrolyteStream 
Public propertyIsFunctional
(Inherited from BaseClass)
Public propertyIsSink
(Inherited from BaseClass)
Public propertyIsSource
(Inherited from BaseClass)
Public propertyIsSpecAttached Checks if an Specification operation is attached to this object.
(Inherited from BaseClass)
Public propertyLastSolutionInputData 
Public propertyLastSolutionInputSnapshot
(Inherited from BaseClass)
Public propertyLastUpdated
(Inherited from BaseClass)
Public propertyMaximumAllowableDynamicMassFlowRate 
Public propertyMobileCompatible
(Overrides BaseClassMobileCompatible)
Public propertymoreInfo 
Public propertyName Object's Unique ID (Name)
(Inherited from BaseClass)
Public propertyName2 
Public propertyObjectClass
(Overrides BaseClassObjectClass)
Public propertyoperation 
Public propertyOverrideCalculationRoutine
(Inherited from BaseClass)
Public propertyOverrideSingleCompoundFlashBehavior Use this property to disable automatic PH-Flash for single-compound streams connected to unit operations. Default is 'False'.
Public propertyPhaseIds It returns the phases existing in the Material Object at that moment.
Public propertyPhases Gets the collection of phases in this stream.
(Overrides BaseClassPhases)
Public propertyPhasesArray 
Public propertyPreferredFlashAlgorithmTag
(Inherited from BaseClass)
Public propertyProductAssembly
(Inherited from BaseClass)
Public propertyProductAuthor
(Inherited from BaseClass)
Public propertyProductContactInfo
(Inherited from BaseClass)
Public propertyProductDescription
(Inherited from BaseClass)
Public propertyProductName
(Inherited from BaseClass)
Public propertyProductPage
(Inherited from BaseClass)
Public propertyProductVersion
(Inherited from BaseClass)
Public propertyPropertyPackage Gets or sets the associated Property Package for this stream.
Public propertyReferenceSolvent 
Public propertyscope 
Public propertySolidParticleData 
Public propertySpecType 
Public propertySpecVarType If an Specification object is attached to this object, returns a variable describing how this object is used by it (target or source).
(Inherited from BaseClass)
Public propertyStoreDetailedDebugReport
(Inherited from BaseClass)
Public propertySupportsDynamicMode
(Overrides BaseClassSupportsDynamicMode)
Public propertyTotalEnergyFlow 
Public propertyUserDefinedChartNames
(Inherited from BaseClass)
Public propertyVisible
(Inherited from BaseClass)
Top
Methods
 NameDescription
Private method_GetComponentList 
Public methodAdd Adds a material stream to this one, returning the resulting mixed stream, leaving this instance unmodifed.
Public methodAddDynamicProperty
(Inherited from BaseClass)
Public methodAddExtraProperty
(Inherited from BaseClass)
Public methodAppendDebugLine
(Inherited from BaseClass)
Public methodAssign Copies basic properties from another stream.
Public methodAssignFromPhase Assign properties from another phase in another stream.
Public methodAssignProps Copies phase properties from another stream.
Public methodAssignSolidData 
Public methodAvailableProps Gets a list of properties that have been calculated.
Public methodCalcAndGetLnPhi This method is used to calculate the natural logarithm of the fugacity coefficients (and optionally their derivatives) in a single Phase mixture. The values of temperature, pressure and composition are specified in the argument list and the results are also returned through the argument list.
Public methodCalcEquilibrium This method is responsible for calculating a flash or delegating flash calculations to the associated Property Package or Equilibrium Server.
Public methodCalcEquilibrium1 CalcEquilibrium is used to calculate the amounts and compositions of Phases at equilibrium. CalcEquilibrium will calculate temperature and/or pressure if these are not among the two specifications that are mandatory for each Equilibrium Calculation considered.
Public methodCalcEquilibrium2 
Public methodCalcEquilibrium3 
Public methodCalcOverallCompMassFractions 
Public methodCalcOverallCompMoleFractions 
Public methodCalcOverallMolecularWeight 
Public methodCalcPhaseMassComposition 
Public methodCalcProp This method is responsible for doing all property calculations or delegating these calculations to the associated Property Package.
Public methodCalcProp1 
Public methodCalcProp2 
Public methodCalcSinglePhaseProp CalcSinglePhaseProp is used to calculate properties and property derivatives of a mixture in a single Phase at the current values of temperature, pressure and composition set in the Material Object. CalcSinglePhaseProp does not perform phase Equilibrium Calculations.
Public methodCalcTwoPhaseProp CalcTwoPhaseProp is used to calculate mixture properties and property derivatives that depend on two Phases at the current values of temperature, pressure and composition set in the Material Object. It does not perform Equilibrium Calculations.
Public methodCalculate(Object)
(Overrides BaseClassCalculate(Object))
Public methodCalculate(Boolean, Boolean) Calculates equilibrium and/or properties for this stream.
Public methodCheckDirtyStatus
(Overrides BaseClassCheckDirtyStatus)
Public methodCheckEquilibriumSpec Checks whether the Property Package can support a particular type of Equilibrium Calculation.
Public methodCheckSinglePhasePropSpec Checks whether it is possible to calculate a property with the CalcSinglePhaseProp method for a given Phase.
Public methodCheckSpec Checks if a value is valid.
(Inherited from BaseClass)
Public methodCheckTwoPhasePropSpec Checks whether it is possible to calculate a property with the CalcTwoPhaseProp method for a given set of Phases.
Public methodClear Clears the basic phase properties of this stream.
Public methodClearAllProps Remove all stored Physical Property values.
Public methodClearCalculatedProps Clear all calculated props on this stream.
Public methodClearExtraProperties
(Inherited from BaseClass)
Public methodClearPropertyPackageInstance
(Overrides BaseClassClearPropertyPackageInstance)
Public methodClone
(Overrides BaseClassClone)
Public methodClone1 
Public methodCloneJSON
(Overrides BaseClassCloneJSON)
Public methodCloneXML
(Overrides BaseClassCloneXML)
Public methodCloseDynamicsEditForm
(Inherited from BaseClass)
Public methodCloseEditForm
(Overrides BaseClassCloseEditForm)
Public methodConnectEnergyStream
(Inherited from BaseClass)
Public methodConnectFeedEnergyStream
(Inherited from BaseClass)
Public methodConnectFeedMaterialStream
(Inherited from BaseClass)
Public methodConnectProductEnergyStream
(Inherited from BaseClass)
Public methodConnectProductMaterialStream
(Inherited from BaseClass)
Public methodCopyCompositions Copy mass/mole fractions from one phase to another.
Public methodCopyDataToClipboard Copies the object properties to the Clipboard.
(Inherited from BaseClass)
Public methodCopyFromMaterial Copies all the stored non-constant Physical Properties (which have been set using the SetSinglePhaseProp, SetTwoPhaseProp or SetOverallProp) from the source Material Object to the current instance of the Material Object.
Public methodCreateDynamicProperties
(Inherited from BaseClass)
Public methodCreateMaterial Creates a Material Object with the same configuration as the current Material Object.
Public methodCreateMaterialObject Create a Material Object from the parent Material Template of the current Material Object.
Public methodCreateMaterialObject1 
Public methodCreateNew
(Inherited from BaseClass)
Public methodDeCalculate
(Inherited from BaseClass)
Public methodDeepClear 
Public methodDisplayDynamicsEditForm
(Inherited from BaseClass)
Public methodDisplayEditForm
(Overrides BaseClassDisplayEditForm)
Public methodDisplayExtraPropertiesEditForm
(Inherited from BaseClass)
Public methodDispose
(Inherited from BaseClass)
Protected methodDispose(Boolean)
(Inherited from BaseClass)
Public methodDuplicate Creates a duplicate of the current Material Object.
Public methodEmpty Clears all phase properties, including temperature, pressure and overall composition.
Public methodEmptyPropertyPackage 
Public methodEqualizeOverallComposition 
Public methodFT Formats a property string, adding its units in parenthesis.
(Inherited from BaseClass)
Public methodGetAsObject
(Inherited from BaseClass)
Public methodGetChartModel
(Inherited from BaseClass)
Public methodGetChartModelNames
(Inherited from BaseClass)
Public methodGetComponentConstant Retrieve pure compound constants from the Property Package.
Public methodGetComponentConstant1 
Public methodGetComponentList 
Public methodGetCompoundConstant Returns the values of constant Physical Properties for the specified Compounds.
Public methodGetCompoundList Returns the list of all Compounds. This includes the Compound identifiers recognised and extra information that can be used to further identify the Compounds.
Public methodGetCompoundMassConcentration 
Public methodGetCompoundMassFlow 
Public methodGetCompoundMolarFlow 
Public methodGetCompoundNames 
Public methodGetConnectionPortsInfo
(Inherited from BaseClass)
Public methodGetConnectionPortsList
(Inherited from BaseClass)
Public methodGetConstPropList Returns the list of supported constant Physical Properties.
Public methodGetDebugReport
(Overrides BaseClassGetDebugReport)
Public methodGetDebugWriter
(Inherited from BaseClass)
Public methodGetDefaultProperties
(Overrides BaseClassGetDefaultProperties)
Public methodGetDisplayDescription
(Overrides BaseClassGetDisplayDescription)
Public methodGetDisplayName
(Overrides BaseClassGetDisplayName)
Public methodGetDynamicContents
(Inherited from BaseClass)
Public methodGetDynamicProperty
(Inherited from BaseClass)
Public methodGetDynamicPropertyUnitType
(Inherited from BaseClass)
Public methodGetDynamicResidenceTime
(Inherited from BaseClass)
Public methodGetDynamicVolume
(Inherited from BaseClass)
Public methodGetEditingForm
(Inherited from BaseClass)
Public methodGetEnergyBalanceResidual
(Inherited from BaseClass)
Public methodGetEnergyConsumption
(Inherited from BaseClass)
Public methodGetEnergyFlow 
Public methodGetExtraPropertyValue
(Inherited from BaseClass)
Public methodGetFlashSpec 
Public methodGetFlowsheet
(Inherited from BaseClass)
Public methodGetIconBitmap
(Overrides BaseClassGetIconBitmap)
Public methodGetIndependentVar Returns the independent variables of a Material Object. This method is deprecated.
Public methodGetMassBalanceResidual
(Inherited from BaseClass)
Public methodGetMassEnthalpy Returns the overall mass enthalpy.
Public methodGetMassEntropy Returns the overall mass entropy.
Public methodGetMassFlow Returns the stream mass flow.
Public methodGetMolarFlow Returns the stream molar flow.
Public methodGetNumComponents Returns number of chemical compounds in Material Object.
Public methodGetNumCompounds Returns the number of Compounds supported.
Public methodGetNumPhases Returns the number of Phases.
Public methodGetOverallComposition Returns an array with the overall molar composition.
Public methodGetOverallHeatOfFormation Returns the overall heat of formation term for energy balance check, in kJ/s
Public methodGetOverallMassComposition 
Public methodGetOverallMolecularWeight Returns the molecular weight of the overall mixture.
Public methodGetOverallProp Retrieves non-constant Physical Property values for the overall mixture.
Public methodGetOverallTPFraction Retrieves temperature, pressure and composition for the overall mixture.
Public methodGetPDependentProperty Returns the values of pressure-dependent Physical Properties for the specified pure Compounds.
Public methodGetPDependentPropList Returns the list of supported pressure-dependent properties.
Public methodGetPhase 
Public methodGetPhaseComposition Returns the molar composition of a phase.
Public methodGetPhaseInfo Returns information on an attribute associated with a Phase for the purpose of understanding what lies behind a Phase label.
Public methodGetPhaseList Returns Phase labels and other important descriptive information for all the Phases supported.
Public methodGetPhaseList1 
Public methodGetPowerGeneratedOrConsumed
(Inherited from BaseClass)
Public methodGetPreferredGraphicObjectHeight
(Inherited from BaseClass)
Public methodGetPreferredGraphicObjectWidth
(Inherited from BaseClass)
Public methodGetPresentPhases Returns Phase labels for the Phases that are currently present in the Material Object.
Public methodGetPressure Returns the stream pressure.
Public methodGetProcessFlowsheetProperties 
Public methodGetProp(String, String) 
Public methodGetProp(String, String, Object, String, String) This method is responsible for retrieving the results from calculations from the Material Object.
Public methodGetProperties
(Overrides BaseClassGetProperties(PropertyType))
Public methodGetPropertyDescription
(Overrides BaseClassGetPropertyDescription(String))
Public methodGetPropertyPackageObject 
Public methodGetPropertyPackageObjectCopy 
Public methodGetPropertyUnit
(Overrides BaseClassGetPropertyUnit(String, IUnitsOfMeasure))
Public methodGetPropertyValue
(Overrides BaseClassGetPropertyValue(String, IUnitsOfMeasure))
Public methodGetPropList Returns list of properties that can be calculated by the Material Object.
Public methodGetPropList1 
Public methodGetPropList2 
Public methodStatic memberGetPropUnits 
Public methodGetReport
(Overrides BaseClassGetReport(IUnitsOfMeasure, CultureInfo, String))
Public methodGetSinglePhaseProp Retrieves single-phase non-constant Physical Property values for a mixture.
Public methodGetSinglePhaseProp2 
Public methodGetSinglePhasePropDefaultUnits 
Public methodGetSinglePhasePropList Returns the list of supported non-constant single-phase Physical Properties.
Public methodGetStructuredReport
(Overrides BaseClassGetStructuredReport)
Public methodGetTDependentProperty Returns the values of temperature-dependent Physical Properties for the specified pure Compounds.
Public methodGetTDependentPropList Returns the list of supported temperature-dependent Physical Properties.
Public methodGetTemperature Returns the stream temperature.
Public methodGetTPFraction Retrieves temperature, pressure and composition for a Phase.
Public methodGetTwoPhaseProp Retrieves two-phase non-constant Physical Property values for a mixture.
Public methodGetTwoPhasePropList Returns the list of supported non-constant two-phase properties.
Public methodGetUniversalConstant(Object) Retrieves values of universal constants from the Property Package.
Public methodGetUniversalConstant(String) Retrieves the value of a Universal Constant.
Public methodGetUniversalConstant1 
Public methodGetUniversalConstantList Returns the identifiers of the supported Universal Constants.
Public methodGetVersion
(Inherited from BaseClass)
Public methodGetVolumetricFlow Returns the stream volumetric flow.
Public methodIsDynamicProperty
(Inherited from BaseClass)
Public methodLoadData
(Overrides BaseClassLoadData(ListXElement))
Public methodMassFractionsToMoleFractions Converts mass fractions to mole fractions using the current compound list.
Public methodMix Mixes this stream with another one.
Public methodMoleFractionsToMassFractions Converts mole fractions to mass fractions using the current compound list.
Public methodNormalizeOverallMassComposition 
Public methodNormalizeOverallMoleComposition 
Public methodObjectCopy
(Inherited from BaseClass)
Public methodPerformPostCalcValidation
(Inherited from BaseClass)
Public methodPropCheck Checks to see if a list of given properties can be calculated.
Public methodPropCheck1 
Public methodPropCheck2 
Public methodPropCheck3 
Public methodPropList 
Public methodRemoveDynamicProperty
(Inherited from BaseClass)
Public methodRemoveExtraProperty
(Inherited from BaseClass)
Public methodRemoveResults RemoveResults
Public methodRunDynamicModel
(Overrides BaseClassRunDynamicModel)
Public methodSaveData
(Overrides BaseClassSaveData)
Public methodSetCanUsePreviousResults
(Inherited from BaseClass)
Public methodSetCurrentMaterialStream 
Public methodSetDirtyStatus
(Inherited from BaseClass)
Public methodSetDynamicProperty
(Inherited from BaseClass)
Public methodSetExtraPropertyValue
(Inherited from BaseClass)
Public methodSetFlashSpec Sets stream flash spec.
Public methodSetFlowsheet Sets the Flowsheet to which this object belongs to.
(Inherited from BaseClass)
Public methodSetIndependentVar SetIndependentVar
Public methodSetMassEnthalpy(Double) Sets stream enthalpy.
Public methodSetMassEnthalpy(String) Sets the mass enthalpy according with the specified units.
Public methodSetMassEntropy(Double) 
Public methodSetMassEntropy(String) Sets the mass entropy according with the specified units.
Public methodSetMassFlow(Double) Sets stream mass flow.
Public methodSetMassFlow(String) Sets the mass flow according to the specified units.
Public methodSetMaterial Allows the client of a component that implements this interface to pass an ICapeThermoMaterial interface to the component, so that it can access the properties of a Material.
Public methodSetMolarFlow(Double) Sets stream molar flow.
Public methodSetMolarFlow(String) Sets the molar flow according to the specified units.
Public methodSetOverallComposition Sets the overall molar composition of the mixture.
Public methodSetOverallCompoundMassFlow(Int32, Double) Set the mass flow for a single compound and updates the overall mass flow and composition.
Public methodSetOverallCompoundMassFlow(String, Double) Set the mass flow for a single compound and updates the overall mass flow and composition.
Public methodSetOverallCompoundMolarFlow(Int32, Double) Set the molar flow for a single compound and updates the overall molar flow and composition.
Public methodSetOverallCompoundMolarFlow(String, Double) Set the molar flow for a single compound and updates the overall molar flow and composition.
Public methodSetOverallMassComposition 
Public methodSetOverallMolarComposition 
Public methodSetOverallProp Sets non-constant property values for the overall mixture.
Public methodSetPhaseComposition Sets the molar composition of a phase.
Public methodSetPhaseComposition1 
Public methodSetPresentPhases Allows the PME or the Property Package to specify the list of Phases that are currently present.
Public methodSetPressure(Double) Sets stream pressure
Public methodSetPressure(String) Sets the pressure according to the specified units.
Public methodSetProp This method is responsible for setting the values for properties of the Material Object.
Public methodSetProp1 
Public methodSetPropertyPackage 
Public methodSetPropertyPackageInstance
(Overrides BaseClassSetPropertyPackageInstance(IPropertyPackage))
Public methodSetPropertyValue
(Overrides BaseClassSetPropertyValue(String, Object, IUnitsOfMeasure))
Public methodSetSinglePhaseProp Sets single-phase non-constant property values for a mixture.
Public methodSetTemperature(Double) Sets stream temperature.
Public methodSetTemperature(String) Sets the temperature according to the specified units.
Public methodSetTwoPhaseProp Sets two-phase non-constant property values for a mixture.
Public methodSetVolumetricFlow(Double) Sets stream volumetric flow.
Public methodSetVolumetricFlow(String) Sets the volumetric flow according to the specified units.
Public methodShallowClone 
Public methodSolve
(Inherited from BaseClass)
Public methodStoreDebugReport
(Inherited from BaseClass)
Public methodSubtract Subtracts a material stream contents from this one, returning a new stream object, leaving this instance unmodified.
Public methodThrowCAPEException 
Public methodToString
(Overrides BaseClassToString)
Public methodTransferAdditionalSolidData
(Inherited from BaseClass)
Public methodTranslateString 
Public methodUnsetMaterial Removes any previously set Material interface.
Public methodUpdateDynamicsEditForm
(Inherited from BaseClass)
Public methodUpdateEditForm
(Overrides BaseClassUpdateEditForm)
Public methodUpdateExtraPropertiesEditForm
(Inherited from BaseClass)
Public methodValidate
(Overrides BaseClassValidate)
Public methodValidate1 
Public methodValidityCheck Checks the validity of the calculation. This method is deprecated.
Public methodValidityCheck1 
Public methodValidityCheck2 
Public methodValidityCheck3 
Top
Fields
Extension Methods
 NameDescription
Public Extension MethodGetEnumNames
(Defined by General)
Public Extension MethodIsValidDouble
(Defined by General)
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodIMaterialStreamGetPhase 
Top
See Also