Skip to content
GitLab
Menu
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
9576a43d
Commit
9576a43d
authored
Dec 12, 2012
by
mattijs
Browse files
COMP: polyMeshFilter: single precision build
parent
6622eb4a
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/dynamicMesh/polyMeshFilter/polyMeshFilter.C
View file @
9576a43d
...
...
@@ -123,7 +123,7 @@ void Foam::polyMeshFilter::checkMeshEdgesAndRelaxEdges
}
}
syncTools
::
syncEdgeList
(
mesh_
,
minEdgeLen_
,
minEqOp
<
scalar
>
(),
0
.
0
);
syncTools
::
syncEdgeList
(
mesh_
,
minEdgeLen_
,
minEqOp
<
scalar
>
(),
scalar
(
0
.
0
)
)
;
for
(
label
smoothIter
=
0
;
smoothIter
<
maxSmoothIters_
;
++
smoothIter
)
{
...
...
@@ -154,7 +154,13 @@ void Foam::polyMeshFilter::checkMeshEdgesAndRelaxEdges
);
}
syncTools
::
syncEdgeList
(
mesh_
,
minEdgeLen_
,
minEqOp
<
scalar
>
(),
0
.
0
);
syncTools
::
syncEdgeList
(
mesh_
,
minEdgeLen_
,
minEqOp
<
scalar
>
(),
scalar
(
0
.
0
)
);
}
}
...
...
@@ -343,7 +349,7 @@ void Foam::polyMeshFilter::mapOldMeshEdgeFieldToNewMesh
newMesh
,
newMeshMinEdgeLen
,
maxEqOp
<
scalar
>
(),
0
.
0
scalar
(
0
.
0
)
);
}
...
...
src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C
View file @
9576a43d
...
...
@@ -158,7 +158,7 @@ void Foam::inclinedFilmNusseltHeightFvPatchScalarField::updateCoeffs()
const
volScalarField
&
rho
=
film
.
rho
();
const
scalarField
rhop
(
rho
.
boundaryField
()[
patchI
].
patchInternalField
());
const
scalarField
Re
(
max
(
G
,
0
.
0
)
/
mup
);
const
scalarField
Re
(
max
(
G
,
scalar
(
0
.
0
)
)
/
mup
);
// TODO: currently re-evaluating the entire gTan field to return this patch
const
scalarField
gTan
(
film
.
gTan
()().
boundaryField
()[
patchI
]
&
n
);
...
...
src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C
View file @
9576a43d
...
...
@@ -158,7 +158,7 @@ void Foam::inclinedFilmNusseltInletVelocityFvPatchVectorField::updateCoeffs()
const
volScalarField
&
rho
=
film
.
rho
();
const
scalarField
rhop
(
rho
.
boundaryField
()[
patchI
].
patchInternalField
());
const
scalarField
Re
(
max
(
G
,
0
.
0
)
/
mup
);
const
scalarField
Re
(
max
(
G
,
scalar
(
0
.
0
)
)
/
mup
);
// TODO: currently re-evaluating the entire gTan field to return this patch
const
scalarField
gTan
(
film
.
gTan
()().
boundaryField
()[
patchI
]
&
n
);
...
...
src/turbulenceModels/compressible/RAS/v2f/v2f.C
View file @
9576a43d
...
...
@@ -407,7 +407,8 @@ void v2f::correct()
1
.
0
/
T
*
((
C1_
-
N
)
*
v2_
-
2
.
0
/
3
.
0
*
k_
*
(
C1_
-
1
.
0
))
);
tmp
<
volScalarField
>
Ceps1
=
1
.
4
*
(
1
.
0
+
0
.
05
*
min
(
sqrt
(
k_
/
v2_
),
100
.
0
));
tmp
<
volScalarField
>
Ceps1
=
1
.
4
*
(
1
.
0
+
0
.
05
*
min
(
sqrt
(
k_
/
v2_
),
scalar
(
100
.
0
)));
// Update epsilon (and possibly G) at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/v2f/v2f.C
View file @
9576a43d
...
...
@@ -374,7 +374,8 @@ void v2f::correct()
);
tmp
<
volScalarField
>
Ceps1
=
1
.
4
*
(
1
.
0
+
0
.
05
*
min
(
sqrt
(
k_
/
v2_
),
100
.
0
));
tmp
<
volScalarField
>
Ceps1
=
1
.
4
*
(
1
.
0
+
0
.
05
*
min
(
sqrt
(
k_
/
v2_
),
scalar
(
100
.
0
)));
// Update epsilon (and possibly G) at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
Write
Preview
Supports
Markdown
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