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
51bb4e00
Commit
51bb4e00
authored
Jun 26, 2019
by
OpenFOAM bot
Committed by
Andrew Heather
Jun 26, 2019
Browse files
STYLE: remove trailing spaces
parent
a9bfef33
Changes
18
Hide whitespace changes
Inline
Side-by-side
applications/solvers/incompressible/boundaryFoam/boundaryFoam.C
View file @
51bb4e00
...
...
@@ -30,7 +30,7 @@ Group
grpIncompressibleSolvers
Description
Steady-state solver for incompressible, 1D turbulent flow,
Steady-state solver for incompressible, 1D turbulent flow,
typically to generate boundary layer conditions at an inlet.
Boundary layer code to calculate the U, k and epsilon distributions.
...
...
applications/utilities/preProcessing/createBoxTurb/createBlockMesh.H
View file @
51bb4e00
...
...
@@ -73,7 +73,7 @@ forAll(boundaryDicts, patchi)
}
else
{
nbrPatchName
=
"patch"
+
Foam
::
name
(
patchi
-
1
);
nbrPatchName
=
"patch"
+
Foam
::
name
(
patchi
-
1
);
}
patchDict
.
add
(
"type"
,
cyclicPolyPatch
::
typeName
);
...
...
src/OpenFOAM/fields/GeometricFields/transformGeometricField/transformGeometricField.C
View file @
51bb4e00
...
...
@@ -82,7 +82,7 @@ void Foam::transform
template
<
class
Type
,
template
<
class
>
class
PatchField
,
class
GeoMesh
>
Foam
::
tmp
<
Foam
::
GeometricField
<
Type
,
PatchField
,
GeoMesh
>>
Foam
::
tmp
<
Foam
::
GeometricField
<
Type
,
PatchField
,
GeoMesh
>>
Foam
::
transform
(
const
GeometricField
<
tensor
,
PatchField
,
GeoMesh
>&
rot
,
...
...
src/OpenFOAM/primitives/strings/fileName/fileName.H
View file @
51bb4e00
...
...
@@ -145,7 +145,7 @@ public:
inline
static
bool
valid
(
char
c
);
//- Construct fileName with no invalid characters, possibly applying
//- other transformations such as changing the path separator,
//- other transformations such as changing the path separator,
//- removing duplicate or trailing slashes, etc.
static
fileName
validate
(
const
std
::
string
&
s
,
const
bool
doClean
=
true
);
...
...
src/dynamicFvMesh/dynamicRefineBalancedFvMesh/dynamicMeshDict
View file @
51bb4e00
...
...
@@ -20,50 +20,50 @@ dynamicFvMesh dynamicRefineBalancedFvMesh;
refinementControls
{
enableRefinementControl true;
fields // must be scalarFields
(
//alpha (min max refineLevel)
alpha (0.01 0.99 2) // refine cells where alpha in [0.01:0.99] with maximal 2 refinement layers
);
interface // must be a scalarField (only one dictionary!)
(
alpha // refine interface (found based on snGrad of alpha > 0.1)
alpha // refine interface (found based on snGrad of alpha > 0.1)
{
innerRefLayers 2; // describes how many cell layers inside phase alpha are to be refined
outerRefLayers 5; // describes how many cell layers outside phase alpha are to be refined
// optional settings:
maxRefineLevel 4; // max refinement layers; Default: maxRefinement from dynamicRefineFvMeshCoeffs is used
// to get slower than 2:1 refinement; add #nAddLayers between each refinement level at the interface
nAddLayers 1; //Default: 0
nAddLayers 1; //Default: 0
}
);
gradients // must be scalars
(
// arguments as in 'fields'
// min/max values are based on mag(fvc::grad(volScalarField)) * cellVolume
T (0.01 10 1)
);
curls // must be vectors
(
// arguments as in 'fields'
// min/max values are based on mag(fvc::curl(volVectorField))
U (0.5 1 2)
);
regions
(
boxToCell
{
minLevel 1;
box (-1 0.001 0.002)(1 0.005 0.003);
}
);
}
...
...
@@ -75,27 +75,27 @@ dynamicRefineFvMeshCoeffs
// How often to refine
refineInterval 10;
// Field to be refinement on (set it to 'internalRefinementField' to use the
// refinementControls dictionary entries above)
field internalRefinementField;
// Refine field inbetween lower..upper
lowerRefineLevel 0.5; // do not change
upperRefineLevel 3.5; // maxRefinement+0.5
// If value < unrefineLevel unrefine
unrefineLevel -0.5; // do not change
// Have slower than 2:1 refinement
nBufferLayers 4;
// Refine cells only up to maxRefinement levels
maxRefinement 3;
// Stop refinement if maxCells reached
maxCells 200000;
// Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated.
...
...
@@ -116,7 +116,7 @@ dynamicRefineFvMeshCoeffs
Uf
Uf_0
);
// Write the refinement level as a volScalarField
dumpLevel true;
}
...
...
src/dynamicMesh/motionSmoother/motionSmootherAlgoTemplates.C
View file @
51bb4e00
...
...
@@ -300,7 +300,7 @@ Type Foam::motionSmootherAlgo::get
)
{
Type
val
(
defaultValue
);
if
(
!
dict
.
readEntry
...
...
src/finiteArea/finiteArea/d2dt2Schemes/faD2dt2Scheme/faD2dt2Schemes.C
View file @
51bb4e00
...
...
@@ -42,19 +42,19 @@ namespace fa
defineTemplateRunTimeSelectionTable
(
faD2dt2Scheme
<
scalar
>
,
faD2dt2Scheme
<
scalar
>
,
Istream
);
defineTemplateRunTimeSelectionTable
(
faD2dt2Scheme
<
vector
>
,
faD2dt2Scheme
<
vector
>
,
Istream
);
defineTemplateRunTimeSelectionTable
(
faD2dt2Scheme
<
tensor
>
,
faD2dt2Scheme
<
tensor
>
,
Istream
);
...
...
src/finiteVolume/cfdTools/compressible/createDpdt.H
View file @
51bb4e00
...
...
@@ -14,7 +14,7 @@ if (mesh.dynamic())
// Note
// - set to READ_IF_PRESENT and AUTO_WRITE to simplify dpdt correction
// by meshPhi
dpdtHeader
.
readOpt
()
=
IOobject
::
READ_IF_PRESENT
;
dpdtHeader
.
writeOpt
()
=
IOobject
::
AUTO_WRITE
;
}
...
...
src/finiteVolume/fields/fvPatchFields/derived/turbulentDigitalFilterInlet/turbulentDigitalFilterInletFvPatchVectorField.C
View file @
51bb4e00
...
...
@@ -344,7 +344,7 @@ initLenRandomBox() const
// Refer to 'computeFilterCoeffs()'
const
label
n
=
ceil
(
L_
[
i
]);
const
label
twiceN
=
4
*
n
;
const
label
twiceN
=
4
*
n
;
// Initialise: Random-number set sizes
lenRandomBox
[
i
]
=
lenGrid
[
sliceI
]
+
twiceN
;
...
...
@@ -575,7 +575,7 @@ void Foam::turbulentDigitalFilterInletFvPatchVectorField::embedTwoPointCorrs()
const
List
<
scalar
>&
filter1
=
filterCoeffs_
[
dir
];
const
List
<
scalar
>&
filter2
=
filterCoeffs_
[
3
+
dir
];
const
List
<
scalar
>&
filter3
=
filterCoeffs_
[
6
+
dir
];
const
label
sz1
=
lenRandomBox_
[
dir
];
const
label
sz2
=
lenRandomBox_
[
3
+
dir
];
const
label
sz3
=
lenRandomBox_
[
6
+
dir
];
...
...
src/finiteVolume/fields/fvPatchFields/derived/turbulentDigitalFilterInlet/turbulentDigitalFilterInletFvPatchVectorField.H
View file @
51bb4e00
...
...
@@ -37,7 +37,7 @@ Description
\verbatim
Klein, M., Sadiki, A., and Janicka, J.
A digital filter based generation of inflow data for spatially
A digital filter based generation of inflow data for spatially
developing direct numerical or large eddy simulations,
Journal of Computational Physics (2003) 186(2):652-665.
doi:10.1016/S0021-9991(03)00090-1
...
...
@@ -47,7 +47,7 @@ Description
\verbatim
Xie, Z.-T., and Castro, I.
Efficient generation of inflow conditions for large eddy simulation of
Efficient generation of inflow conditions for large eddy simulation of
street-scale flows, Flow, Turbulence and Combustion (2008) 81(3):449-470
doi:10.1007/s10494-008-9151-5
\endverbatim
...
...
@@ -130,7 +130,7 @@ Usage
const1FSM -0.7854 //-0.25*PI;
const2FSM -1.5707; //-0.5*PI;
}
\endverbatim
\endverbatim
Among the dictionary entries, two entries can be input as patch profiles:
...
...
@@ -308,7 +308,7 @@ class turbulentDigitalFilterInletFvPatchVectorField
//- Mean inlet velocity profile in global coordinates [m/s]
vectorField
UMean_
;
//- Integral length-scale set per turbulence plane section in local
//- Integral length-scale set per turbulence plane section in local
//- coordinates (e1u, e1v, e1w, e2u, e2v, e2w, e3u, e3v, e3w) [m]
// First three entries should always correspond to the length scales
// in association with the convective mean flow direction
...
...
src/finiteVolume/fields/fvPatchFields/derived/turbulentDigitalFilterInlet/turbulentDigitalFilterInletFvPatchVectorFieldTemplates.C
View file @
51bb4e00
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 - 2019 OpenCFD Ltd.
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
...
...
src/finiteVolume/fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C
View file @
51bb4e00
...
...
@@ -307,8 +307,8 @@ void Foam::isoAdvection::timeIntegratedFlux()
// Note: We will like all point neighbours to interface cells to
// be checked. Especially if the interface leaves a cell during
// a time step, it may enter a point neighbour which should also
// be treated like a surface cell. Its interface normal should
// somehow be inherrited from its upwind cells from which it
// be treated like a surface cell. Its interface normal should
// somehow be inherrited from its upwind cells from which it
// receives the interface.
const
labelList
&
nNeighbourCells
=
cellCells
[
otherCell
];
forAll
(
nNeighbourCells
,
ni
)
...
...
src/finiteVolume/fvMatrices/solvers/isoAdvection/isoCutFace/isoCutFace.H
View file @
51bb4e00
...
...
@@ -160,7 +160,7 @@ public:
const
DynamicList
<
point
>&
surfacePoints
()
const
;
void
clearStorage
();
//- Calculate volumetric face transport during dt given the isoFace
// data provided as input for face facei
scalar
timeIntegratedFaceFlux
...
...
@@ -174,7 +174,7 @@ public:
const
scalar
phi
,
const
scalar
magSf
);
//- Calculate time integrated area for a face
scalar
timeIntegratedArea
(
...
...
src/functionObjects/field/columnAverage/columnAverage.C
View file @
51bb4e00
...
...
@@ -111,7 +111,7 @@ const Foam::word Foam::functionObjects::columnAverage::averageName
const
word
&
fieldName
)
const
{
return
name
()
+
":columnAverage("
+
fieldName
+
")"
;
return
name
()
+
":columnAverage("
+
fieldName
+
")"
;
}
...
...
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/fixedReferenceTemperature/fixedReferenceTemperature.H
View file @
51bb4e00
...
...
@@ -29,7 +29,7 @@ Description
temperature
The heat transfer coefficient is specified by:
\f[
h = \frac{q}{T_{ref} - T_w}
\f]
...
...
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/localReferenceTemperature/localReferenceTemperature.H
View file @
51bb4e00
...
...
@@ -29,7 +29,7 @@ Description
field as the reference temperature
The heat transfer coefficient is specified by:
\f[
h = \frac{q}{T_c - T_w}
\f]
...
...
src/functionObjects/graphics/runTimePostProcessing/pointData.C
View file @
51bb4e00
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
src/mesh/snappyHexMesh/snappyHexMeshDriver/snappyRefineDriver.C
View file @
51bb4e00
...
...
@@ -2008,7 +2008,7 @@ void Foam::snappyRefineDriver::mergeAndSmoothRatio
{
if
(
debug
)
{
Pout
<<
"Converged with iteration "
<<
iter
Pout
<<
"Converged with iteration "
<<
iter
<<
" initResidual: "
<<
initResidual
<<
" final residual : "
<<
res
<<
endl
;
}
...
...
@@ -2055,7 +2055,7 @@ Foam::label Foam::snappyRefineDriver::directionalSmooth
forAll
(
shells
.
nSmoothExpansion
(),
shellI
)
{
if
if
(
shells
.
nSmoothExpansion
()[
shellI
]
>
0
||
shells
.
nSmoothPosition
()[
shellI
]
>
0
...
...
@@ -2117,20 +2117,20 @@ Foam::label Foam::snappyRefineDriver::directionalSmooth
}
}
// Get the extreme of smoothing region and
// Get the extreme of smoothing region and
// normalize all points within
const
scalar
totalLength
=
const
scalar
totalLength
=
geometry
[
surfi
].
bounds
().
span
()
&
userDirection
;
const
scalar
startPosition
=
geometry
[
surfi
].
bounds
().
min
()
const
scalar
startPosition
=
geometry
[
surfi
].
bounds
().
min
()
&
userDirection
;
scalarField
normalizedPosition
(
pointLabels
.
size
(),
Zero
);
forAll
(
pointLabels
,
i
)
{
label
pointi
=
pointLabels
[
i
];
normalizedPosition
[
i
]
=
normalizedPosition
[
i
]
=
(
((
baseMesh
.
points
()[
pointi
]
&
userDirection
)
-
startPosition
)
/
totalLength
...
...
@@ -3011,7 +3011,7 @@ void Foam::snappyRefineDriver::doRefine
100
// maxIter
);
if
if
(
max
(
meshRefiner_
.
shells
().
nSmoothExpansion
())
>
0
||
max
(
meshRefiner_
.
shells
().
nSmoothPosition
())
>
0
...
...
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