Skip to content
GitLab
Menu
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
c909a5df
Commit
c909a5df
authored
Jun 13, 2018
by
Andrew Heather
Browse files
GIT: resolved merge conflict
parents
9258b558
616b91c0
Changes
148
Hide whitespace changes
Inline
Side-by-side
applications/solvers/DNS/dnsFoam/dnsFoam.C
View file @
c909a5df
...
...
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
fft
::
reverseTransform
(
K
/
(
mag
(
K
)
+
1.0e-6
)
^
forceGen
.
newField
(),
K
.
nn
()
)
)
*
recRootN
);
#include
"globalProperties.H"
...
...
applications/solvers/DNS/dnsFoam/readTurbulenceProperties.H
View file @
c909a5df
...
...
@@ -19,3 +19,10 @@
Kmesh
K
(
mesh
);
UOprocess
forceGen
(
K
,
runTime
.
deltaTValue
(),
turbulenceProperties
);
label
ntot
=
1
;
forAll
(
K
.
nn
(),
idim
)
{
ntot
*=
K
.
nn
()[
idim
];
}
const
scalar
recRootN
=
1
.
0
/
Foam
::
sqrt
(
scalar
(
ntot
));
applications/solvers/combustion/PDRFoam/PDRFoam.C
View file @
c909a5df
...
...
@@ -78,7 +78,6 @@ Description
#include
"XiModel.H"
#include
"PDRDragModel.H"
#include
"ignition.H"
#include
"Switch.H"
#include
"bound.H"
#include
"pimpleControl.H"
#include
"fvOptions.H"
...
...
applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C
View file @
c909a5df
...
...
@@ -63,7 +63,6 @@ Description
#include
"XiModel.H"
#include
"PDRDragModel.H"
#include
"ignition.H"
#include
"Switch.H"
#include
"bound.H"
#include
"dynamicRefineFvMesh.H"
#include
"pimpleControl.H"
...
...
applications/solvers/combustion/PDRFoam/PDRModels/dragModels/PDRDragModel/PDRDragModel.C
View file @
c909a5df
...
...
@@ -58,14 +58,14 @@ Foam::PDRDragModel::PDRDragModel
(
PDRProperties
.
subDict
(
word
(
PDRProperties
.
lookup
(
"PDRDragModel"
)
)
+
"Coeffs"
PDRProperties
.
get
<
word
>
(
"PDRDragModel"
)
+
"Coeffs"
)
),
turbulence_
(
turbulence
),
rho_
(
rho
),
U_
(
U
),
phi_
(
phi
),
on_
(
PDRDragModelCoeffs_
.
lookup
(
"drag"
))
on_
(
PDRDragModelCoeffs_
.
get
<
bool
>
(
"drag"
))
{}
...
...
@@ -81,7 +81,7 @@ bool Foam::PDRDragModel::read(const dictionary& PDRProperties)
{
PDRDragModelCoeffs_
=
PDRProperties
.
optionalSubDict
(
type
()
+
"Coeffs"
);
PDRDragModelCoeffs_
.
lookup
(
"drag"
)
>>
on_
;
PDRDragModelCoeffs_
.
read
(
"drag"
,
on_
)
;
return
true
;
}
...
...
applications/solvers/combustion/PDRFoam/PDRModels/dragModels/PDRDragModel/PDRDragModel.H
View file @
c909a5df
...
...
@@ -67,7 +67,7 @@ protected:
const
volVectorField
&
U_
;
const
surfaceScalarField
&
phi_
;
Switch
on_
;
bool
on_
;
private:
...
...
applications/solvers/combustion/PDRFoam/PDRModels/dragModels/PDRDragModel/PDRDragModelNew.C
View file @
c909a5df
...
...
@@ -36,9 +36,9 @@ Foam::autoPtr<Foam::PDRDragModel> Foam::PDRDragModel::New
const
surfaceScalarField
&
phi
)
{
const
word
modelType
(
PDRProperties
.
lookup
(
"PDRDragModel"
));
const
word
modelType
(
PDRProperties
.
get
<
word
>
(
"PDRDragModel"
));
Info
<<
"Selecting
flame-wrinklin
g model "
<<
modelType
<<
endl
;
Info
<<
"Selecting
dra
g model "
<<
modelType
<<
endl
;
auto
cstrIter
=
dictionaryConstructorTablePtr_
->
cfind
(
modelType
);
...
...
applications/solvers/combustion/PDRFoam/PDRModels/dragModels/basic/basic.C
View file @
c909a5df
...
...
@@ -165,8 +165,8 @@ bool Foam::PDRDragModels::basic::read(const dictionary& PDRProperties)
{
PDRDragModel
::
read
(
PDRProperties
);
PDRDragModelCoeffs_
.
lookup
(
"Csu"
)
>>
Csu
.
value
();
PDRDragModelCoeffs_
.
lookup
(
"Csk"
)
>>
Csk
.
value
();
PDRDragModelCoeffs_
.
read
(
"Csu"
,
Csu
.
value
()
)
;
PDRDragModelCoeffs_
.
read
(
"Csk"
,
Csk
.
value
()
)
;
return
true
;
}
...
...
applications/solvers/combustion/chemFoam/createControls.H
View file @
c909a5df
Switch
adjustTimeStep
(
runTime
.
controlDict
().
lookup
(
"adjustTimeStep"
));
scalar
maxDeltaT
(
readScalar
(
runTime
.
controlDict
().
lookup
(
"maxDeltaT"
)));
bool
adjustTimeStep
(
runTime
.
controlDict
().
get
<
bool
>
(
"adjustTimeStep"
));
scalar
maxDeltaT
(
runTime
.
controlDict
().
get
<
scalar
>
(
"maxDeltaT"
));
applications/solvers/combustion/chemFoam/readControls.H
View file @
c909a5df
runTime
.
controlDict
().
lookup
(
"adjustTimeStep"
)
>>
adjustTimeStep
;
runTime
.
controlDict
().
read
(
"adjustTimeStep"
,
adjustTimeStep
)
;
maxDeltaT
=
readScalar
(
runTime
.
controlDict
().
lookup
(
"maxDeltaT"
)
);
runTime
.
controlDict
().
read
(
"maxDeltaT"
,
maxDeltaT
);
applications/solvers/compressible/rhoSimpleFoam/rhoPorousSimpleFoam/createZones.H
View file @
c909a5df
IOporosityModelList
pZones
(
mesh
);
Switch
pressureImplicitPorosity
(
false
);
bool
pressureImplicitPorosity
(
false
);
// nUCorrectors used for pressureImplicitPorosity
int
nUCorr
=
0
;
...
...
applications/solvers/incompressible/shallowWaterFoam/readGravitationalAcceleration.H
View file @
c909a5df
...
...
@@ -13,9 +13,11 @@ IOdictionary gravitationalProperties
);
const
dimensionedVector
g
(
gravitationalProperties
.
lookup
(
"g"
));
const
Switch
rotating
(
gravitationalProperties
.
lookup
(
"rotating"
));
const
bool
rotating
(
gravitationalProperties
.
get
<
bool
>
(
"rotating"
));
const
dimensionedVector
Omega
=
(
rotating
?
gravitationalProperties
.
lookup
(
"Omega"
)
:
dimensionedVector
(
"Omega"
,
-
dimTime
,
vector
(
0
,
0
,
0
));
:
dimensionedVector
(
"Omega"
,
-
dimTime
,
vector
(
0
,
0
,
0
))
);
const
dimensionedScalar
magg
=
mag
(
g
);
const
dimensionedVector
gHat
=
g
/
magg
;
applications/solvers/incompressible/simpleFoam/porousSimpleFoam/createPorousZones.H
View file @
c909a5df
IOporosityModelList
pZones
(
mesh
);
Switch
pressureImplicitPorosity
(
false
);
bool
pressureImplicitPorosity
(
false
);
// nUCorrectors used for pressureImplicitPorosity
int
nUCorr
=
0
;
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/PhaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.C
View file @
c909a5df
...
...
@@ -39,7 +39,7 @@ ThermalPhaseChangePhaseSystem
HeatAndMassTransferPhaseSystem
<
BasePhaseSystem
>
(
mesh
),
volatile_
(
this
->
lookup
(
"volatile"
)),
saturationModel_
(
saturationModel
::
New
(
this
->
subDict
(
"saturationModel"
))),
massTransfer_
(
this
->
lookup
(
"massTransfer"
))
massTransfer_
(
this
->
template
get
<
bool
>
(
"massTransfer"
))
{
forAllConstIters
(
this
->
phasePairs_
,
phasePairIter
)
...
...
@@ -357,7 +357,7 @@ void Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::correctThermo()
volScalarField
iDmdtNew
(
iDmdt
);
if
(
massTransfer_
)
if
(
massTransfer_
)
{
volScalarField
H1
(
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/PhaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.H
View file @
c909a5df
...
...
@@ -43,7 +43,6 @@ SourceFiles
#include
"HeatAndMassTransferPhaseSystem.H"
#include
"saturationModel.H"
#include
"Switch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -71,7 +70,7 @@ protected:
autoPtr
<
saturationModel
>
saturationModel_
;
// Mass transfer enabled
Switch
massTransfer_
;
bool
massTransfer_
;
//- Interfacial Mass transfer rate
HashPtrTable
<
volScalarField
,
phasePairKey
,
phasePairKey
::
hash
>
...
...
applications/solvers/stressAnalysis/solidDisplacementFoam/createControl.H
View file @
c909a5df
const
dictionary
&
stressControl
=
mesh
.
solutionDict
().
subDict
(
"stressAnalysis"
);
Switch
compactNormalStress
(
stressControl
.
lookup
(
"compactNormalStress"
));
bool
compactNormalStress
(
stressControl
.
get
<
bool
>
(
"compactNormalStress"
));
applications/solvers/stressAnalysis/solidDisplacementFoam/createControls.H
View file @
c909a5df
...
...
@@ -2,4 +2,4 @@
int
nCorr
=
stressControl
.
lookupOrDefault
<
int
>
(
"nCorrectors"
,
1
);
scalar
convergenceTolerance
(
readScalar
(
stressControl
.
lookup
(
"D"
))
)
;
scalar
convergenceTolerance
(
stressControl
.
get
<
scalar
>
(
"D"
));
applications/solvers/stressAnalysis/solidDisplacementFoam/readMechanicalProperties.H
View file @
c909a5df
...
...
@@ -184,9 +184,7 @@
volScalarField
lambda
(
nu
*
E
/
((
1
.
0
+
nu
)
*
(
1
.
0
-
2
.
0
*
nu
)));
volScalarField
threeK
(
E
/
(
1
.
0
-
2
.
0
*
nu
));
Switch
planeStress
(
mechanicalProperties
.
lookup
(
"planeStress"
));
if
(
planeStress
)
if
(
mechanicalProperties
.
get
<
bool
>
(
"planeStress"
))
{
Info
<<
"Plane Stress
\n
"
<<
endl
;
...
...
applications/solvers/stressAnalysis/solidDisplacementFoam/readSolidDisplacementFoamControls.H
View file @
c909a5df
nCorr
=
stressControl
.
lookupOrDefault
<
int
>
(
"nCorrectors"
,
1
);
convergenceTolerance
=
readScalar
(
stressControl
.
lookup
(
"D"
)
)
;
stressControl
.
lookup
(
"compactNormalStress"
)
>>
compactNormalStress
;
convergenceTolerance
=
stressControl
.
get
<
scalar
>
(
"D"
);
compactNormalStress
=
stressControl
.
get
<
bool
>
(
"
compactNormalStress
"
)
;
applications/solvers/stressAnalysis/solidDisplacementFoam/readThermalProperties.H
View file @
c909a5df
...
...
@@ -12,7 +12,7 @@ IOdictionary thermalProperties
)
);
Switch
thermalStress
(
thermalProperties
.
lookup
(
"thermalStress"
));
bool
thermalStress
(
thermalProperties
.
get
<
bool
>
(
"thermalStress"
));
volScalarField
threeKalpha
(
...
...
@@ -46,7 +46,6 @@ volScalarField DT
if
(
thermalStress
)
{
autoPtr
<
volScalarField
>
CPtr
;
IOobject
CIO
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Supports
Markdown
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