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
909e6b27
Commit
909e6b27
authored
Nov 30, 2009
by
Mark Olesen
Browse files
Apply coding style recommendations:
- space between keyword and bracket in 'for(..)', 'if(..)', 'while(..)'
parent
6bdb7fb7
Changes
148
Hide whitespace changes
Inline
Side-by-side
applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C
View file @
909e6b27
...
...
@@ -155,7 +155,7 @@ void maxwellSlipUFvPatchVectorField::updateCoeffs()
refValue
()
=
Uwall_
;
if
(
thermalCreep_
)
if
(
thermalCreep_
)
{
const
volScalarField
&
vsfT
=
this
->
db
().
objectRegistry
::
lookupObject
<
volScalarField
>
(
"T"
);
...
...
@@ -167,7 +167,7 @@ void maxwellSlipUFvPatchVectorField::updateCoeffs()
refValue
()
-=
3
.
0
*
pnu
/
(
4
.
0
*
pT
)
*
transform
(
I
-
n
*
n
,
gradpT
);
}
if
(
curvature_
)
if
(
curvature_
)
{
const
fvPatchTensorField
&
ptauMC
=
patch
().
lookupPatchField
<
volTensorField
,
tensor
>
(
"tauMC"
);
...
...
applications/solvers/incompressible/channelFoam/createGradP.H
View file @
909e6b27
...
...
@@ -11,7 +11,7 @@
runTime
.
path
()
/
runTime
.
timeName
()
/
"uniform"
/
"gradP.raw"
);
if
(
gradPFile
.
good
())
if
(
gradPFile
.
good
())
{
gradPFile
>>
gradP
;
Info
<<
"Reading average pressure gradient"
<<
endl
...
...
applications/solvers/incompressible/channelFoam/writeGradP.H
View file @
909e6b27
...
...
@@ -5,7 +5,7 @@
runTime
.
path
()
/
runTime
.
timeName
()
/
"uniform"
/
"gradP.raw"
);
if
(
gradPFile
.
good
())
if
(
gradPFile
.
good
())
{
gradPFile
<<
gradP
<<
endl
;
}
...
...
applications/solvers/incompressible/pimpleDyMFoam/correctPhi.H
View file @
909e6b27
...
...
@@ -29,7 +29,7 @@
for
(
label
i
=
0
;
i
<
p
.
boundaryField
().
size
();
i
++
)
{
if
(
p
.
boundaryField
()[
i
].
fixesValue
())
if
(
p
.
boundaryField
()[
i
].
fixesValue
())
{
pcorrTypes
[
i
]
=
fixedValueFvPatchScalarField
::
typeName
;
}
...
...
@@ -50,7 +50,7 @@
pcorrTypes
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pcorrEqn
(
...
...
applications/solvers/multiphase/bubbleFoam/kEpsilon.H
View file @
909e6b27
if
(
turbulence
)
if
(
turbulence
)
{
if
(
mesh
.
changing
())
{
...
...
applications/solvers/multiphase/bubbleFoam/pEqn.H
View file @
909e6b27
...
...
@@ -34,7 +34,7 @@
surfaceScalarField
Dp
(
"(rho*(1|A(U)))"
,
alphaf
*
rUaAf
/
rhoa
+
betaf
*
rUbAf
/
rhob
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/compressibleInterDyMFoam/correctPhi.H
View file @
909e6b27
...
...
@@ -42,7 +42,7 @@
adjustPhi
(
phi
,
U
,
pcorr
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pcorrEqn
(
...
...
applications/solvers/multiphase/compressibleInterFoam/pEqn.H
View file @
909e6b27
...
...
@@ -30,7 +30,7 @@
+
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
)
*
rUAf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqnIncomp
(
...
...
applications/solvers/multiphase/interDyMFoam/correctPhi.H
View file @
909e6b27
...
...
@@ -42,7 +42,7 @@
adjustPhi
(
phi
,
U
,
pcorr
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pcorrEqn
(
...
...
applications/solvers/multiphase/interDyMFoam/pEqn.H
View file @
909e6b27
...
...
@@ -18,7 +18,7 @@
+
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
)
*
rAUf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/interFoam/correctPhi.H
View file @
909e6b27
...
...
@@ -34,7 +34,7 @@
adjustPhi
(
phi
,
U
,
pcorr
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pcorrEqn
(
...
...
applications/solvers/multiphase/interFoam/pEqn.H
View file @
909e6b27
...
...
@@ -19,7 +19,7 @@
+
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
)
*
rUAf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/interPhaseChangeFoam/correctPhi.H
View file @
909e6b27
...
...
@@ -34,7 +34,7 @@
adjustPhi
(
phi
,
U
,
pcorr
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pcorrEqn
(
...
...
applications/solvers/multiphase/interPhaseChangeFoam/pEqn.H
View file @
909e6b27
...
...
@@ -23,7 +23,7 @@
const
volScalarField
&
vDotcP
=
vDotP
[
0
]();
const
volScalarField
&
vDotvP
=
vDotP
[
1
]();
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C
View file @
909e6b27
...
...
@@ -125,7 +125,7 @@ Foam::tmp<Foam::volScalarField> Foam::multiphaseMixture::rho() const
tmp
<
volScalarField
>
trho
=
iter
()
*
iter
().
rho
();
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
{
trho
()
+=
iter
()
*
iter
().
rho
();
}
...
...
@@ -140,7 +140,7 @@ Foam::tmp<Foam::volScalarField> Foam::multiphaseMixture::mu() const
tmp
<
volScalarField
>
tmu
=
iter
()
*
iter
().
rho
()
*
iter
().
nu
();
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
{
tmu
()
+=
iter
()
*
iter
().
rho
()
*
iter
().
nu
();
}
...
...
@@ -156,7 +156,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::multiphaseMixture::muf() const
tmp
<
surfaceScalarField
>
tmuf
=
fvc
::
interpolate
(
iter
())
*
iter
().
rho
()
*
fvc
::
interpolate
(
iter
().
nu
());
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
for
(
++
iter
;
iter
!=
phases_
.
end
();
++
iter
)
{
tmuf
()
+=
fvc
::
interpolate
(
iter
())
*
iter
().
rho
()
*
fvc
::
interpolate
(
iter
().
nu
());
...
...
@@ -210,7 +210,7 @@ Foam::multiphaseMixture::surfaceTensionForce() const
PtrDictionary
<
phase
>::
const_iterator
iter2
=
iter1
;
++
iter2
;
for
(;
iter2
!=
phases_
.
end
();
++
iter2
)
for
(;
iter2
!=
phases_
.
end
();
++
iter2
)
{
const
phase
&
alpha2
=
iter2
();
...
...
@@ -489,7 +489,7 @@ void Foam::multiphaseMixture::solveAlphas
if
(
cycleAlpha
)
{
PtrDictionary
<
phase
>::
iterator
refPhaseIter
=
phases_
.
begin
();
for
(
label
i
=
0
;
i
<
nSolves
%
phases_
.
size
();
i
++
)
for
(
label
i
=
0
;
i
<
nSolves
%
phases_
.
size
();
i
++
)
{
++
refPhaseIter
;
}
...
...
applications/solvers/multiphase/multiphaseInterFoam/pEqn.H
View file @
909e6b27
...
...
@@ -18,7 +18,7 @@
+
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
)
*
rUAf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/settlingFoam/pEqn.H
View file @
909e6b27
...
...
@@ -17,7 +17,7 @@ phi =
surfaceScalarField
phiU
(
"phiU"
,
phi
);
phi
+=
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
*
rUAf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/twoLiquidMixingFoam/pEqn.H
View file @
909e6b27
...
...
@@ -13,7 +13,7 @@
phi
=
phiU
+
fvc
::
interpolate
(
rho
)
*
(
g
&
mesh
.
Sf
())
*
rUAf
;
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.C
View file @
909e6b27
...
...
@@ -78,12 +78,12 @@ Foam::tmp<Foam::volScalarField> Foam::GidaspowErgunWenYu::K
forAll
(
Re
,
celli
)
{
if
(
Re
[
celli
]
>
1000
.
0
)
if
(
Re
[
celli
]
>
1000
.
0
)
{
Cds
[
celli
]
=
0
.
44
;
}
}
// Wen and Yu (1966)
tmp
<
volScalarField
>
tKWenYu
=
0
.
75
*
Cds
*
phaseb_
.
rho
()
*
Ur
*
bp
/
phasea_
.
d
();
volScalarField
&
KWenYu
=
tKWenYu
();
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.C
View file @
909e6b27
...
...
@@ -77,7 +77,7 @@ Foam::tmp<Foam::volScalarField> Foam::GidaspowSchillerNaumann::K
forAll
(
Re
,
celli
)
{
if
(
Re
[
celli
]
>
1000
.
0
)
if
(
Re
[
celli
]
>
1000
.
0
)
{
Cds
[
celli
]
=
0
.
44
;
}
...
...
Prev
1
2
3
4
5
…
8
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