GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/material/fluidmatrixinteractions/frictionlaws/nofriction.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 1 3 33.3%
Functions: 0 1 0.0%
Branches: 1 2 50.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 Fluidmatrixinteractions
10 * \copydoc Dumux::FrictionLawNoFriction
11 */
12 #ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NOFRICTION_HH
13 #define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NOFRICTION_HH
14
15 #include "frictionlaw.hh"
16
17 namespace Dumux {
18
19 /*!
20 * \ingroup Fluidmatrixinteractions
21 * \brief A pseudo friction law with no bottom friction
22 */
23 template <typename VolumeVariables>
24 class FrictionLawNoFriction : public FrictionLaw<VolumeVariables>
25 {
26 using Scalar = typename VolumeVariables::PrimaryVariables::value_type;
27 public:
28 /*!
29 * \brief Constructor
30 */
31
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 FrictionLawNoFriction() = default;
32
33 /*!
34 * \brief Compute the bottom shear stress.
35 *
36 * \param volVars Volume variables
37 *
38 * Compute the bottom shear stress due to bottom friction.
39 * The bottom shear stress is a projection of the shear stress tensor onto the river bed.
40 * It can therefore be represented by a (tangent) vector with two entries.
41 * For this law without bottom friction, the bottom shear stress is zero.
42 *
43 * \return shear stress in N/m^2. First entry is the x-component, the second the y-component.
44 */
45 Dune::FieldVector<Scalar, 2> bottomShearStress(const VolumeVariables& volVars) const final
46 {
47 return {0.0, 0.0};
48 }
49 };
50
51 } // end namespace Dumux
52
53 #endif
54