Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dg
dg
Commits
cadb4d77
Commit
cadb4d77
authored
Dec 01, 2016
by
Jonathan Lambrechts
Browse files
simple parameter for particle mortality
parent
c128f77b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/slimParticles/dgParticleTracker2D.h
View file @
cadb4d77
...
...
@@ -367,12 +367,12 @@ public:
* 1 : constant mortality rate given by [1] mortRateMax (by day)
* 2 : weibullMortalityRate with [2] lambda and [3] nu;
*/
void
addMortality
(
fullMatrix
<
double
>*
mortParams
)
{
void
addMortality
(
int
type
,
double
rateMax
,
double
weibullLambda
=
0
,
double
weibullNu
=
0
)
{
_mortFlag
=
true
;
_mortType
=
static_cast
<
int
>
(
mortParams
->
get
(
0
,
0
)
+
0.1
)
;
_mortRate_max
=
mortParams
->
get
(
0
,
1
)
;
_mortLambda
=
mortParams
->
get
(
0
,
2
)
;
//(Connolly & Baird 2010)lambda = 1/b(Pinder et al. 1978)
_mortNu
=
mortParams
->
get
(
0
,
3
)
;
//(Connolly & Baird 2010)nu = c(Pinder et al. 1978)
_mortType
=
type
;
_mortRate_max
=
rateMax
;
_mortLambda
=
weibullLambda
;
//(Connolly & Baird 2010)lambda = 1/b(Pinder et al. 1978)
_mortNu
=
weibullNu
;
//(Connolly & Baird 2010)nu = c(Pinder et al. 1978)
}
/** Activate particle settling and load parameters */
...
...
Write
Preview
Markdown
is supported
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