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
fcdcf556
Commit
fcdcf556
authored
Jan 08, 2009
by
henry
Browse files
Added support for "pFinal".
parent
eb2e37b2
Changes
7
Hide whitespace changes
Inline
Side-by-side
applications/solvers/incompressible/pisoFoam/pisoFoam.C
View file @
fcdcf556
...
...
@@ -100,7 +100,19 @@ int main(int argc, char *argv[])
);
pEqn
.
setReference
(
pRefCell
,
pRefValue
);
pEqn
.
solve
();
if
(
corr
==
nCorr
-
1
&&
nonOrth
==
nNonOrthCorr
)
{
pEqn
.
solve
(
mesh
.
solver
(
"pFinal"
));
}
else
{
pEqn
.
solve
();
}
if
(
nonOrth
==
nNonOrthCorr
)
{
...
...
src/OpenFOAM/matrices/scalarMatrices/SVD/SVD.C
View file @
fcdcf556
...
...
@@ -308,7 +308,7 @@ Foam::SVD::SVD(const scalarRectangularMatrix& A, const scalar minCondition)
g
=
rv1
[
nm
];
scalar
h
=
rv1
[
k
];
scalar
f
=
((
y
-
z
)
*
(
y
+
z
)
+
(
g
-
h
)
*
(
g
+
h
))
/
(
2
.
0
*
h
*
y
);
g
=
sqrtSumSqr
(
f
,
1
.
0
);
g
=
sqrtSumSqr
(
f
,
scalar
(
1
)
);
f
=
((
x
-
z
)
*
(
x
+
z
)
+
h
*
((
y
/
(
f
+
sign
(
g
,
f
)))
-
h
))
/
x
;
scalar
c
=
1
.
0
;
s
=
1
.
0
;
...
...
src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C
View file @
fcdcf556
...
...
@@ -143,7 +143,7 @@ void Foam::processorPolyPatch::initGeometry()
(
Pstream
::
blocking
,
neighbProcNo
(),
+
3
*
(
sizeof
(
label
)
+
size
()
*
sizeof
(
vector
))
3
*
(
sizeof
(
label
)
+
size
()
*
sizeof
(
vector
)
+
sizeof
(
float
)
)
);
toNeighbProc
...
...
@@ -163,7 +163,7 @@ void Foam::processorPolyPatch::calcGeometry()
(
Pstream
::
blocking
,
neighbProcNo
(),
3
*
(
sizeof
(
label
)
+
size
()
*
sizeof
(
vector
))
3
*
(
sizeof
(
label
)
+
size
()
*
sizeof
(
vector
)
+
sizeof
(
float
)
)
);
fromNeighbProc
>>
neighbFaceCentres_
...
...
@@ -582,7 +582,7 @@ bool Foam::processorPolyPatch::order
transformedCtrs
=
masterCtrs
-
v
[
0
];
}
else
{
{
transformedCtrs
=
masterCtrs
-
v
;
}
matchedAll
=
matchPoints
...
...
@@ -605,7 +605,7 @@ bool Foam::processorPolyPatch::order
masterAnchors
-=
v
[
0
];
}
else
{
{
masterAnchors
-=
v
;
}
}
...
...
src/OpenFOAM/primitives/uint/uintIO.C
View file @
fcdcf556
...
...
@@ -65,7 +65,7 @@ Istream& operator>>(Istream& is, unsigned int& i)
if
(
t
.
isLabel
())
{
i
=
unsigned
(
t
.
labelToken
());
i
=
static_cast
<
unsigned
int
>
(
t
.
labelToken
());
}
else
{
...
...
src/OpenFOAM/primitives/ulong/ulongIO.C
View file @
fcdcf556
...
...
@@ -44,7 +44,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Return a string representation of an ulong
word
name
(
const
unsigned
long
i
)
{
std
::
ostringstream
osBuffer
;
...
...
@@ -66,7 +65,7 @@ Istream& operator>>(Istream& is, unsigned long& i)
if
(
t
.
isLabel
())
{
i
=
u
long
(
t
.
labelToken
());
i
=
static_cast
<
unsigned
long
>
(
t
.
labelToken
());
}
else
{
...
...
src/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES/SpalartAllmarasIDDES.C
View file @
fcdcf556
...
...
@@ -119,12 +119,12 @@ void SpalartAllmarasIDDES::dTildaUpdate(const volScalarField& S)
2
.
0
*
(
pos
(
alpha
)
*
pow
(
expTerm
,
-
11
.
09
)
+
neg
(
alpha
)
*
pow
(
expTerm
,
-
9
.
0
));
volScalarField
fStep
=
min
(
2
.
0
*
pow
(
expTerm
,
-
9
.
0
),
1
.
0
);
volScalarField
fStep
=
min
(
2
.
0
*
pow
(
expTerm
,
-
9
.
0
),
scalar
(
1
)
);
volScalarField
fHyb
=
max
(
1
.
0
-
fd
(
S
),
fStep
);
volScalarField
fAmp
=
1
.
0
-
max
(
ft
(
S
),
fl
(
S
));
volScalarField
fRestore
=
max
(
fHill
-
1
.
0
,
0
.
0
)
*
fAmp
;
volScalarField
fRestore
=
max
(
fHill
-
1
.
0
,
scalar
(
0
)
)
*
fAmp
;
// volScalarField ft2 = IGNORING ft2 terms
...
...
@@ -132,7 +132,7 @@ void SpalartAllmarasIDDES::dTildaUpdate(const volScalarField& S)
(
min
(
100
.
0
,
scalar
(
100
)
,
(
1
.
0
-
Cb1_
/
(
Cw1_
*
sqr
(
kappa_
)
*
fwStar_
)
*
fv2
())
/
max
(
SMALL
,
fv1
())
)
);
...
...
src/turbulenceModels/incompressible/LES/derivedFvPatchFields/wallFunctions/nuSgsWallFunctions/nuSgsSpalartAllmarasWallFunction/nuSgsSpalartAllmarasWallFunctionFvPatchScalarField.C
View file @
fcdcf556
...
...
@@ -139,7 +139,7 @@ void nuSgsSpalartAllmarasWallFunctionFvPatchScalarField::evaluate
do
{
scalar
kUu
=
min
(
kappa
*
magUpara
/
utau
,
10
0
);
scalar
kUu
=
min
(
kappa
*
magUpara
/
utau
,
5
0
);
scalar
fkUu
=
exp
(
kUu
)
-
1
-
kUu
*
(
1
+
0
.
5
*
kUu
);
scalar
f
=
...
...
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