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
cd51a5ee
Commit
cd51a5ee
authored
Apr 17, 2012
by
Henry
Browse files
Consistency: Changed exponent FORTRAN style 'E' to C style 'e'
parent
b4fe2268
Changes
66
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/compressibleInterFoam/createFields.H
View file @
cd51a5ee
...
...
@@ -161,8 +161,8 @@
volScalarField
gh
(
"gh"
,
g
&
mesh
.
C
());
surfaceScalarField
ghf
(
"ghf"
,
g
&
mesh
.
Cf
());
volScalarField
rho1
(
eos1
->
rho
(
p
,
T
));
volScalarField
rho2
(
eos2
->
rho
(
p
,
T
));
volScalarField
rho1
(
"rho1"
,
eos1
->
rho
(
p
,
T
));
volScalarField
rho2
(
"rho2"
,
eos2
->
rho
(
p
,
T
));
volScalarField
rho
(
...
...
applications/solvers/multiphase/compressibleInterFoam/phaseEquationsOfState/Make/files
View file @
cd51a5ee
...
...
@@ -3,5 +3,6 @@ phaseEquationOfState/newPhaseEquationOfState.C
constant/constant.C
linear/linear.C
perfectFluid/perfectFluid.C
adiabaticPerfectFluid/adiabaticPerfectFluid.C
LIB = $(FOAM_LIBBIN)/libphaseEquationsOfState
applications/solvers/multiphase/compressibleInterFoam/phaseEquationsOfState/constant/constant.C
View file @
cd51a5ee
...
...
@@ -79,7 +79,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::constant::rho
(
"rho"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
p
.
mesh
(),
rho_
...
...
@@ -102,7 +105,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::constant::psi
(
"psi"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
p
.
mesh
(),
dimensionedScalar
(
"psi"
,
dimDensity
/
dimPressure
,
0
)
...
...
applications/solvers/multiphase/compressibleInterFoam/phaseEquationsOfState/linear/linear.C
View file @
cd51a5ee
...
...
@@ -80,7 +80,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::linear::rho
(
"rho"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
rho0_
+
psi_
*
p
)
...
...
@@ -102,7 +105,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::linear::psi
(
"psi"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
p
.
mesh
(),
psi_
...
...
applications/solvers/multiphase/compressibleInterFoam/phaseEquationsOfState/perfectFluid/perfectFluid.C
View file @
cd51a5ee
...
...
@@ -80,7 +80,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::perfectFluid::rho
(
"rho"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
rho0_
+
psi
(
p
,
T
)
*
p
)
...
...
@@ -102,7 +105,10 @@ Foam::tmp<Foam::volScalarField> Foam::phaseEquationsOfState::perfectFluid::psi
(
"psi"
,
p
.
time
().
timeName
(),
p
.
mesh
()
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
1
.
0
/
(
R_
*
T
)
)
...
...
applications/test/syncTools/Test-syncTools.C
View file @
cd51a5ee
...
...
@@ -214,7 +214,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
forAll
(
localPoints
,
i
)
{
const
point
pt
=
localPoints
[
i
]
+
1
E
-4
*
rndGen
.
vector01
();
const
point
pt
=
localPoints
[
i
]
+
1
e
-4
*
rndGen
.
vector01
();
label
meshPointI
=
allBoundary
.
meshPoints
()[
i
];
...
...
@@ -299,7 +299,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{
const
edge
&
e
=
edges
[
i
];
const
point
pt
=
e
.
centre
(
localPoints
)
+
1
E
-4
*
rndGen
.
vector01
();
const
point
pt
=
e
.
centre
(
localPoints
)
+
1
e
-4
*
rndGen
.
vector01
();
label
meshEdgeI
=
meshEdges
[
i
];
...
...
applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C
View file @
cd51a5ee
...
...
@@ -58,7 +58,7 @@ using namespace Foam;
// Max cos angle for edges to be considered aligned with axis.
static
const
scalar
edgeTol
=
1
E
-3
;
static
const
scalar
edgeTol
=
1
e
-3
;
void
writeSet
(
const
cellSet
&
cells
,
const
string
&
msg
)
...
...
applications/utilities/mesh/advanced/collapseEdges/collapseEdges.C
View file @
cd51a5ee
...
...
@@ -528,7 +528,7 @@ int main(int argc, char *argv[])
(
mesh
,
boundaryPoint
,
1
E
-9
,
// factor of largest face area
1
e
-9
,
// factor of largest face area
5
,
// factor between smallest and largest edge on
// face
collapser
...
...
applications/utilities/mesh/advanced/selectCells/edgeStats.C
View file @
cd51a5ee
...
...
@@ -31,7 +31,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
const
Foam
::
scalar
Foam
::
edgeStats
::
edgeTol_
=
1
E
-3
;
const
Foam
::
scalar
Foam
::
edgeStats
::
edgeTol_
=
1
e
-3
;
...
...
applications/utilities/mesh/generation/cv2DMesh/cv2DMesh.C
View file @
cd51a5ee
...
...
@@ -209,7 +209,7 @@ int main(int argc, char *argv[])
const
pointField
&
points
=
pMesh
.
points
();
const
boundBox
&
bb
=
pMesh
.
bounds
();
const
scalar
mergeDim
=
1
E
-4
*
bb
.
minDim
();
const
scalar
mergeDim
=
1
e
-4
*
bb
.
minDim
();
forAll
(
edges
,
edgeI
)
{
...
...
applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C
View file @
cd51a5ee
...
...
@@ -561,7 +561,7 @@ Foam::label Foam::conformalVoronoiMesh::mergeCloseDualVertices
scalar
closenessTolerance
=
cvMeshControls
().
mergeClosenessCoeff
();
// Absolute distance for points to be considered coincident. Bit adhoc
// but points were seen with distSqr ~ 1
E
-30 which is SMALL^2. Add a few
// but points were seen with distSqr ~ 1
e
-30 which is SMALL^2. Add a few
// digits to account for truncation errors.
scalar
coincidentDistanceSqr
=
sqr
(
...
...
applications/utilities/mesh/generation/cvMesh/cvMeshBackgroundMesh/cvMeshBackgroundMesh.C
View file @
cd51a5ee
...
...
@@ -51,7 +51,7 @@ using namespace Foam;
// Tolerance (as fraction of the bounding box). Needs to be fairly lax since
// usually meshes get written with limited precision (6 digits)
static
const
scalar
defaultMergeTol
=
1
E
-6
;
static
const
scalar
defaultMergeTol
=
1
e
-6
;
// Get merging distance when matching face centres
scalar
getMergeDistance
...
...
@@ -397,7 +397,7 @@ int main(int argc, char *argv[])
"mergeTol"
,
"scalar"
,
"specify the merge distance relative to the bounding box size "
"(default 1
E
-6)"
"(default 1
e
-6)"
);
#include
"setRootCase.H"
...
...
applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C
View file @
cd51a5ee
...
...
@@ -666,7 +666,7 @@ int main(int argc, char *argv[])
const
boundBox
&
bb
=
mesh
.
bounds
();
const
vector
span
=
bb
.
span
();
const
scalar
mergeDim
=
1
E
-4
*
bb
.
minDim
();
const
scalar
mergeDim
=
1
e
-4
*
bb
.
minDim
();
Info
<<
"Mesh bounding box : "
<<
bb
<<
nl
<<
" with span : "
<<
span
<<
nl
...
...
applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C
View file @
cd51a5ee
...
...
@@ -257,7 +257,7 @@ int main(int argc, char *argv[])
const
pointField
&
points
=
mesh
().
points
();
const
boundBox
&
bb
=
mesh
().
bounds
();
const
scalar
mergeDim
=
1
E
-4
*
bb
.
minDim
();
const
scalar
mergeDim
=
1
e
-4
*
bb
.
minDim
();
forAll
(
edges
,
edgeI
)
{
...
...
applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C
View file @
cd51a5ee
...
...
@@ -41,8 +41,8 @@ Foam::label Foam::findOppositeWedge
if
(
pp
.
size
()
==
wpp
.
size
()
&&
mag
(
pp
.
axis
()
&
wpp
.
axis
())
>=
(
1
-
1
E
-3
)
&&
mag
(
ppCosAngle
-
wppCosAngle
)
>=
1
E
-3
&&
mag
(
pp
.
axis
()
&
wpp
.
axis
())
>=
(
1
-
1
e
-3
)
&&
mag
(
ppCosAngle
-
wppCosAngle
)
>=
1
e
-3
)
{
return
patchI
;
...
...
@@ -106,7 +106,7 @@ bool Foam::checkWedges
);
if
(
mag
(
opp
.
axis
()
&
pp
.
axis
())
<
(
1
-
1
E
-3
))
if
(
mag
(
opp
.
axis
()
&
pp
.
axis
())
<
(
1
-
1
e
-3
))
{
if
(
report
)
{
...
...
applications/utilities/mesh/manipulation/polyDualMesh/meshDualiser.C
View file @
cd51a5ee
...
...
@@ -52,7 +52,7 @@ void Foam::meshDualiser::checkPolyTopoChange(const polyTopoChange& meshMod)
label
nUnique
=
mergePoints
(
points
,
1
E
-6
,
1
e
-6
,
false
,
oldToNew
);
...
...
@@ -226,7 +226,7 @@ Foam::label Foam::meshDualiser::addInternalFace
label
nUnique
=
mergePoints
(
facePoints
,
1
E
-6
,
1
e
-6
,
false
,
oldToNew
);
...
...
applications/utilities/mesh/manipulation/refineMesh/refineMesh.C
View file @
cd51a5ee
...
...
@@ -52,7 +52,7 @@ using namespace Foam;
// Max cos angle for edges to be considered aligned with axis.
static
const
scalar
edgeTol
=
1
E
-3
;
static
const
scalar
edgeTol
=
1
e
-3
;
// Calculate some edge statistics on mesh.
...
...
@@ -206,7 +206,7 @@ label twoDNess(const polyMesh& mesh)
minLen
=
min
(
minLen
,
mesh
.
edges
()[
cEdges
[
i
]].
mag
(
mesh
.
points
()));
}
if
(
cellPlane
.
distance
(
ctrs
[
cellI
])
>
1
E
-6
*
minLen
)
if
(
cellPlane
.
distance
(
ctrs
[
cellI
])
>
1
e
-6
*
minLen
)
{
// Centres not in plane
return
-
1
;
...
...
@@ -274,7 +274,7 @@ label twoDNess(const polyMesh& mesh)
const
scalarField
cosAngle
(
mag
(
n
/
mag
(
n
)
&
cellPlane
.
normal
()));
if
(
mag
(
min
(
cosAngle
)
-
max
(
cosAngle
))
>
1
E
-6
)
if
(
mag
(
min
(
cosAngle
)
-
max
(
cosAngle
))
>
1
e
-6
)
{
// cosAngle should be either ~1 over all faces (2D front and
// back) or ~0 (all other patches perp to 2D)
...
...
applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C
View file @
cd51a5ee
...
...
@@ -55,7 +55,7 @@ using namespace Foam;
// Tolerance (as fraction of the bounding box). Needs to be fairly lax since
// usually meshes get written with limited precision (6 digits)
static
const
scalar
defaultMergeTol
=
1
E
-7
;
static
const
scalar
defaultMergeTol
=
1
e
-7
;
static
void
renumber
...
...
@@ -290,7 +290,7 @@ int main(int argc, char *argv[])
"mergeTol"
,
"scalar"
,
"specify the merge distance relative to the bounding box size "
"(default 1
E
-7)"
"(default 1
e
-7)"
);
argList
::
addBoolOption
(
...
...
applications/utilities/parallelProcessing/redistributePar/redistributePar.C
View file @
cd51a5ee
...
...
@@ -60,7 +60,7 @@ Description
// Tolerance (as fraction of the bounding box). Needs to be fairly lax since
// usually meshes get written with limited precision (6 digits)
static
const
scalar
defaultMergeTol
=
1
E
-6
;
static
const
scalar
defaultMergeTol
=
1
e
-6
;
//// Read mesh if available. Otherwise create empty mesh with same non-proc
...
...
@@ -721,7 +721,7 @@ int main(int argc, char *argv[])
"mergeTol"
,
"scalar"
,
"specify the merge distance relative to the bounding box size "
"(default 1
E
-6)"
"(default 1
e
-6)"
);
# include "setRootCase.H"
...
...
applications/utilities/preProcessing/mapFields/mapLagrangian.C
View file @
cd51a5ee
...
...
@@ -32,7 +32,7 @@ License
namespace
Foam
{
static
const
scalar
perturbFactor
=
1
E
-6
;
static
const
scalar
perturbFactor
=
1
e
-6
;
// Special version of findCell that generates a cell guaranteed to be
...
...
Prev
1
2
3
4
Next
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