GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/material/eos/pengrobinsonparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 2 8 25.0%
Functions: 0 4 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 //
4 // SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 /*!
8 * \file
9 * \ingroup EOS
10 * \brief Base class for Peng-Robinson parameters of a
11 * single-component fluid or a mixture
12 *
13 * See:
14 *
15 * R. Reid, et al. (1987, pp. 43-44) \cite reid1987
16 */
17 #ifndef DUMUX_PENG_ROBINSON_PARAMS_HH
18 #define DUMUX_PENG_ROBINSON_PARAMS_HH
19
20 namespace Dumux {
21
22 /*!
23 * \ingroup EOS
24 * \brief Stores and provides access to the Peng-Robinson parameters
25 *
26 * See:
27 *
28 * R. Reid, et al. (1987, pp. 43-44) \cite reid1987
29 */
30 template <class Scalar>
31 class PengRobinsonParams
32 {
33 public:
34 /*!
35 * \brief Returns the attractive parameter 'a' of the
36 * Peng-Robinson fluid.
37 */
38 Scalar a() const
39 { return a_; }
40
41
42 /*!
43 * \brief Returns the repulsive parameter 'b' of the Peng-Robinson
44 * fluid.
45 */
46 Scalar b() const
47 { return b_; }
48
49 /*!
50 * \brief Set the attractive parameter 'a' of the Peng-Robinson
51 * fluid.
52 * \param value value of the attractive parameter
53 */
54 void setA(Scalar value)
55 103215 { a_ = value; }
56
57 /*!
58 * \brief Set the repulsive parameter 'b' of the Peng-Robinson
59 * fluid.
60 * \param value value of the repulsive parameter
61 */
62 void setB(Scalar value)
63 103215 { b_ = value; }
64
65 protected:
66 Scalar a_;
67 Scalar b_;
68 };
69
70 } // end namespace
71
72 #endif
73