© 2024 Jasper van Baten, AmsterCHEM

CapeOpenTwoPhaseProperty

CapeOpenTwoPhaseProperty returns the values of a specified two-phase property for a specified phase pair, at specified temperature, pressure and, for each phase, composition.

Syntax:

=CapeOpenTwoPhaseProperty(packageName,propertyName,phase1Name,phase2Name,T,P,phase1Composition,phase2Composition,compositionBasis,orientation,compositionDerivativePhase,transposed,normalizeComposition)

Arguments:

packageName Name of the package.
propertyName The two-phase property name, as defined by CAPE-OPEN. See the ribbon for which two-phase properties are supported for the selected package. Two-phase properties can be a scalar, or a vector with a value for each compound, or a square matrix the size of the number of compounds. Matrices are by default represnted as a vector. Composition derivatives are w.r.t. the first phase, the second phase, or both. The unit of meaure can be obtained from CapeOpenUnitOfMeasure
phase1Name The name of the first phase. See the ribbon for which phases are defined by the selected package.
phase2Name The name of the second phase.
T The temperature, in K.
P The pressure, in Pa.
phase1Composition The composition of the first phase, in mol/mol or kg/kg.
phase2Composition The composition of the second phase, in mol/mol or kg/kg.
compositionBasis Optional. The basis for composition. Can be "mole" (default), or "mass".
orientation Optional. Orientation can be 'auto'=0 (default), 'horizontal'=1, 'vertical'=2, 'matrix'=3 (if applicable).
compositionDerivativePhase Optional. Applies only to composition derivatives. Can be 'both'=0 (default), 'phase 1'=1, 'phase 2'=2 or one of the phase names.
transposed Optional. Can be "0" or "false" (default), or "1" or "true". Applies to matrix properties in all orientations.
normalizeComposition Optional. By default, the composition vectors are normalized. Value can be "0" or "false", or "1" or "true" (default). Turning off composition normalization can be useful for composition perturbation, but note that the Property Package may internally normalizat composition.

Example:

=CapeOpenTwoPhaseProperty("myPropertyPackage","surfaceTension","vapor","liquid",298.15,101325,A3:A8,B3:B8)

Using the wizard

To use the wizard, select the two-phase property on the ribbon:

Ribbon

place the cursor at the insert point and click the Insert button:

Wizard

INDEX
basis
chemical formula
compound constants
compound names
constant properties
disclaimer
edit property packages
flash calculations
functions
getting started
license
mixture properties
molecular weight
persistence
phase equilibrium
phases
property package
property package manager
pure compound properties
single phase properties
stand-alone property package
system requirements
temperature dependent properties
two-phase properties
unit of measure
welcome
wizard
CONTENT
 Introduction
 Property Packages
 Function reference
 CapeOpenPackageNames
 CapeOpenUnitOfMeasure
 CapeOpenPhases
 CapeOpenCompoundConstant
 CapeOpenTemperatureDependentProperty
 CapeOpenMixtureProperty
 CapeOpenTwoPhaseProperty
 CapeOpenPhaseEquilibrium
 Disclaimer