version 3.8
nofriction.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//
12#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NOFRICTION_HH
13#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NOFRICTION_HH
14
15#include "frictionlaw.hh"
16
17namespace Dumux {
18
23template <typename VolumeVariables>
24class FrictionLawNoFriction : public FrictionLaw<VolumeVariables>
25{
26 using Scalar = typename VolumeVariables::PrimaryVariables::value_type;
27public:
32
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
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:31
A pseudo friction law with no bottom friction.
Definition: nofriction.hh:25
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: nofriction.hh:45
FrictionLawNoFriction()=default
Constructor.
Definition: adapt.hh:17