Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
56fa7c09
Commit
56fa7c09
authored
Jan 10, 2016
by
Henry Weller
Browse files
Update code to use the simpler C++11 template syntax removing spaces between closing ">"s
parent
4eba393f
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/pU/pEqn.H
View file @
56fa7c09
...
...
@@ -37,7 +37,7 @@ forAll(phases, phasei)
// Lift, wall-lubrication and turbulent diffusion fluxes
PtrList
<
surfaceScalarField
>
phiFs
(
phases
.
size
());
{
autoPtr
<
PtrList
<
volVectorField
>
>
Fs
=
fluid
.
Fs
();
autoPtr
<
PtrList
<
volVectorField
>>
Fs
=
fluid
.
Fs
();
forAll
(
phases
,
phasei
)
{
...
...
@@ -58,7 +58,7 @@ PtrList<surfaceScalarField> phiFs(phases.size());
}
}
{
autoPtr
<
PtrList
<
surfaceScalarField
>
>
phiDs
=
fluid
.
phiDs
(
rAUs
);
autoPtr
<
PtrList
<
surfaceScalarField
>>
phiDs
=
fluid
.
phiDs
(
rAUs
);
forAll
(
phases
,
phasei
)
{
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/kineticTheoryModel/kineticTheoryModel.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -44,7 +44,7 @@ Foam::RASModels::kineticTheoryModel::kineticTheoryModel
:
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>
(
type
,
...
...
@@ -187,7 +187,7 @@ bool Foam::RASModels::kineticTheoryModel::read()
(
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>::
read
()
)
{
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/kineticTheoryModel/kineticTheoryModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -73,7 +73,7 @@ class kineticTheoryModel
:
public
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>
{
// Private data
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/phasePressureModel/phasePressureModel.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -42,7 +42,7 @@ Foam::RASModels::phasePressureModel::phasePressureModel
:
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>
(
type
,
...
...
@@ -90,7 +90,7 @@ bool Foam::RASModels::phasePressureModel::read()
(
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>::
read
()
)
{
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/phasePressureModel/phasePressureModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -72,7 +72,7 @@ class phasePressureModel
:
public
eddyViscosity
<
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>
>
RASModel
<
EddyDiffusivity
<
phaseCompressibleTurbulenceModel
>>
>
{
// Private data
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/kineticTheoryModel/kineticTheoryModel.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -46,7 +46,7 @@ Foam::RASModels::kineticTheoryModel::kineticTheoryModel
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>
(
type
,
...
...
@@ -192,7 +192,7 @@ bool Foam::RASModels::kineticTheoryModel::read()
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>::
read
()
)
{
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/kineticTheoryModel/kineticTheoryModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -77,7 +77,7 @@ class kineticTheoryModel
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>
{
// Private data
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/phasePressureModel/phasePressureModel.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -45,7 +45,7 @@ Foam::RASModels::phasePressureModel::phasePressureModel
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>
(
type
,
...
...
@@ -96,7 +96,7 @@ bool Foam::RASModels::phasePressureModel::read()
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>::
read
()
)
{
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/phasePressureModel/phasePressureModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -76,7 +76,7 @@ class phasePressureModel
RASModel
<
EddyDiffusivity
<
ThermalDiffusivity
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
>
>
>
>
>
>
{
// Private data
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -251,7 +251,7 @@ Foam::BlendedInterfacialModel<modelType>::Kf() const
template
<
class
modelType
>
template
<
class
Type
>
Foam
::
tmp
<
Foam
::
GeometricField
<
Type
,
Foam
::
fvPatchField
,
Foam
::
volMesh
>
>
Foam
::
tmp
<
Foam
::
GeometricField
<
Type
,
Foam
::
fvPatchField
,
Foam
::
volMesh
>>
Foam
::
BlendedInterfacialModel
<
modelType
>::
F
()
const
{
tmp
<
volScalarField
>
f1
,
f2
;
...
...
@@ -266,7 +266,7 @@ Foam::BlendedInterfacialModel<modelType>::F() const
f2
=
blending_
.
f2
(
pair1In2_
.
dispersed
(),
pair2In1_
.
dispersed
());
}
tmp
<
GeometricField
<
Type
,
fvPatchField
,
volMesh
>
>
x
tmp
<
GeometricField
<
Type
,
fvPatchField
,
volMesh
>>
x
(
new
GeometricField
<
Type
,
fvPatchField
,
volMesh
>
(
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -128,7 +128,7 @@ public:
//- Return the blended force
template
<
class
Type
>
tmp
<
GeometricField
<
Type
,
fvPatchField
,
volMesh
>
>
F
()
const
;
tmp
<
GeometricField
<
Type
,
fvPatchField
,
volMesh
>>
F
()
const
;
//- Return the face blended force
tmp
<
surfaceScalarField
>
Ff
()
const
;
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -97,7 +97,7 @@ class phaseModel
autoPtr
<
diameterModel
>
dPtr_
;
//- Turbulence model
autoPtr
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>
>
turbulence_
;
autoPtr
<
PhaseCompressibleTurbulenceModel
<
phaseModel
>>
turbulence_
;
public:
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.H
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -97,23 +97,23 @@ class twoPhaseSystem
HashTable
<
autoPtr
<
blendingMethod
>
,
word
,
word
::
hash
>
blendingMethods_
;
//- Drag model
autoPtr
<
BlendedInterfacialModel
<
dragModel
>
>
drag_
;
autoPtr
<
BlendedInterfacialModel
<
dragModel
>>
drag_
;
//- Virtual mass model
autoPtr
<
BlendedInterfacialModel
<
virtualMassModel
>
>
virtualMass_
;
autoPtr
<
BlendedInterfacialModel
<
virtualMassModel
>>
virtualMass_
;
//- Heat transfer model
autoPtr
<
BlendedInterfacialModel
<
heatTransferModel
>
>
heatTransfer_
;
autoPtr
<
BlendedInterfacialModel
<
heatTransferModel
>>
heatTransfer_
;
//- Lift model
autoPtr
<
BlendedInterfacialModel
<
liftModel
>
>
lift_
;
autoPtr
<
BlendedInterfacialModel
<
liftModel
>>
lift_
;
//- Wall lubrication model
autoPtr
<
BlendedInterfacialModel
<
wallLubricationModel
>
>
autoPtr
<
BlendedInterfacialModel
<
wallLubricationModel
>>
wallLubrication_
;
//- Wall lubrication model
autoPtr
<
BlendedInterfacialModel
<
turbulentDispersionModel
>
>
autoPtr
<
BlendedInterfacialModel
<
turbulentDispersionModel
>>
turbulentDispersion_
;
...
...
applications/test/CompactListList/Test-CompactListList.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
}
}
List
<
List
<
label
>
>
lll
(
5
);
List
<
List
<
label
>>
lll
(
5
);
lll
[
0
].
setSize
(
3
,
0
);
lll
[
1
].
setSize
(
2
,
1
);
lll
[
2
].
setSize
(
6
,
2
);
...
...
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
cll2
(
2
,
3
)
=
999
;
Info
<<
"cll2(2, 3) = "
<<
cll2
(
2
,
3
)
<<
nl
<<
endl
;
Info
<<
"cll2 as List<List<label >
> "
<<
cll2
()
Info
<<
"cll2 as List<List<label >> "
<<
cll2
()
<<
endl
;
cll2
.
setSize
(
3
);
...
...
applications/test/DynamicList/Test-DynamicList.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -71,7 +71,7 @@ void printInfo
int
main
(
int
argc
,
char
*
argv
[])
{
List
<
DynamicList
<
label
,
1
,
0
>
>
ldl
(
2
);
List
<
DynamicList
<
label
,
1
,
0
>>
ldl
(
2
);
ldl
[
0
](
0
)
=
0
;
ldl
[
0
](
2
)
=
2
;
...
...
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
}
Info
<<
endl
;
List
<
List
<
label
>
>
ll
(
2
);
List
<
List
<
label
>>
ll
(
2
);
ll
[
0
].
transfer
(
ldl
[
0
]);
ll
[
1
].
transfer
(
ldl
[
1
].
shrink
());
...
...
applications/test/HashTable2/Test-HashTable2.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
Info
<<
"table1: "
<<
table1
<<
nl
<<
"toc: "
<<
table1
.
toc
()
<<
endl
;
HashTable
<
label
,
label
,
Hash
<
label
>
>
table2
(
10
);
HashTable
<
label
,
label
,
Hash
<
label
>>
table2
(
10
);
table2
.
insert
(
3
,
10
);
table2
.
insert
(
5
,
12
);
...
...
applications/test/HashTable3/Test-HashTable3.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -48,9 +48,9 @@ int main(int argc, char *argv[])
// ie, a
// Map<label> map(2 * nSize);
// HashTable<label, label, Hash<label>
> map(2 * nSize);
// StaticHashTable<label, label, Hash<label>
> map(2 * nSize);
HashTable
<
label
,
label
,
Hash
<
label
>
>
map
(
2
*
nSize
);
// HashTable<label, label, Hash<label>> map(2 * nSize);
// StaticHashTable<label, label, Hash<label>> map(2 * nSize);
HashTable
<
label
,
label
,
Hash
<
label
>>
map
(
2
*
nSize
);
Info
<<
"Constructed map of size: "
<<
nSize
<<
" (size "
<<
map
.
size
()
<<
" capacity "
<<
map
.
capacity
()
<<
") "
...
...
applications/test/PackedList2/Test-PackedList2.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -62,8 +62,8 @@ int main(int argc, char *argv[])
// fullStaticHash is really slow
// give it lots of slots to help
StaticHashTable
<
nil
,
label
,
Hash
<
label
>
>
emptyStaticHash
;
StaticHashTable
<
nil
,
label
,
Hash
<
label
>
>
fullStaticHash
(
100000
);
StaticHashTable
<
nil
,
label
,
Hash
<
label
>>
emptyStaticHash
;
StaticHashTable
<
nil
,
label
,
Hash
<
label
>>
fullStaticHash
(
100000
);
for
(
label
i
=
0
;
i
<
n
;
i
++
)
{
fullStaticHash
.
insert
(
i
,
nil
());
...
...
applications/test/PatchTools/Test-PatchTools.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -85,7 +85,7 @@ using namespace Foam;
//
//
// // Collect local pointFaces
// List<List<point>
> pointFaceNormals(map.constructSize());
// List<List<point>> pointFaceNormals(map.constructSize());
// {
// const vectorField& faceAreas = mesh.faceAreas();
//
...
...
applications/test/dataEntry/Test-DataEntry.C
View file @
56fa7c09
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
)
);
autoPtr
<
DataEntry
<
scalar
>
>
dataEntry
autoPtr
<
DataEntry
<
scalar
>>
dataEntry
(
DataEntry
<
scalar
>::
New
(
...
...
Prev
1
2
3
4
5
6
7
…
50
Next
Write
Preview
Markdown
is supported
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