Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8c212543
Commit
8c212543
authored
Jan 17, 2011
by
Andrew Heather
Browse files
ENH: Added particle maxCo entry in KinematicCloud
parent
0e622a4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C
View file @
8c212543
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -48,6 +48,7 @@ void Foam::KinematicCloud<ParcelType>::cloudSolution::read()
if
(
steadyState
())
{
dict_
.
lookup
(
"calcFrequency"
)
>>
calcFrequency_
;
dict_
.
lookup
(
"maxCo"
)
>>
maxCo_
;
dict_
.
lookup
(
"maxTrackTime"
)
>>
maxTrackTime_
;
dict_
.
subDict
(
"sourceTerms"
).
lookup
(
"resetOnStartup"
)
>>
resetSourcesOnStartup_
;
...
...
@@ -67,6 +68,7 @@ Foam::KinematicCloud<ParcelType>::cloudSolution::cloudSolution
active_
(
dict
.
lookup
(
"active"
)),
transient_
(
false
),
calcFrequency_
(
1
),
maxCo_
(
0
.
3
),
iter_
(
1
),
deltaT_
(
0
.
0
),
coupled_
(
false
),
...
...
@@ -92,6 +94,7 @@ Foam::KinematicCloud<ParcelType>::cloudSolution::cloudSolution
active_
(
cs
.
active_
),
transient_
(
cs
.
transient_
),
calcFrequency_
(
cs
.
calcFrequency_
),
maxCo_
(
cs
.
maxCo_
),
iter_
(
cs
.
iter_
),
deltaT_
(
cs
.
deltaT_
),
coupled_
(
cs
.
coupled_
),
...
...
@@ -112,6 +115,7 @@ Foam::KinematicCloud<ParcelType>::cloudSolution::cloudSolution
active_
(
false
),
transient_
(
false
),
calcFrequency_
(
0
),
maxCo_
(
GREAT
),
iter_
(
0
),
deltaT_
(
0
.
0
),
coupled_
(
false
),
...
...
src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H
View file @
8c212543
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -136,6 +136,11 @@ public:
// NOTE: Steady operation only
label
calcFrequency_
;
//- Maximum particle Courant number
// Max fraction of current cell that can be traversed in a single
// step
scalar
maxCo_
;
//- Current cloud iteration
label
iter_
;
...
...
@@ -218,6 +223,9 @@ public:
//- Return const access to the calculation frequency
inline
label
calcFrequency
()
const
;
//- Return const access to the max particle Courant number
inline
scalar
maxCo
()
const
;
//- Return const access to the current cloud iteration
inline
label
iter
()
const
;
...
...
src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H
View file @
8c212543
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -99,6 +99,14 @@ Foam::KinematicCloud<ParcelType>::cloudSolution::calcFrequency() const
}
template
<
class
ParcelType
>
inline
Foam
::
scalar
Foam
::
KinematicCloud
<
ParcelType
>::
cloudSolution
::
maxCo
()
const
{
return
maxCo_
;
}
template
<
class
ParcelType
>
inline
Foam
::
label
Foam
::
KinematicCloud
<
ParcelType
>::
cloudSolution
::
iter
()
const
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment