version 3.8
pengrobinsonparams.hh
Go to the documentation of this file.
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//
17#ifndef DUMUX_PENG_ROBINSON_PARAMS_HH
18#define DUMUX_PENG_ROBINSON_PARAMS_HH
19
20namespace Dumux {
21
30template <class Scalar>
32{
33public:
38 Scalar a() const
39 { return a_; }
40
41
46 Scalar b() const
47 { return b_; }
48
54 void setA(Scalar value)
55 { a_ = value; }
56
62 void setB(Scalar value)
63 { b_ = value; }
64
65protected:
66 Scalar a_;
67 Scalar b_;
68};
69
70} // end namespace
71
72#endif
Stores and provides access to the Peng-Robinson parameters.
Definition: pengrobinsonparams.hh:32
Scalar a_
Definition: pengrobinsonparams.hh:66
Scalar b_
Definition: pengrobinsonparams.hh:67
void setA(Scalar value)
Set the attractive parameter 'a' of the Peng-Robinson fluid.
Definition: pengrobinsonparams.hh:54
Scalar a() const
Returns the attractive parameter 'a' of the Peng-Robinson fluid.
Definition: pengrobinsonparams.hh:38
void setB(Scalar value)
Set the repulsive parameter 'b' of the Peng-Robinson fluid.
Definition: pengrobinsonparams.hh:62
Scalar b() const
Returns the repulsive parameter 'b' of the Peng-Robinson fluid.
Definition: pengrobinsonparams.hh:46
Definition: adapt.hh:17