Mixer Example Class
This is a mixer eample class that models an adiabtic mixer.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[SerializableAttribute]
[CapeHelpURLAttribute("http:\www.epa.gov")]
[CapeAboutAttribute("US Environmental Protection Agency\nCincinnati, Ohio")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("883D46FE-5713-424C-BF10-7ED34263CD6D")]
[CapeNameAttribute("MixerExample")]
[CapeDescriptionAttribute("An example mixer unit operation written in C#.")]
[CapeVersionAttribute("1.0")]
[CapeVendorURLAttribute("http:\www.epa.gov")]
[ComVisibleAttribute(true)]
[CapeConsumesThermoAttribute(true)]
[CapeSupportsThermodynamics10Attribute(true)]
public class MixerExample : CapeUnitBaseVB
<SerializableAttribute>
<CapeHelpURLAttribute("http:\www.epa.gov")>
<CapeAboutAttribute("US Environmental Protection Agency\nCincinnati, Ohio")>
<ClassInterfaceAttribute(ClassInterfaceType.None)>
<GuidAttribute("883D46FE-5713-424C-BF10-7ED34263CD6D")>
<CapeNameAttribute("MixerExample")>
<CapeDescriptionAttribute("An example mixer unit operation written in C#.")>
<CapeVersionAttribute("1.0")>
<CapeVendorURLAttribute("http:\www.epa.gov")>
<ComVisibleAttribute(true)>
<CapeConsumesThermoAttribute(true)>
<CapeSupportsThermodynamics10Attribute(true)>
Public Class MixerExample
Inherits CapeUnitBase- Inheritance
- Object CapeIdentification CapeObjectBase CapeUnitBase MixerExample
Remarks
The mixer conducts a material and energy balance to determine output flow from the input flows.
There are four parameters. Only one is used in the calculation, the real-valued pressure drop. The pressure of the material attached to the outlet port is set to the pressure of the lower inlet material objects less the value of the pressure drop parameter. The remaining parameters are provided as a demonstration of integer, boolean and option parameters.
Constructors
| MixerExample | Creates an instance of the CMixerExample unit operation. |
Properties
| ComponentDescription |
Gets and sets the description of the component.
(Inherited from CapeIdentification) |
| ComponentName |
Gets and sets the name of the component.
(Inherited from CapeIdentification) |
| Parameters |
Gets the component's collection of parameters.
(Inherited from CapeObjectBase) |
| Ports |
Gets the collection of unit operation ports.
(Inherited from CapeUnitBase) |
| Reports |
Gets the list of possible reports for the unit operation.
(Inherited from CapeUnitBase) |
| selectedReport |
Gets and sets the current active report for the unit operation.
(Inherited from CapeUnitBase) |
| ValStatus |
Gets the flag to indicate the unit operation's validation status
(Inherited from CapeUnitBase) |
Methods
| Calculate |
Executes the necessary calculations involved in the unit operation model.
(Inherited from CapeUnitBase) |
| Edit |
Displays the PMC graphic interface, if available.
(Inherited from CapeUnitBase) |
| LogMessage |
Writes a string to the PME's log file.
(Inherited from CapeObjectBase) |
| NotifyPropertyChanged |
Notifies the collection that the value of a proparty of the parameter has been changed.
(Inherited from CapeIdentification) |
| OnCalculate |
Calculation method for the MixerExample unit operation.
(Overrides CapeUnitBaseOnCalculate) |
| OnComponentDescriptionChanged |
Occurs when the user changes of the description of a component.
(Inherited from CapeIdentification) |
| OnComponentNameChanged |
Occurs when the user changes of the description of a component.
(Inherited from CapeIdentification) |
| OnPortCollectionAddingNew |
Occurs before an item is added to the list.
(Inherited from CapeUnitBase) |
| OnPortCollectionListChanged |
Occurs when the list or an item in the list changes.
(Inherited from CapeUnitBase) |
| OnUnitOperationBeginCalculation |
Occurs at the start of a unit operation calculation process.
(Inherited from CapeUnitBase) |
| OnUnitOperationEndCalculation |
Occurs at the completion of a unit operation calculation process.
(Inherited from CapeUnitBase) |
| OnUnitOperationValidated |
Occurs when a unit operation is validated.
(Inherited from CapeUnitBase) |
| PopUpMessage |
Writes a message to the terminal.
(Inherited from CapeObjectBase) |
| ProduceReport |
Produces the active report for the Mixer Example unit operation.
(Overrides CapeUnitBaseProduceReport(String)) |
| throwException |
Throws and exceptiona and exposes the exception object.
(Inherited from CapeObjectBase) |
| Validate |
Validates the unit operation.
(Inherited from CapeUnitBase) |
Events
| ComponentDescriptionChanged |
Occurs when the user changes of the description of a component.
(Inherited from CapeIdentification) |
| ComponentNameChanged |
Occurs when the user changes of the name of a component.
(Inherited from CapeIdentification) |
| PortCollectionAddingNew |
Occurs when the user Adds a new element to the port collection.
(Inherited from CapeUnitBase) |
| PortCollectionListChanged |
Occurs when the list or an item in the list changes.
(Inherited from CapeUnitBase) |
| PropertyChanged |
Notifies the collection that the value of a proparty of the parameter has been changed.
(Inherited from CapeIdentification) |
| UnitOperationBeginCalculation |
Occurs when the user begins the calculation of the unit operation.
(Inherited from CapeUnitBase) |
| UnitOperationEndCalculation |
Occurs at the completion of a calculation of a unit operation.
(Inherited from CapeUnitBase) |
| UnitOperationValidated |
Occurs when the user validates the unit operation.
(Inherited from CapeUnitBase) |
Extension Methods
| GetEnumNames | (Defined by General) |
| IsValidDouble | (Defined by General) |