Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
c6220c16
Commit
c6220c16
authored
2 months ago
by
Jan Gärtner
Committed by
Kutalmış Berçin
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
BUG: RosinRammler: correct the order of scale and shape parameters (fixes
#3342
)
Co-authored-by:
Kutalmis Bercin
<
kutalmis.bercin@esi-group.com
>
parent
e5f147a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lagrangian/distributionModels/RosinRammler/RosinRammler.C
+4
-4
4 additions, 4 deletions
...lagrangian/distributionModels/RosinRammler/RosinRammler.C
with
4 additions
and
4 deletions
src/lagrangian/distributionModels/RosinRammler/RosinRammler.C
+
4
−
4
View file @
c6220c16
...
@@ -100,13 +100,13 @@ Foam::scalar Foam::distributionModels::RosinRammler::sample() const
...
@@ -100,13 +100,13 @@ Foam::scalar Foam::distributionModels::RosinRammler::sample() const
Foam
::
scalar
Foam
::
distributionModels
::
RosinRammler
::
meanValue
()
const
Foam
::
scalar
Foam
::
distributionModels
::
RosinRammler
::
meanValue
()
const
{
{
// (C:Eq. 5)
// (C:Eq. 5)
const
scalar
a
=
scalar
(
1
)
/
lambda
_
+
scalar
(
1
);
const
scalar
a
=
scalar
(
1
)
/
n
_
+
scalar
(
1
);
const
scalar
qMax
=
pow
(
maxValue_
/
n_
,
lambda_
);
const
scalar
qMax
=
pow
(
maxValue_
/
lambda_
,
n_
);
const
scalar
qMin
=
pow
(
minValue_
/
n_
,
lambda_
);
const
scalar
qMin
=
pow
(
minValue_
/
lambda_
,
n_
);
const
scalar
gMax
=
Math
::
incGamma_P
(
a
,
qMax
);
const
scalar
gMax
=
Math
::
incGamma_P
(
a
,
qMax
);
const
scalar
gMin
=
Math
::
incGamma_P
(
a
,
qMin
);
const
scalar
gMin
=
Math
::
incGamma_P
(
a
,
qMin
);
return
n
_
/
(
exp
(
-
qMin
)
-
exp
(
-
qMax
))
*
(
gMax
-
gMin
);
return
lambda
_
/
(
exp
(
-
qMin
)
-
exp
(
-
qMax
))
*
(
gMax
-
gMin
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Kutalmış Berçin
@kuti
mentioned in issue
#3333
·
2 months ago
mentioned in issue
#3333
mentioned in issue #3333
Toggle commit list
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