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
07c9d910
Commit
07c9d910
authored
5 years ago
by
Martin Utz
Browse files
Options
Downloads
Patches
Plain Diff
[swe][flux] Make the LET parameter changeable.
parent
ac781f2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1810
Resolve "[shallowwater] Make the borders of the LET limiting changeable"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/flux/shallowwater/riemannproblem.hh
+4
-2
4 additions, 2 deletions
dumux/flux/shallowwater/riemannproblem.hh
with
4 additions
and
2 deletions
dumux/flux/shallowwater/riemannproblem.hh
+
4
−
2
View file @
07c9d910
...
@@ -83,10 +83,12 @@ std::array<Scalar,3> riemannProblem(const Scalar waterDepthLeft,
...
@@ -83,10 +83,12 @@ std::array<Scalar,3> riemannProblem(const Scalar waterDepthLeft,
const
Scalar
waterDepthRightReconstructed
=
max
(
0.0
,
waterDepthRight
-
dzr
);
const
Scalar
waterDepthRightReconstructed
=
max
(
0.0
,
waterDepthRight
-
dzr
);
// compute the mobility of the flux with the fluxlimiter
// compute the mobility of the flux with the fluxlimiter
static
const
Scalar
upperWaterDepthFluxLimiting
=
getParam
<
Scalar
>
(
"FluxLimiterLET.UpperWaterDepth"
,
1e-3
);
static
const
Scalar
lowerWaterDepthFluxLimiting
=
getParam
<
Scalar
>
(
"FluxLimiterLET.LowerWaterDepth"
,
1e-5
);
const
Scalar
mobility
=
ShallowWater
::
fluxLimiterLET
(
waterDepthLeftReconstructed
,
const
Scalar
mobility
=
ShallowWater
::
fluxLimiterLET
(
waterDepthLeftReconstructed
,
waterDepthRightReconstructed
,
waterDepthRightReconstructed
,
0.001
,
upperWaterDepthFluxLimiting
,
0.00001
);
lowerWaterDepthFluxLimiting
);
// make rotation of the flux we compute an 1d flux
// make rotation of the flux we compute an 1d flux
Scalar
tempFlux
=
velocityXLeft
;
Scalar
tempFlux
=
velocityXLeft
;
...
...
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