Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
675d1c3c
Commit
675d1c3c
authored
Mar 30, 2020
by
Theresa Schollenberger
Committed by
Timo Koch
Mar 31, 2020
Browse files
[brookscorey] more efficient implementation of dkrn_dswe
parent
70c9905f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/material/fluidmatrixinteractions/2p/brookscorey.hh
View file @
675d1c3c
...
...
@@ -269,8 +269,10 @@ public:
swe
=
min
(
max
(
swe
,
0.0
),
1.0
);
// the equation below is only defined for 0.0 <= sw <= 1.0
return
2.0
*
(
swe
-
1
)
*
(
1
+
(
0.5
+
1
/
params
.
lambda
())
*
pow
(
swe
,
2.0
/
params
.
lambda
())
-
(
3.0
/
2.0
+
1
/
params
.
lambda
())
*
pow
(
swe
,
2.0
/
params
.
lambda
()
+
1
));
const
auto
lambdaInv
=
1.0
/
params
.
lambda
();
const
auto
swePow
=
pow
(
swe
,
2
*
lambdaInv
);
return
2
*
(
swe
-
1.0
)
*
(
1.0
+
(
0.5
+
lambdaInv
)
*
swePow
-
(
1.5
+
lambdaInv
)
*
swePow
*
swe
);
}
};
...
...
Ned Coltman
@nedc
mentioned in issue
#863 (closed)
·
Apr 23, 2020
mentioned in issue
#863 (closed)
mentioned in issue #863
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment