STYLE: remove trailing spaces

This commit is contained in:
OpenFOAM bot
2019-06-26 11:36:49 +02:00
parent 3d01b172e5
commit 8a932a37e8
18 changed files with 50 additions and 50 deletions

View File

@ -30,7 +30,7 @@ Group
grpIncompressibleSolvers grpIncompressibleSolvers
Description 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. typically to generate boundary layer conditions at an inlet.
Boundary layer code to calculate the U, k and epsilon distributions. Boundary layer code to calculate the U, k and epsilon distributions.

View File

@ -73,7 +73,7 @@ forAll(boundaryDicts, patchi)
} }
else else
{ {
nbrPatchName = "patch" + Foam::name(patchi - 1); nbrPatchName = "patch" + Foam::name(patchi - 1);
} }
patchDict.add("type", cyclicPolyPatch::typeName); patchDict.add("type", cyclicPolyPatch::typeName);

View File

@ -82,7 +82,7 @@ void Foam::transform
template<class Type, template<class> class PatchField, class GeoMesh> 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 Foam::transform
( (
const GeometricField<tensor, PatchField, GeoMesh>& rot, const GeometricField<tensor, PatchField, GeoMesh>& rot,

View File

@ -145,7 +145,7 @@ public:
inline static bool valid(char c); inline static bool valid(char c);
//- Construct fileName with no invalid characters, possibly applying //- 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. //- removing duplicate or trailing slashes, etc.
static fileName validate(const std::string& s, const bool doClean=true); static fileName validate(const std::string& s, const bool doClean=true);

View File

@ -20,50 +20,50 @@ dynamicFvMesh dynamicRefineBalancedFvMesh;
refinementControls refinementControls
{ {
enableRefinementControl true; enableRefinementControl true;
fields // must be scalarFields fields // must be scalarFields
( (
//alpha (min max refineLevel) //alpha (min max refineLevel)
alpha (0.01 0.99 2) // refine cells where alpha in [0.01:0.99] with maximal 2 refinement layers 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!) 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 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 outerRefLayers 5; // describes how many cell layers outside phase alpha are to be refined
// optional settings: // optional settings:
maxRefineLevel 4; // max refinement layers; Default: maxRefinement from dynamicRefineFvMeshCoeffs is used 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 // 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 gradients // must be scalars
( (
// arguments as in 'fields' // arguments as in 'fields'
// min/max values are based on mag(fvc::grad(volScalarField)) * cellVolume // min/max values are based on mag(fvc::grad(volScalarField)) * cellVolume
T (0.01 10 1) T (0.01 10 1)
); );
curls // must be vectors curls // must be vectors
( (
// arguments as in 'fields' // arguments as in 'fields'
// min/max values are based on mag(fvc::curl(volVectorField)) // min/max values are based on mag(fvc::curl(volVectorField))
U (0.5 1 2) U (0.5 1 2)
); );
regions regions
( (
boxToCell boxToCell
{ {
minLevel 1; minLevel 1;
box (-1 0.001 0.002)(1 0.005 0.003); box (-1 0.001 0.002)(1 0.005 0.003);
} }
); );
} }
@ -75,27 +75,27 @@ dynamicRefineFvMeshCoeffs
// How often to refine // How often to refine
refineInterval 10; refineInterval 10;
// Field to be refinement on (set it to 'internalRefinementField' to use the // Field to be refinement on (set it to 'internalRefinementField' to use the
// refinementControls dictionary entries above) // refinementControls dictionary entries above)
field internalRefinementField; field internalRefinementField;
// Refine field inbetween lower..upper // Refine field inbetween lower..upper
lowerRefineLevel 0.5; // do not change lowerRefineLevel 0.5; // do not change
upperRefineLevel 3.5; // maxRefinement+0.5 upperRefineLevel 3.5; // maxRefinement+0.5
// If value < unrefineLevel unrefine // If value < unrefineLevel unrefine
unrefineLevel -0.5; // do not change unrefineLevel -0.5; // do not change
// Have slower than 2:1 refinement // Have slower than 2:1 refinement
nBufferLayers 4; nBufferLayers 4;
// Refine cells only up to maxRefinement levels // Refine cells only up to maxRefinement levels
maxRefinement 3; maxRefinement 3;
// Stop refinement if maxCells reached // Stop refinement if maxCells reached
maxCells 200000; maxCells 200000;
// Flux field and corresponding velocity field. Fluxes on changed // Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none' // faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated. // on surfaceScalarFields that do not need to be reinterpolated.
@ -116,7 +116,7 @@ dynamicRefineFvMeshCoeffs
Uf Uf
Uf_0 Uf_0
); );
// Write the refinement level as a volScalarField // Write the refinement level as a volScalarField
dumpLevel true; dumpLevel true;
} }

View File

@ -300,7 +300,7 @@ Type Foam::motionSmootherAlgo::get
) )
{ {
Type val(defaultValue); Type val(defaultValue);
if if
( (
!dict.readEntry !dict.readEntry

View File

@ -42,19 +42,19 @@ namespace fa
defineTemplateRunTimeSelectionTable defineTemplateRunTimeSelectionTable
( (
faD2dt2Scheme<scalar>, faD2dt2Scheme<scalar>,
Istream Istream
); );
defineTemplateRunTimeSelectionTable defineTemplateRunTimeSelectionTable
( (
faD2dt2Scheme<vector>, faD2dt2Scheme<vector>,
Istream Istream
); );
defineTemplateRunTimeSelectionTable defineTemplateRunTimeSelectionTable
( (
faD2dt2Scheme<tensor>, faD2dt2Scheme<tensor>,
Istream Istream
); );

View File

@ -14,7 +14,7 @@ if (mesh.dynamic())
// Note // Note
// - set to READ_IF_PRESENT and AUTO_WRITE to simplify dpdt correction // - set to READ_IF_PRESENT and AUTO_WRITE to simplify dpdt correction
// by meshPhi // by meshPhi
dpdtHeader.readOpt() = IOobject::READ_IF_PRESENT; dpdtHeader.readOpt() = IOobject::READ_IF_PRESENT;
dpdtHeader.writeOpt() = IOobject::AUTO_WRITE; dpdtHeader.writeOpt() = IOobject::AUTO_WRITE;
} }

View File

@ -344,7 +344,7 @@ initLenRandomBox() const
// Refer to 'computeFilterCoeffs()' // Refer to 'computeFilterCoeffs()'
const label n = ceil(L_[i]); const label n = ceil(L_[i]);
const label twiceN = 4*n; const label twiceN = 4*n;
// Initialise: Random-number set sizes // Initialise: Random-number set sizes
lenRandomBox[i] = lenGrid[sliceI] + twiceN; lenRandomBox[i] = lenGrid[sliceI] + twiceN;
@ -575,7 +575,7 @@ void Foam::turbulentDigitalFilterInletFvPatchVectorField::embedTwoPointCorrs()
const List<scalar>& filter1 = filterCoeffs_[dir]; const List<scalar>& filter1 = filterCoeffs_[dir];
const List<scalar>& filter2 = filterCoeffs_[3 + dir]; const List<scalar>& filter2 = filterCoeffs_[3 + dir];
const List<scalar>& filter3 = filterCoeffs_[6 + dir]; const List<scalar>& filter3 = filterCoeffs_[6 + dir];
const label sz1 = lenRandomBox_[dir]; const label sz1 = lenRandomBox_[dir];
const label sz2 = lenRandomBox_[3 + dir]; const label sz2 = lenRandomBox_[3 + dir];
const label sz3 = lenRandomBox_[6 + dir]; const label sz3 = lenRandomBox_[6 + dir];

View File

@ -37,7 +37,7 @@ Description
\verbatim \verbatim
Klein, M., Sadiki, A., and Janicka, J. 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, developing direct numerical or large eddy simulations,
Journal of Computational Physics (2003) 186(2):652-665. Journal of Computational Physics (2003) 186(2):652-665.
doi:10.1016/S0021-9991(03)00090-1 doi:10.1016/S0021-9991(03)00090-1
@ -47,7 +47,7 @@ Description
\verbatim \verbatim
Xie, Z.-T., and Castro, I. 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 street-scale flows, Flow, Turbulence and Combustion (2008) 81(3):449-470
doi:10.1007/s10494-008-9151-5 doi:10.1007/s10494-008-9151-5
\endverbatim \endverbatim
@ -130,7 +130,7 @@ Usage
const1FSM -0.7854 //-0.25*PI; const1FSM -0.7854 //-0.25*PI;
const2FSM -1.5707; //-0.5*PI; const2FSM -1.5707; //-0.5*PI;
} }
\endverbatim \endverbatim
Among the dictionary entries, two entries can be input as patch profiles: 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] //- Mean inlet velocity profile in global coordinates [m/s]
vectorField UMean_; 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] //- coordinates (e1u, e1v, e1w, e2u, e2v, e2w, e3u, e3v, e3w) [m]
// First three entries should always correspond to the length scales // First three entries should always correspond to the length scales
// in association with the convective mean flow direction // in association with the convective mean flow direction

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2016 - 2019 OpenCFD Ltd. \\ / A nd | Copyright (C) 2016 - 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2015 OpenFOAM Foundation Copyright (C) 2015 OpenFOAM Foundation
------------------------------------------------------------------------------- -------------------------------------------------------------------------------

View File

@ -307,8 +307,8 @@ void Foam::isoAdvection::timeIntegratedFlux()
// Note: We will like all point neighbours to interface cells to // Note: We will like all point neighbours to interface cells to
// be checked. Especially if the interface leaves a cell during // be checked. Especially if the interface leaves a cell during
// a time step, it may enter a point neighbour which should also // a time step, it may enter a point neighbour which should also
// be treated like a surface cell. Its interface normal should // be treated like a surface cell. Its interface normal should
// somehow be inherrited from its upwind cells from which it // somehow be inherrited from its upwind cells from which it
// receives the interface. // receives the interface.
const labelList& nNeighbourCells = cellCells[otherCell]; const labelList& nNeighbourCells = cellCells[otherCell];
forAll(nNeighbourCells, ni) forAll(nNeighbourCells, ni)

View File

@ -160,7 +160,7 @@ public:
const DynamicList<point>& surfacePoints() const; const DynamicList<point>& surfacePoints() const;
void clearStorage(); void clearStorage();
//- Calculate volumetric face transport during dt given the isoFace //- Calculate volumetric face transport during dt given the isoFace
// data provided as input for face facei // data provided as input for face facei
scalar timeIntegratedFaceFlux scalar timeIntegratedFaceFlux
@ -174,7 +174,7 @@ public:
const scalar phi, const scalar phi,
const scalar magSf const scalar magSf
); );
//- Calculate time integrated area for a face //- Calculate time integrated area for a face
scalar timeIntegratedArea scalar timeIntegratedArea
( (

View File

@ -111,7 +111,7 @@ const Foam::word Foam::functionObjects::columnAverage::averageName
const word& fieldName const word& fieldName
) const ) const
{ {
return name() + ":columnAverage(" + fieldName + ")"; return name() + ":columnAverage(" + fieldName + ")";
} }

View File

@ -29,7 +29,7 @@ Description
temperature temperature
The heat transfer coefficient is specified by: The heat transfer coefficient is specified by:
\f[ \f[
h = \frac{q}{T_{ref} - T_w} h = \frac{q}{T_{ref} - T_w}
\f] \f]

View File

@ -29,7 +29,7 @@ Description
field as the reference temperature field as the reference temperature
The heat transfer coefficient is specified by: The heat transfer coefficient is specified by:
\f[ \f[
h = \frac{q}{T_c - T_w} h = \frac{q}{T_c - T_w}
\f] \f]

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010, 2015-2019 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2010, 2015-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.

View File

@ -2008,7 +2008,7 @@ void Foam::snappyRefineDriver::mergeAndSmoothRatio
{ {
if (debug) if (debug)
{ {
Pout<< "Converged with iteration " << iter Pout<< "Converged with iteration " << iter
<< " initResidual: " << initResidual << " initResidual: " << initResidual
<< " final residual : " << res << endl; << " final residual : " << res << endl;
} }
@ -2055,7 +2055,7 @@ Foam::label Foam::snappyRefineDriver::directionalSmooth
forAll(shells.nSmoothExpansion(), shellI) forAll(shells.nSmoothExpansion(), shellI)
{ {
if if
( (
shells.nSmoothExpansion()[shellI] > 0 shells.nSmoothExpansion()[shellI] > 0
|| shells.nSmoothPosition()[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 // normalize all points within
const scalar totalLength = const scalar totalLength =
geometry[surfi].bounds().span() geometry[surfi].bounds().span()
& userDirection; & userDirection;
const scalar startPosition = const scalar startPosition =
geometry[surfi].bounds().min() geometry[surfi].bounds().min()
& userDirection; & userDirection;
scalarField normalizedPosition(pointLabels.size(), Zero); scalarField normalizedPosition(pointLabels.size(), Zero);
forAll(pointLabels, i) forAll(pointLabels, i)
{ {
label pointi = pointLabels[i]; label pointi = pointLabels[i];
normalizedPosition[i] = normalizedPosition[i] =
( (
((baseMesh.points()[pointi]&userDirection) - startPosition) ((baseMesh.points()[pointi]&userDirection) - startPosition)
/ totalLength / totalLength
@ -3011,7 +3011,7 @@ void Foam::snappyRefineDriver::doRefine
100 // maxIter 100 // maxIter
); );
if if
( (
max(meshRefiner_.shells().nSmoothExpansion()) > 0 max(meshRefiner_.shells().nSmoothExpansion()) > 0
|| max(meshRefiner_.shells().nSmoothPosition()) > 0 || max(meshRefiner_.shells().nSmoothPosition()) > 0