### 18.11.4. Input and Output Property Name Format

The input and output arguments are specified using standard CFX Expression Language syntax. Both short and long names are supported. The syntax of the arguments is either `<fluid name>.<property>` or `<component>.<property>`, where `<fluid name>` is the name of the fluid, `<component>` is the mixture component name (if needed) and `<property>` is the name of the property in short or long form.

#### 18.11.4.1. Pure Substance Example

The following code section shows the use of short or long names for input and output properties for a simulation that involves a pure substance:

    C
    C---- Input thermodynamic properties:
    C     ? Temperature and pressure
    C
          CPROPIND(1) = 'T'
          CPROPIND(2) = 'pabs'
    C
    C---- Input values for temperature and pressure
    C
          RPROPIND(1) = 498.15
          RPROPIND(2) = 101325.
    C
    C-----------------------------------------------------------------------
    C     Short names for input properties, long name for output property
    C-----------------------------------------------------------------------
    C
          CPROPCALC = 'Air Ideal Gas.Static Enthalpy'
          CALL USER_STATEPT(H,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    C
    C-----------------------------------------------------------------------
    C     Long names for input properties, short names for output property
    C-----------------------------------------------------------------------
    C
          CPROPIND(1) = 'Temperature'
          CPROPIND(2) = 'Absolute Pressure'
    C
          CPROPCALC = 'Air Ideal Gas.Entropy'
          CALL USER_STATEPT(S,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    C
    C-----------------------------------------------------------------------
    C     Mixed long and short names for input/output properties
    C-----------------------------------------------------------------------
    C
          CPROPIND(1) = 'T'
          CPROPIND(2) = 'Absolute Pressure'
    C
          CPROPCALC = 'Air Ideal Gas.Cp'
          CALL USER_STATEPT(Cp,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    …

#### 18.11.4.2. Mixture Example

The following code section shows the use of short or long names for input and output properties for a simulation that involves a mixture consisting of four different materials:

    C
    C---- Input thermodynamic properties:
    C     ' Temperature and pressure
    C
          CPROPIND(1) = 'T'
          CPROPIND(2) = 'pabs'
    C
    C---- Input values for temperature and pressure
    C
          RPROPIND(1) = 498.15
          RPROPIND(2) = 101325.
    C
    C---- Specify mass fractions for each fluid component material (short
    C     names)
    C
          CPROPIND(3) = 'N2 Ideal Gas.mf'
          CPROPIND(4) = 'O2 Ideal Gas.mf'
          CPROPIND(5) = 'CO2 Ideal Gas.mf'
          CPROPIND(6) = 'CO2 Const Prop.mf'
    C
    C---- Fluid mixture mass fractions
    C
          RPROPIND(3) = 0.79
          RPROPIND(4) = 0.18
          RPROPIND(5) = 0.01
          RPROPIND(6) = 0.01
    C
    C-----------------------------------------------------------------------
    C     Mixture enthalpy, short names for component mass fractions
    C-----------------------------------------------------------------------
    C
          CPROPCALC = 'MyMixture.Static Enthalpy'
          CALL USER_STATEPT(H,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    C
    C-----------------------------------------------------------------------
    C     Compute mixture specific heat capacity, long names for
    C     component mass fractions
    C-----------------------------------------------------------------------
    C
          CPROPIND(3) = 'N2 Ideal Gas.Mass Fraction'
          CPROPIND(4) = 'O2 Ideal Gas.Mass Fraction'
          CPROPIND(5) = 'CO2 Ideal Gas.Mass Fraction'
          CPROPIND(6) = 'CO2 Const Prop.Mass Fraction'
    C
          CPROPCALC = 'MyMixture.Cp'
          CALL USER_STATEPT(CpM,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    C
    C-----------------------------------------------------------------------
    C     Compute specific heat capacity for one of the mixture components
    C     use long names for component mass fractions
    C-----------------------------------------------------------------------
    C
          CPROPCALC = 'MyMixture.O2 Ideal Gas.Cp'
          CALL USER_STATEPT(CpO2,CPROPCALC,CPROPIND,RPROPIND,
         &                  NPROPIND,'SKIP',CRESLT, CZ,DZ,IZ,LZ,RZ)
    …

Release 18.2 - © ANSYS, Inc. All rights reserved.