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
596e4aef
Commit
596e4aef
authored
Jan 22, 2020
by
OpenFOAM bot
Browse files
STYLE: remove trailing space, tabs
parent
f1723099
Changes
76
Hide whitespace changes
Inline
Side-by-side
applications/test/primitives/Test-primitives.C
View file @
596e4aef
...
...
@@ -275,7 +275,7 @@ int main(int argc, char *argv[])
{
false
,
" 31E1 "
},
{
false
,
" 31.4159E-1 "
},
{
true
,
"100"
},
{
true
,
"
2147483644"
},
{
true
,
"
\t
2147483644"
},
{
false
,
" 2147483700 "
},
}
);
...
...
applications/utilities/preProcessing/optimisation/writeActiveDesignVariables/writeActiveDesignVariables.C
View file @
596e4aef
...
...
@@ -29,9 +29,9 @@ Application
writeActiveDesignVariables
Description
Writes the active design variables based on the selected parameterisation
Writes the active design variables based on the selected parameterisation
scheme, as read from the meshMovement part of optimisationDict.
Keeps a back-up of the original optimisationDict in
Keeps a back-up of the original optimisationDict in
system/optimisationDict.org, as comments in the dict will be lost.
\*---------------------------------------------------------------------------*/
...
...
@@ -69,17 +69,17 @@ int main(int argc, char *argv[])
// Construct mesh movement object and grab active design variables
// Will exit with error if not implemented for this type
const
dictionary
&
movementDict
=
const
dictionary
&
movementDict
=
optDict
.
subDict
(
"optimisation"
).
subDict
(
"meshMovement"
);
// Empty patch list will do
// Empty patch list will do
labelList
patchIDs
(
0
);
autoPtr
<
optMeshMovement
>
movementPtr
(
optMeshMovement
::
New
(
mesh
,
movementDict
,
patchIDs
));
const
labelList
activeDesignVariables
=
const
labelList
activeDesignVariables
=
movementPtr
().
getActiveDesignVariables
();
// Construct update method to grab the type
dictionary
&
updateMethodDict
=
dictionary
&
updateMethodDict
=
optDict
.
subDict
(
"optimisation"
).
subDict
(
"updateMethod"
);
autoPtr
<
updateMethod
>
updMethod
(
updateMethod
::
New
(
mesh
,
updateMethodDict
));
...
...
@@ -87,11 +87,11 @@ int main(int argc, char *argv[])
dictionary
&
coeffsDict
=
updateMethodDict
.
subDictOrAdd
(
updMethod
().
type
());
coeffsDict
.
add
<
labelList
>
(
"activeDesignVariables"
,
activeDesignVariables
,
"activeDesignVariables"
,
activeDesignVariables
,
true
);
// Write modified dictionary
optDict
.
regIOobject
::
writeObject
(
...
...
src/finiteArea/finiteArea/d2dt2Schemes/EulerFaD2dt2Scheme/EulerFaD2dt2Scheme.C
View file @
596e4aef
...
...
@@ -44,14 +44,14 @@ namespace fa
template
<
class
Type
>
scalar
EulerFaD2dt2Scheme
<
Type
>::
deltaT_
()
const
{
return
mesh
().
time
().
deltaT
().
value
();
return
mesh
().
time
().
deltaT
().
value
();
}
template
<
class
Type
>
scalar
EulerFaD2dt2Scheme
<
Type
>::
deltaT0_
()
const
{
return
mesh
().
time
().
deltaT0
().
value
();
return
mesh
().
time
().
deltaT0
().
value
();
}
...
...
src/finiteArea/finiteArea/d2dt2Schemes/EulerFaD2dt2Scheme/EulerFaD2dt2Scheme.H
View file @
596e4aef
...
...
@@ -61,11 +61,11 @@ class EulerFaD2dt2Scheme
{
// Private Member Functions
//- Return the current time-step
scalar
deltaT_
()
const
;
//- Return the current time-step
scalar
deltaT_
()
const
;
//- Return the previous time-step
scalar
deltaT0_
()
const
;
//- Return the previous time-step
scalar
deltaT0_
()
const
;
//- No copy construct
EulerFaD2dt2Scheme
(
const
EulerFaD2dt2Scheme
&
)
=
delete
;
...
...
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/ReynoldsAnalogy/ReynoldsAnalogy.H
View file @
596e4aef
...
...
@@ -48,7 +48,7 @@ Usage
type heatTransferCoeff;
libs ("libfieldFunctionObjects.so");
...
htcModel
ReynoldsAnalogy;
htcModel
ReynoldsAnalogy;
UInf (20 0 0);
Cp CpInf;
CpInf 1005;
...
...
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/fixedReferenceTemperature/fixedReferenceTemperature.H
View file @
596e4aef
...
...
@@ -42,8 +42,8 @@ Usage
type heatTransferCoeff;
libs ("libfieldFunctionObjects.so");
...
htcModel
fixedReferenceTemperature;
TRef
300;
htcModel
fixedReferenceTemperature;
TRef
300;
...
\endverbatim
...
...
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/localReferenceTemperature/localReferenceTemperature.H
View file @
596e4aef
...
...
@@ -42,7 +42,7 @@ Usage
type heatTransferCoeff;
libs ("libfieldFunctionObjects.so");
...
htcModel
localReferenceTemperature;
htcModel
localReferenceTemperature;
...
\endverbatim
...
...
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/LocalInteraction.C
View file @
596e4aef
...
...
@@ -338,7 +338,7 @@ void Foam::LocalInteraction<CloudType>::info(Ostream& os)
scalarListList
mpe0
(
patchData_
.
size
());
labelListList
nps0
(
patchData_
.
size
());
scalarListList
mps0
(
patchData_
.
size
());
forAll
(
patchData_
,
patchi
)
{
label
lsd
=
nEscape_
[
patchi
].
size
();
...
...
@@ -348,8 +348,8 @@ void Foam::LocalInteraction<CloudType>::info(Ostream& os)
mps0
[
patchi
].
setSize
(
lsd
,
Zero
);
}
this
->
getModelProperty
(
"nEscape"
,
npe0
);
this
->
getModelProperty
(
"nEscape"
,
npe0
);
this
->
getModelProperty
(
"massEscape"
,
mpe0
);
this
->
getModelProperty
(
"nStick"
,
nps0
);
this
->
getModelProperty
(
"massStick"
,
mps0
);
...
...
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/StandardWallInteraction/StandardWallInteraction.C
View file @
596e4aef
...
...
@@ -252,7 +252,7 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
scalarListList
mpe0
(
nEscape_
.
size
());
labelListList
nps0
(
nEscape_
.
size
());
scalarListList
mps0
(
nEscape_
.
size
());
forAll
(
nEscape_
,
patchi
)
{
label
lsd
=
nEscape_
[
patchi
].
size
();
...
...
@@ -261,7 +261,7 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
nps0
[
patchi
].
setSize
(
lsd
,
Zero
);
mps0
[
patchi
].
setSize
(
lsd
,
Zero
);
}
this
->
getModelProperty
(
"nEscape"
,
npe0
);
this
->
getModelProperty
(
"massEscape"
,
mpe0
);
this
->
getModelProperty
(
"nStick"
,
nps0
);
...
...
src/optimisation/adjointOptimisation/adjoint/parameterization/NURBS/NURBS3DVolume/NURBS3DVolume/NURBS3DVolume.C
View file @
596e4aef
...
...
@@ -1796,7 +1796,7 @@ Foam::label Foam::NURBS3DVolume::nUSymmetry() const
else
{
nU
=
(
nU
-
1
)
/
2
+
1
;
}
}
return
nU
;
}
...
...
@@ -1811,7 +1811,7 @@ Foam::label Foam::NURBS3DVolume::nVSymmetry() const
else
{
nV
=
(
nV
-
1
)
/
2
+
1
;
}
}
return
nV
;
}
...
...
@@ -1826,7 +1826,7 @@ Foam::label Foam::NURBS3DVolume::nWSymmetry() const
else
{
nW
=
(
nW
-
1
)
/
2
+
1
;
}
}
return
nW
;
}
...
...
src/optimisation/adjointOptimisation/adjoint/parameterization/NURBS/NURBS3DVolume/cylindrical/NURBS3DVolumeCylindrical.H
View file @
596e4aef
...
...
@@ -58,7 +58,7 @@ class NURBS3DVolumeCylindrical
protected:
// Protected Data
//- Translation vector
vector
origin_
;
...
...
tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/0.orig/zoneID
View file @
596e4aef
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912
.master.develop
|
| \\ / O peration | Version: v1912
|
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
...
...
tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/snappyHexMeshDict
View file @
596e4aef
...
...
@@ -138,7 +138,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationsInMesh
locationsInMesh
(
(( 0.005 0.005 0.005) heater)
(( 0.05 0.005 0.005) rightSolid)
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/naca0012/drag/primalAdjoint/system/controlDict
View file @
596e4aef
...
...
@@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/naca0012/lift/opt/constraintProjection/system/controlDict
View file @
596e4aef
...
...
@@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/naca0012/moment/primalAdjoint/system/controlDict
View file @
596e4aef
...
...
@@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/sbend/laminar/opt/constrained/SQP/system/controlDict
View file @
596e4aef
...
...
@@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/sbend/laminar/opt/constrained/SQP/system/fvSolution
View file @
596e4aef
...
...
@@ -14,14 +14,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
}
solvers
{
"p|pa.*"
"p|pa.*"
{
solver PCG;
preconditioner DIC;
...
...
@@ -44,7 +44,7 @@ solvers
};
}
relaxationFactors
relaxationFactors
{
fields
{
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/sbend/laminar/opt/unconstrained/BFGS/system/controlDict
View file @
596e4aef
...
...
@@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
...
...
tutorials/incompressible/adjointOptimisationFoam/shapeOptimisation/sbend/laminar/opt/unconstrained/BFGS/system/fvSolution
View file @
596e4aef
...
...
@@ -14,14 +14,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
}
solvers
{
"p|pa"
"p|pa"
{
solver PCG;
preconditioner DIC;
...
...
@@ -44,7 +44,7 @@ solvers
};
}
relaxationFactors
relaxationFactors
{
fields
{
...
...
Prev
1
2
3
4
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