Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
19f02a5d
Commit
19f02a5d
authored
2 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[swe] Add new viscous no-slip friction law for thin film flow
parent
0ce09544
No related branches found
No related tags found
1 merge request
!3376
[shallowwater] Add viscous bottom shear stress Poiseuille flow test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/fluidmatrixinteractions/frictionlaws/viscousnoslip.hh
+74
-0
74 additions, 0 deletions
...ial/fluidmatrixinteractions/frictionlaws/viscousnoslip.hh
with
74 additions
and
0 deletions
dumux/material/fluidmatrixinteractions/frictionlaws/viscousnoslip.hh
0 → 100644
+
74
−
0
View file @
19f02a5d
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \ingroup Fluidmatrixinteractions
* \copydoc Dumux::FrictionLawViscousNoSlip
*/
#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_VISCOUS_NOSLIP_HH
#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_VISCOUS_NOSLIP_HH
#include
<algorithm>
#include
<cmath>
#include
<dune/common/math.hh>
#include
<dumux/material/fluidmatrixinteractions/frictionlaws/frictionlaw.hh>
namespace
Dumux
{
/*!
* \ingroup Fluidmatrixinteractions
* \brief Implementation of a viscous no-slip bottom friction law
*
* This assumes thin film flow with a parabolic velocity profile in depth
* (for the depth-averaged shallow water equations). The velocity profile
* and associated bottom shear stress can be derived from plane Poiseuille flow
* with a free surface boundary condition on top and a no-slip boundary condition
* on the bottom.
*/
template
<
typename
VolumeVariables
>
class
FrictionLawViscousNoSlip
:
public
FrictionLaw
<
VolumeVariables
>
{
using
Scalar
=
typename
VolumeVariables
::
PrimaryVariables
::
value_type
;
public:
/*!
* \brief Compute the bottom shear stress.
*
* Compute the bottom shear stress due to bottom friction.
* The bottom shear stress is a projection of the shear stress tensor onto the bottom plane.
* It can therefore be represented by a (tangent) vector with two entries.
*
* \return shear stress in N/m^2. First entry is the x-component, the second the y-component.
*/
Dune
::
FieldVector
<
Scalar
,
2
>
bottomShearStress
(
const
VolumeVariables
&
volVars
)
const
final
{
// assume a parabolic velocity profile with no-slip BC on the bottom
// and zero stress condition on the free surface
// note that the velocity corresponds to the height-averaged velocity
Dune
::
FieldVector
<
Scalar
,
2
>
shearStress
(
0.0
);
shearStress
[
0
]
=
volVars
.
viscosity
()
*
volVars
.
velocity
(
0
)
*
3.0
/
volVars
.
waterDepth
();
shearStress
[
1
]
=
volVars
.
viscosity
()
*
volVars
.
velocity
(
1
)
*
3.0
/
volVars
.
waterDepth
();
return
shearStress
;
}
};
}
// end namespace Dumux
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment