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 TwoPTests | ||
10 | * \brief Soil contamination problem where DNAPL infiltrates a fully | ||
11 | * water saturated medium. | ||
12 | */ | ||
13 | |||
14 | #ifndef DUMUX_LENSPROBLEM_POINTSOURCE_HH | ||
15 | #define DUMUX_LENSPROBLEM_POINTSOURCE_HH | ||
16 | |||
17 | #include "problem.hh" | ||
18 | |||
19 | namespace Dumux { | ||
20 | |||
21 | /*! | ||
22 | * \ingroup TwoPTests | ||
23 | * \brief Soil contamination problem where DNAPL infiltrates a fully | ||
24 | * water saturated medium. | ||
25 | */ | ||
26 | template <class TypeTag > | ||
27 | 1 | class PointSourceTestProblem : public TwoPTestProblemAdaptive<TypeTag> | |
28 | { | ||
29 | using ParentType = TwoPTestProblemAdaptive<TypeTag>; | ||
30 | using PointSource = GetPropType<TypeTag, Properties::PointSource>; | ||
31 | |||
32 | public: | ||
33 | //! Use parent's constructor | ||
34 | ✗ | using ParentType::ParentType; | |
35 | |||
36 | /*! | ||
37 | * \brief Applies a vector of point sources. The point sources | ||
38 | * are possibly solution dependent. | ||
39 | * | ||
40 | * \param pointSources A vector of PointSources that contain | ||
41 | source values for all phases and space positions. | ||
42 | * | ||
43 | * For this method, the \a values method of the point source | ||
44 | * has to return the absolute mass rate in untis | ||
45 | * \f$ [ \textnormal{unit of conserved quantity} / s ] \f$. | ||
46 | * Positive values mean that mass is created, negative ones mean that it vanishes. | ||
47 | */ | ||
48 | void addPointSources(std::vector<PointSource>& pointSources) const | ||
49 | { | ||
50 | // inject 2 kg/s of nonwetting phase at position (1, 1); | ||
51 |
5/10✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
|
12 | pointSources.push_back(PointSource({0.502, 3.02}, {0, 0.1})); |
52 | } | ||
53 | }; | ||
54 | |||
55 | } // end namespace Dumux | ||
56 | |||
57 | #endif | ||
58 |