Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0813d3a5
Commit
0813d3a5
authored
Jan 07, 2013
by
andy
Browse files
ENH: Added calculation/output for cloud min,max(T)
parent
7a8f3cd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.C
View file @
0813d3a5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -496,6 +496,9 @@ template<class CloudType>
void
Foam
::
ThermoCloud
<
CloudType
>::
info
()
{
CloudType
::
info
();
Info
<<
" Temperature min/max = "
<<
Tmin
()
<<
", "
<<
Tmax
()
<<
endl
;
}
...
...
src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.H
View file @
0813d3a5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -308,6 +308,15 @@ public:
inline
tmp
<
volScalarField
>
sigmap
()
const
;
// Check
//- Maximum temperature
inline
scalar
Tmax
()
const
;
//- Minimum temperature
inline
scalar
Tmin
()
const
;
// Cloud evolution functions
//- Set parcel thermo properties
...
...
src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H
View file @
0813d3a5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -379,4 +379,36 @@ Foam::ThermoCloud<CloudType>::sigmap() const
}
template
<
class
CloudType
>
inline
Foam
::
scalar
Foam
::
ThermoCloud
<
CloudType
>::
Tmax
()
const
{
scalar
T
=
-
GREAT
;
forAllConstIter
(
typename
ThermoCloud
<
CloudType
>
,
*
this
,
iter
)
{
const
parcelType
&
p
=
iter
();
T
=
max
(
T
,
p
.
T
());
}
reduce
(
T
,
maxOp
<
scalar
>
());
return
max
(
0.0
,
T
);
}
template
<
class
CloudType
>
inline
Foam
::
scalar
Foam
::
ThermoCloud
<
CloudType
>::
Tmin
()
const
{
scalar
T
=
GREAT
;
forAllConstIter
(
typename
ThermoCloud
<
CloudType
>
,
*
this
,
iter
)
{
const
parcelType
&
p
=
iter
();
T
=
min
(
T
,
p
.
T
());
}
reduce
(
T
,
minOp
<
scalar
>
());
return
max
(
0.0
,
T
);
}
// ************************************************************************* //
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