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
87a566c1
Commit
87a566c1
authored
Nov 22, 2016
by
Andrew Heather
Browse files
STYLE: minor code typo corrections
parent
558006af
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/solvers/scalarTransport/scalarTransport.C
View file @
87a566c1
...
...
@@ -296,7 +296,7 @@ bool Foam::functionObjects::scalarTransport::execute()
mesh_
.
lookupObject
<
surfaceScalarField
>
(
phiName_
)
);
}
else
if
(
UPhiName_
!=
"none"
)
else
if
(
UPhiName_
!=
"none"
)
{
const
volVectorField
&
Uphi
=
mesh_
.
lookupObject
<
volVectorField
>
(
UPhiName_
);
...
...
src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/Interface/InterfaceForce.C
View file @
87a566c1
...
...
@@ -37,7 +37,7 @@ Foam::InterfaceForce<CloudType>::InterfaceForce
)
:
ParticleForce
<
CloudType
>
(
owner
,
mesh
,
dict
,
typeName
,
true
),
alpaName_
(
this
->
coeffs
().
lookup
(
"alpha"
)),
alp
h
aName_
(
this
->
coeffs
().
lookup
(
"alpha"
)),
C_
(
readScalar
(
this
->
coeffs
().
lookup
(
"C"
))),
gradInterForceInterpPtr_
(
nullptr
)
{}
...
...
@@ -47,7 +47,7 @@ template<class CloudType>
Foam
::
InterfaceForce
<
CloudType
>::
InterfaceForce
(
const
InterfaceForce
&
pf
)
:
ParticleForce
<
CloudType
>
(
pf
),
alpaName_
(
pf
.
alpaName_
),
alp
h
aName_
(
pf
.
alp
h
aName_
),
C_
(
pf
.
C_
),
gradInterForceInterpPtr_
(
pf
.
gradInterForceInterpPtr_
)
{}
...
...
@@ -75,7 +75,7 @@ void Foam::InterfaceForce<CloudType>::cacheFields(const bool store)
if
(
!
fieldExists
)
{
const
volScalarField
&
alpha
=
this
->
mesh
().
template
lookupObject
<
volScalarField
>
(
alpaName_
);
lookupObject
<
volScalarField
>
(
alp
h
aName_
);
volVectorField
*
gradInterForcePtr
=
new
volVectorField
(
fName
,
fvc
::
grad
(
alpha
*
(
1
-
alpha
)));
...
...
src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/Interface/InterfaceForce.H
View file @
87a566c1
...
...
@@ -57,13 +57,13 @@ class InterfaceForce
{
// Private data
//- Name of
VOF
field
const
word
alpaName_
;
//- Name of
phase fraction
field
const
word
alp
h
aName_
;
//- Model constant
const
scalar
C_
;
//-
grad
Inter
Force interpolator
//- Inter
polator for gradInterForce
autoPtr
<
interpolation
<
vector
>>
gradInterForceInterpPtr_
;
...
...
src/thermophysicalModels/chemistryModel/chemistryModel/TDACChemistryModel/tabulation/ISAT/chemPointISAT/chemPointISAT.C
View file @
87a566c1
...
...
@@ -403,7 +403,7 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
label
maxIndex
=
-
1
;
for
(
label
i
=
0
;
i
<
completeSpaceSize
();
i
++
)
{
if
(
max
<
propEps
[
i
])
if
(
max
<
propEps
[
i
])
{
max
=
propEps
[
i
];
maxIndex
=
i
;
...
...
@@ -412,11 +412,11 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
word
propName
;
if
(
maxIndex
>=
completeSpaceSize
()
-
2
)
{
if
(
maxIndex
==
completeSpaceSize
()
-
2
)
if
(
maxIndex
==
completeSpaceSize
()
-
2
)
{
propName
=
"T"
;
}
else
if
(
maxIndex
==
completeSpaceSize
()
-
1
)
else
if
(
maxIndex
==
completeSpaceSize
()
-
1
)
{
propName
=
"p"
;
}
...
...
tutorials/mesh/refineMesh/refineFieldDirs/calcRadiusField/calcRadiusField.C
View file @
87a566c1
...
...
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
radiusFieldXY
.
write
();
if
(
calcDirections
)
if
(
calcDirections
)
{
vectorIOField
radialDirection
...
...
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