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 Components | ||
10 | * \brief A class for the CO3 ion properties. | ||
11 | */ | ||
12 | #ifndef DUMUX_CO3_ION_HH | ||
13 | #define DUMUX_CO3_ION_HH | ||
14 | |||
15 | #include <dumux/material/components/base.hh> | ||
16 | #include <dumux/material/components/ion.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | namespace Components { | ||
20 | |||
21 | /*! | ||
22 | * \ingroup Components | ||
23 | * \brief A class for the CO3 fluid properties. | ||
24 | */ | ||
25 | template <class Scalar> | ||
26 | class CarbonateIon | ||
27 | : public Components::Base<Scalar, CarbonateIon<Scalar> > | ||
28 | , public Components::Ion<Scalar, CarbonateIon<Scalar> > | ||
29 | { | ||
30 | public: | ||
31 | /*! | ||
32 | * \brief A human readable name for the CO3 ion. | ||
33 | */ | ||
34 | static std::string name() | ||
35 |
6/10✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1 times.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 times.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
|
4 | { return "CO3-"; } |
36 | |||
37 | /*! | ||
38 | * \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the CO3 ion. | ||
39 | */ | ||
40 | static constexpr Scalar molarMass() | ||
41 | { return 60.0092e-3; } // kg/mol | ||
42 | |||
43 | /*! | ||
44 | * \brief The charge balance of the CO3 ion. | ||
45 | */ | ||
46 | static constexpr int charge() | ||
47 | { return -2; } | ||
48 | |||
49 | }; | ||
50 | |||
51 | } // end namespace Components | ||
52 | } // end namespace Dumux | ||
53 | |||
54 | #endif | ||
55 |