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
a3788fe8
Commit
a3788fe8
authored
Dec 20, 2010
by
Mark Olesen
Browse files
COMP: avoid ambiguous construct from tmp - utils/ pre+post processing
parent
25951c0f
Changes
11
Hide whitespace changes
Inline
Side-by-side
applications/utilities/postProcessing/miscellaneous/postChannel/collapse.H
View file @
a3788fe8
scalarField
UMeanXvalues
=
channelIndexing
.
collapse
scalarField
UMeanXvalues
(
UMean
.
component
(
vector
::
X
)()
channelIndexing
.
collapse
(
UMean
.
component
(
vector
::
X
)()
)
);
scalarField
UMeanYvalues
=
channelIndexing
.
collapse
scalarField
UMeanYvalues
(
UMean
.
component
(
vector
::
Y
)()
channelIndexing
.
collapse
(
UMean
.
component
(
vector
::
Y
)()
)
);
scalarField
UMeanZvalues
=
channelIndexing
.
collapse
scalarField
UMeanZvalues
(
UMean
.
component
(
vector
::
Z
)()
channelIndexing
.
collapse
(
UMean
.
component
(
vector
::
Z
)()
)
);
scalarField
RxxValues
=
channelIndexing
.
collapse
(
Rxx
);
scalarField
RyyValues
=
channelIndexing
.
collapse
(
Ryy
);
scalarField
RzzValues
=
channelIndexing
.
collapse
(
Rzz
);
scalarField
RxyValues
=
channelIndexing
.
collapse
(
Rxy
,
true
);
scalarField
RxxValues
(
channelIndexing
.
collapse
(
Rxx
)
)
;
scalarField
RyyValues
(
channelIndexing
.
collapse
(
Ryy
)
)
;
scalarField
RzzValues
(
channelIndexing
.
collapse
(
Rzz
)
)
;
scalarField
RxyValues
(
channelIndexing
.
collapse
(
Rxy
,
true
)
)
;
scalarField
pPrime2MeanValues
=
channelIndexing
.
collapse
(
pPrime2Mean
);
scalarField
pPrime2MeanValues
(
channelIndexing
.
collapse
(
pPrime2Mean
)
)
;
/*
scalarField epsilonValues
=
channelIndexing.collapse(epsilonMean);
scalarField epsilonValues
(
channelIndexing.collapse(epsilonMean)
)
;
scalarField nuMeanValues
=
channelIndexing.collapse(nuMean);
scalarField nuPrimeValues
=
channelIndexing.collapse(nuPrime);
scalarField nuMeanValues
(
channelIndexing.collapse(nuMean)
)
;
scalarField nuPrimeValues
(
channelIndexing.collapse(nuPrime)
)
;
scalarField gammaDotMeanValues
=
channelIndexing.collapse(gammaDotMean);
scalarField gammaDotPrimeValues
=
channelIndexing.collapse(gammaDotPrime);
scalarField gammaDotMeanValues
(
channelIndexing.collapse(gammaDotMean)
)
;
scalarField gammaDotPrimeValues
(
channelIndexing.collapse(gammaDotPrime)
)
;
*/
scalarField
urmsValues
=
sqrt
(
mag
(
RxxValues
));
scalarField
vrmsValues
=
sqrt
(
mag
(
RyyValues
));
scalarField
wrmsValues
=
sqrt
(
mag
(
RzzValues
));
scalarField
urmsValues
(
sqrt
(
mag
(
RxxValues
))
)
;
scalarField
vrmsValues
(
sqrt
(
mag
(
RyyValues
))
)
;
scalarField
wrmsValues
(
sqrt
(
mag
(
RzzValues
))
)
;
scalarField
kValues
=
0
.
5
*
(
sqr
(
urmsValues
)
+
sqr
(
vrmsValues
)
+
sqr
(
wrmsValues
));
scalarField
kValues
(
0
.
5
*
(
sqr
(
urmsValues
)
+
sqr
(
vrmsValues
)
+
sqr
(
wrmsValues
))
);
const
scalarField
&
y
=
channelIndexing
.
y
();
...
...
applications/utilities/postProcessing/turbulence/createTurbulenceFields/createTurbulenceFields.C
View file @
a3788fe8
...
...
@@ -61,13 +61,13 @@ int main(int argc, char *argv[])
// Cache the turbulence fields
Info
<<
"
\n
Retrieving field k from turbulence model"
<<
endl
;
const
volScalarField
k
=
RASModel
->
k
();
const
volScalarField
k
(
RASModel
->
k
()
)
;
Info
<<
"
\n
Retrieving field epsilon from turbulence model"
<<
endl
;
const
volScalarField
epsilon
=
RASModel
->
epsilon
();
const
volScalarField
epsilon
(
RASModel
->
epsilon
()
)
;
Info
<<
"
\n
Retrieving field R from turbulence model"
<<
endl
;
const
volSymmTensorField
R
=
RASModel
->
R
();
const
volSymmTensorField
R
(
RASModel
->
R
()
)
;
// Check availability of tubulence fields
...
...
applications/utilities/postProcessing/velocityField/Lambda2/Lambda2.C
View file @
a3788fe8
...
...
@@ -55,8 +55,10 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
const
volTensorField
gradU
(
fvc
::
grad
(
U
));
volTensorField
SSplusWW
=
(
symm
(
gradU
)
&
symm
(
gradU
))
+
(
skew
(
gradU
)
&
skew
(
gradU
));
volTensorField
SSplusWW
(
(
symm
(
gradU
)
&
symm
(
gradU
))
+
(
skew
(
gradU
)
&
skew
(
gradU
))
);
volScalarField
Lambda2
(
...
...
applications/utilities/postProcessing/velocityField/Mach/Mach.C
View file @
a3788fe8
...
...
@@ -71,8 +71,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
basicPsiThermo
::
New
(
mesh
)
);
volScalarField
Cp
=
thermo
->
Cp
();
volScalarField
Cv
=
thermo
->
Cv
();
volScalarField
Cp
(
thermo
->
Cp
()
)
;
volScalarField
Cv
(
thermo
->
Cv
()
)
;
MachPtr
.
set
(
...
...
applications/utilities/postProcessing/velocityField/Q/Q.C
View file @
a3788fe8
...
...
@@ -53,7 +53,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{
Info
<<
" Reading U"
<<
endl
;
volVectorField
U
(
Uheader
,
mesh
);
volTensorField
gradU
=
fvc
::
grad
(
U
);
volTensorField
gradU
(
fvc
::
grad
(
U
)
)
;
volScalarField
Q
(
...
...
@@ -72,11 +72,11 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
// This is a second way of calculating Q, that delivers results
// very close, but not identical to the first approach.
volSymmTensorField S
=
symm(gradU); // symmetric part of tensor
volTensorField W
=
skew(gradU)
;
// anti-symmetric part
volSymmTensorField S
(
symm(gradU)
)
; // symmetric part of tensor
volTensorField W
(
skew(gradU)
);
// anti-symmetric part
volScalarField SS
= S&&S
;
volScalarField WW
= W&&W
;
volScalarField SS
(S && S)
;
volScalarField WW
(W && W)
;
volScalarField Q
(
...
...
applications/utilities/postProcessing/velocityField/flowType/flowType.C
View file @
a3788fe8
...
...
@@ -62,9 +62,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
Info
<<
" Reading U"
<<
endl
;
volVectorField
U
(
Uheader
,
mesh
);
volTensorField
gradU
=
fvc
::
grad
(
U
);
volScalarField
magD
=
mag
(
symm
(
gradU
));
volScalarField
magOmega
=
mag
(
skew
(
gradU
));
volTensorField
gradU
(
fvc
::
grad
(
U
)
)
;
volScalarField
magD
(
mag
(
symm
(
gradU
))
)
;
volScalarField
magOmega
(
mag
(
skew
(
gradU
))
)
;
dimensionedScalar
smallMagD
(
"smallMagD"
,
magD
.
dimensions
(),
SMALL
);
Info
<<
" Calculating flowType"
<<
endl
;
...
...
applications/utilities/postProcessing/wall/wallHeatFlux/wallHeatFlux.C
View file @
a3788fe8
...
...
@@ -54,8 +54,10 @@ int main(int argc, char *argv[])
#include "createFields.H"
surfaceScalarField
heatFlux
=
fvc
::
interpolate
(
RASModel
->
alphaEff
())
*
fvc
::
snGrad
(
h
);
surfaceScalarField
heatFlux
(
fvc
::
interpolate
(
RASModel
->
alphaEff
())
*
fvc
::
snGrad
(
h
)
);
const
surfaceScalarField
::
GeometricBoundaryField
&
patchHeatFlux
=
heatFlux
.
boundaryField
();
...
...
applications/utilities/postProcessing/wall/yPlusLES/createFields.H
View file @
a3788fe8
...
...
@@ -21,4 +21,4 @@ autoPtr<incompressible::LESModel> sgsModel
incompressible
::
LESModel
::
New
(
U
,
phi
,
laminarTransport
)
);
volScalarField
::
GeometricBoundaryField
d
=
nearWallDist
(
mesh
).
y
();
volScalarField
::
GeometricBoundaryField
d
(
nearWallDist
(
mesh
).
y
()
)
;
applications/utilities/postProcessing/wall/yPlusLES/yPlusLES.C
View file @
a3788fe8
...
...
@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
);
volScalarField
::
GeometricBoundaryField
d
=
nearWallDist
(
mesh
).
y
();
volScalarField
nuEff
=
sgsModel
->
nuEff
();
volScalarField
nuEff
(
sgsModel
->
nuEff
()
)
;
const
fvPatchList
&
patches
=
mesh
.
boundary
();
...
...
applications/utilities/preProcessing/applyBoundaryLayer/applyBoundaryLayer.C
View file @
a3788fe8
...
...
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
// Calculate nut
tmp
<
volScalarField
>
tnut
=
turbulence
->
nut
();
volScalarField
&
nut
=
tnut
();
volScalarField
S
=
mag
(
dev
(
symm
(
fvc
::
grad
(
U
))));
volScalarField
S
(
mag
(
dev
(
symm
(
fvc
::
grad
(
U
))))
)
;
nut
=
sqr
(
kappa
*
min
(
y
,
ybl
))
*::
sqrt
(
2
)
*
S
;
if
(
args
.
optionFound
(
"writenut"
))
...
...
applications/utilities/preProcessing/applyBoundaryLayer/createFields.H
View file @
a3788fe8
...
...
@@ -47,7 +47,7 @@ License
);
Info
<<
"Calculating wall distance field"
<<
endl
;
volScalarField
y
=
wallDist
(
mesh
).
y
();
volScalarField
y
(
wallDist
(
mesh
).
y
()
)
;
// Set the mean boundary-layer thickness
dimensionedScalar
ybl
(
"ybl"
,
dimLength
,
0
);
...
...
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