Aspen Touch Solutions ATM-123R Series Especificações Página 45

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 374
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 44
Automation 2-31
2-31
methods.
In most instances the collection object and member object of
the collection have nearly similar names. The name of the
collection object is normally the member name with an “s” at
the end. The Streams collection is an exception to this
statement, since it contains a collection of ProcessStream
objects. The flowsheet returns three stream collections;
MaterialStreams, EnergyStreams, and Streams. All three stream
collections accessed through the flowsheet are Streams objects.
The difference between the Streams collection objects relates to
how the member ProcessStream objects are filtered.
The example below, shows how to access a particular stream in
the system by index and how to retrieve the temperature value.
The remaining properties are accessed in a similar fashion.
The example below, shows how to access the MassFractionValue
for each component in the stream. An array of doubles is
returned to the variant hyCompFrac. The Ubound function is
used to determine the upper bound of the array and thus the
number of components. A separate object is set for the
component collection. The indexing between the array of mass
fractions and the list of components in the FluidPackage is
identical so it is easy enough to match the values with the
Syntax for accessing the ProcessStream object
By Name
SimulationCase.Flowsheet.MaterialStreams(“streamname”)
SimulationCase.Flowsheet.MaterialStreams.Item(“streamname”)
By Index
SimulationCase.Flowsheet.MaterialStreams.Item(j)
Example 1: ProcessStream
Dim hyFlowsheet As Object
Dim hyStream As Object
Set hyFlowsheet = hyCase.Flowsheet
Set hyStream = hyFlowsheet.MaterialStreams.Item(0)
MsgBox “Stream Temperature = “ & hyStream.TemperatureValue
Vista de página 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 373 374

Comentários a estes Manuais

Sem comentários