Skip to content
Snippets Groups Projects
Commit f5526e81 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/tcrit' into 'master'

Add PengRobinson::criticalTemperature()

See merge request !2818
parents 871eebb9 a6d30379
No related branches found
No related tags found
1 merge request!2818Add PengRobinson::criticalTemperature()
Pipeline #8335 failed
Pipeline: dumux

#8340

    Pipeline: dumux

    #8339

      Pipeline: dumux

      #8338

        +2
        ......@@ -25,8 +25,10 @@
        * See:
        *
        * D.-Y. Peng, D.B. Robinson (1976, pp. 59–64) \cite peng1976 <BR>
        * https://doi.org/10.1021/i160057a011
        *
        * R. Reid, et al. (1987, pp. 42-44, 82) \cite reid1987
        * R. Reid, et al. "The properties of gases and liquids" (1987, pp. 42-44, 82)
        * \cite reid1987
        */
        #ifndef DUMUX_PENG_ROBINSON_HH
        #define DUMUX_PENG_ROBINSON_HH
        ......@@ -214,6 +216,20 @@ public:
        return Vm;
        }
        /*!
        * \brief Returns the critical temperature for a given mix
        *
        * \param params EOS (equation of state) parameters of a single-component fluid \
        * (usually PengRobinsonParms) or a mixture (usually PengRobinsonMixtureParams)
        */
        template <class Params>
        static Scalar criticalTemperature(const Params &params)
        {
        // Here, a() is the attractive force parameter and b()
        // is the repulsive force parameter of the EOS
        return criticalTemperature_(params.a(), params.b());
        }
        /*!
        * \brief Returns the fugacity coefficient \f$\mathrm{[-]}\f$ for a given pressure
        * and molar volume.
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment