3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
pointsourceproblem.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 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
26#ifndef DUMUX_LENSPROBLEM_POINTSOURCE_HH
27#define DUMUX_LENSPROBLEM_POINTSOURCE_HH
28
29#include "problem.hh"
30
31namespace Dumux {
32
38template <class TypeTag >
40{
43
44public:
46 using ParentType::ParentType;
47
60 void addPointSources(std::vector<PointSource>& pointSources) const
61 {
62 // inject 2 kg/s of non-wetting phase at position (1, 1);
63 pointSources.push_back(PointSource({0.502, 3.02}, {0, 0.1}));
64 }
65};
66
67} // end namespace Dumux
68
69#endif
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:50
Soil contamination problem where DNAPL infiltrates a fully water saturated medium.
Definition: pointsourceproblem.hh:40
void addPointSources(std::vector< PointSource > &pointSources) const
Applies a vector of point sources. The point sources are possibly solution dependent.
Definition: pointsourceproblem.hh:60
Soil contamination problem where DNAPL infiltrates a fully water saturated medium.
Definition: test/porousmediumflow/2p/implicit/adaptive/problem.hh:42
Definition of a problem for the MaxwellStefan problem: A rotating velocity field mixes a MaxwellStefa...