STYLE: remove trailing space, tabs

This commit is contained in:
OpenFOAM bot
2020-01-22 10:00:03 +01:00
parent f172309956
commit 596e4aef3f
76 changed files with 140 additions and 140 deletions

View File

@ -275,7 +275,7 @@ int main(int argc, char *argv[])
{ false, " 31E1 " }, { false, " 31E1 " },
{ false, " 31.4159E-1 " }, { false, " 31.4159E-1 " },
{ true, "100" }, { true, "100" },
{ true, " 2147483644" }, { true, "\t2147483644" },
{ false, " 2147483700 " }, { false, " 2147483700 " },
} }
); );

View File

@ -29,9 +29,9 @@ Application
writeActiveDesignVariables writeActiveDesignVariables
Description 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. 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. 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 // Construct mesh movement object and grab active design variables
// Will exit with error if not implemented for this type // Will exit with error if not implemented for this type
const dictionary& movementDict = const dictionary& movementDict =
optDict.subDict("optimisation").subDict("meshMovement"); optDict.subDict("optimisation").subDict("meshMovement");
// Empty patch list will do // Empty patch list will do
labelList patchIDs(0); labelList patchIDs(0);
autoPtr<optMeshMovement> movementPtr autoPtr<optMeshMovement> movementPtr
(optMeshMovement::New(mesh, movementDict, patchIDs)); (optMeshMovement::New(mesh, movementDict, patchIDs));
const labelList activeDesignVariables = const labelList activeDesignVariables =
movementPtr().getActiveDesignVariables(); movementPtr().getActiveDesignVariables();
// Construct update method to grab the type // Construct update method to grab the type
dictionary& updateMethodDict = dictionary& updateMethodDict =
optDict.subDict("optimisation").subDict("updateMethod"); optDict.subDict("optimisation").subDict("updateMethod");
autoPtr<updateMethod> updMethod(updateMethod::New(mesh, updateMethodDict)); autoPtr<updateMethod> updMethod(updateMethod::New(mesh, updateMethodDict));
@ -87,11 +87,11 @@ int main(int argc, char *argv[])
dictionary& coeffsDict = updateMethodDict.subDictOrAdd(updMethod().type()); dictionary& coeffsDict = updateMethodDict.subDictOrAdd(updMethod().type());
coeffsDict.add<labelList> coeffsDict.add<labelList>
( (
"activeDesignVariables", "activeDesignVariables",
activeDesignVariables, activeDesignVariables,
true true
); );
// Write modified dictionary // Write modified dictionary
optDict.regIOobject::writeObject optDict.regIOobject::writeObject
( (

View File

@ -44,14 +44,14 @@ namespace fa
template<class Type> template<class Type>
scalar EulerFaD2dt2Scheme<Type>::deltaT_() const scalar EulerFaD2dt2Scheme<Type>::deltaT_() const
{ {
return mesh().time().deltaT().value(); return mesh().time().deltaT().value();
} }
template<class Type> template<class Type>
scalar EulerFaD2dt2Scheme<Type>::deltaT0_() const scalar EulerFaD2dt2Scheme<Type>::deltaT0_() const
{ {
return mesh().time().deltaT0().value(); return mesh().time().deltaT0().value();
} }

View File

@ -61,11 +61,11 @@ class EulerFaD2dt2Scheme
{ {
// Private Member Functions // Private Member Functions
//- Return the current time-step //- Return the current time-step
scalar deltaT_() const; scalar deltaT_() const;
//- Return the previous time-step //- Return the previous time-step
scalar deltaT0_() const; scalar deltaT0_() const;
//- No copy construct //- No copy construct
EulerFaD2dt2Scheme(const EulerFaD2dt2Scheme&) = delete; EulerFaD2dt2Scheme(const EulerFaD2dt2Scheme&) = delete;

View File

@ -48,7 +48,7 @@ Usage
type heatTransferCoeff; type heatTransferCoeff;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
htcModel ReynoldsAnalogy; htcModel ReynoldsAnalogy;
UInf (20 0 0); UInf (20 0 0);
Cp CpInf; Cp CpInf;
CpInf 1005; CpInf 1005;

View File

@ -42,8 +42,8 @@ Usage
type heatTransferCoeff; type heatTransferCoeff;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
htcModel fixedReferenceTemperature; htcModel fixedReferenceTemperature;
TRef 300; TRef 300;
... ...
\endverbatim \endverbatim

View File

@ -42,7 +42,7 @@ Usage
type heatTransferCoeff; type heatTransferCoeff;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
htcModel localReferenceTemperature; htcModel localReferenceTemperature;
... ...
\endverbatim \endverbatim

View File

@ -338,7 +338,7 @@ void Foam::LocalInteraction<CloudType>::info(Ostream& os)
scalarListList mpe0(patchData_.size()); scalarListList mpe0(patchData_.size());
labelListList nps0(patchData_.size()); labelListList nps0(patchData_.size());
scalarListList mps0(patchData_.size()); scalarListList mps0(patchData_.size());
forAll(patchData_, patchi) forAll(patchData_, patchi)
{ {
label lsd = nEscape_[patchi].size(); label lsd = nEscape_[patchi].size();
@ -348,8 +348,8 @@ void Foam::LocalInteraction<CloudType>::info(Ostream& os)
mps0[patchi].setSize(lsd, Zero); mps0[patchi].setSize(lsd, Zero);
} }
this->getModelProperty("nEscape", npe0); this->getModelProperty("nEscape", npe0);
this->getModelProperty("massEscape", mpe0); this->getModelProperty("massEscape", mpe0);
this->getModelProperty("nStick", nps0); this->getModelProperty("nStick", nps0);
this->getModelProperty("massStick", mps0); this->getModelProperty("massStick", mps0);

View File

@ -252,7 +252,7 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
scalarListList mpe0(nEscape_.size()); scalarListList mpe0(nEscape_.size());
labelListList nps0(nEscape_.size()); labelListList nps0(nEscape_.size());
scalarListList mps0(nEscape_.size()); scalarListList mps0(nEscape_.size());
forAll(nEscape_, patchi) forAll(nEscape_, patchi)
{ {
label lsd = nEscape_[patchi].size(); label lsd = nEscape_[patchi].size();
@ -261,7 +261,7 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
nps0[patchi].setSize(lsd, Zero); nps0[patchi].setSize(lsd, Zero);
mps0[patchi].setSize(lsd, Zero); mps0[patchi].setSize(lsd, Zero);
} }
this->getModelProperty("nEscape", npe0); this->getModelProperty("nEscape", npe0);
this->getModelProperty("massEscape", mpe0); this->getModelProperty("massEscape", mpe0);
this->getModelProperty("nStick", nps0); this->getModelProperty("nStick", nps0);

View File

@ -1796,7 +1796,7 @@ Foam::label Foam::NURBS3DVolume::nUSymmetry() const
else else
{ {
nU = (nU - 1)/2 + 1; nU = (nU - 1)/2 + 1;
} }
return nU; return nU;
} }
@ -1811,7 +1811,7 @@ Foam::label Foam::NURBS3DVolume::nVSymmetry() const
else else
{ {
nV = (nV - 1)/2 + 1; nV = (nV - 1)/2 + 1;
} }
return nV; return nV;
} }
@ -1826,7 +1826,7 @@ Foam::label Foam::NURBS3DVolume::nWSymmetry() const
else else
{ {
nW = (nW - 1)/2 + 1; nW = (nW - 1)/2 + 1;
} }
return nW; return nW;
} }

View File

@ -58,7 +58,7 @@ class NURBS3DVolumeCylindrical
protected: protected:
// Protected Data // Protected Data
//- Translation vector //- Translation vector
vector origin_; vector origin_;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 .master.develop | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -138,7 +138,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept. // section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even // NOTE: This point should never be on a face, always inside a cell, even
// after refinement. // after refinement.
locationsInMesh locationsInMesh
( (
(( 0.005 0.005 0.005) heater) (( 0.005 0.005 0.005) heater)
(( 0.05 0.005 0.005) rightSolid) (( 0.05 0.005 0.005) rightSolid)

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa.*" "p|pa.*"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -21,7 +21,7 @@ SIMPLE
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;
@ -47,11 +47,11 @@ runTimeModifiable yes;
functions functions
{ {
yPlus yPlus
{ {
type yPlus; type yPlus;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U|Ua|nuTilda|nuaTilda|yWall|da" "U|Ua|nuTilda|nuaTilda|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p.*|pa.*" "p.*|pa.*"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da" "U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;
@ -47,11 +47,11 @@ runTimeModifiable yes;
functions functions
{ {
yPlus yPlus
{ {
type yPlus; type yPlus;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U|Ua|nuTilda|nuaTilda|yWall|da" "U|Ua|nuTilda|nuaTilda|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U|Ua|nuTilda|nuaTilda|yWall|da" "U|Ua|nuTilda|nuaTilda|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U|Ua|nuTilda|nuaTilda|yWall|da" "U|Ua|nuTilda|nuaTilda|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -16,7 +16,7 @@ FoamFile
application adjointOptimisationFoam; application adjointOptimisationFoam;
startFrom latestTime; startFrom latestTime;
startTime 0; startTime 0;

View File

@ -14,14 +14,14 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
solvers solvers
{ {
"p|pa" "p|pa"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -35,7 +35,7 @@ solvers
tolerance 1e-9; tolerance 1e-9;
relTol 0.01; relTol 0.01;
}; };
"U|Ua|nuTilda|nuaTilda|yWall|da" "U|Ua|nuTilda|nuaTilda|yWall|da"
{ {
solver PBiCGStab; solver PBiCGStab;
preconditioner DILU; preconditioner DILU;
@ -44,7 +44,7 @@ solvers
}; };
} }
relaxationFactors relaxationFactors
{ {
fields fields
{ {

View File

@ -117,7 +117,7 @@ optimisation
{ {
type volumetricBSplines; type volumetricBSplines;
patches (lower upper); patches (lower upper);
includeObjectiveContribution true; // one of this or the equivalent flag in includeObjectiveContribution true; // one of this or the equivalent flag in
// surfaceSensitivities has to be set to true // surfaceSensitivities has to be set to true
// with this being the prefered one // with this being the prefered one
surfaceSensitivities surfaceSensitivities
@ -128,9 +128,9 @@ optimisation
includeDistance true; includeDistance true;
includeObjectiveContribution false; includeObjectiveContribution false;
// adjointEikonal and adjointMeshMovement solvers should be always nested // adjointEikonal and adjointMeshMovement solvers should be always nested
// within the dictionary of the sensitivity type they correspond to. // within the dictionary of the sensitivity type they correspond to.
// For (E)SI based sensitivities, this means the surfaceSensitivities dict // For (E)SI based sensitivities, this means the surfaceSensitivities dict
// Default values are provided, so the dictionaries can be skipped // Default values are provided, so the dictionaries can be skipped
adjointEikonalSolver adjointEikonalSolver
{ {

View File

@ -12,5 +12,5 @@ For more information, see:
https://www.openfoam.com/documentation/cpp-guide/html/verification-validation-turbulent-decay-homogeneous-isotropic-turbulence.html https://www.openfoam.com/documentation/cpp-guide/html/verification-validation-turbulent-decay-homogeneous-isotropic-turbulence.html
[1] G. Comte-Bellot and S. Corrsin, "The use of a contraction to improve the [1] G. Comte-Bellot and S. Corrsin, "The use of a contraction to improve the
isotropy of grid-generated turbulence," J. Fluid Mech. 25, 657 (1966). isotropy of grid-generated turbulence," J. Fluid Mech. 25, 657 (1966).

View File

@ -51,4 +51,4 @@ Ek table
); );
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(U) Gauss linear; div(U) Gauss linear;
div(phi,U) Gauss linearUpwind grad(U); div(phi,U) Gauss linearUpwind grad(U);
div(phi,k) Gauss linearUpwind grad(U); div(phi,k) Gauss linearUpwind grad(U);
div(phi,K) Gauss linearUpwind grad(U); div(phi,K) Gauss linearUpwind grad(U);

View File

@ -55,7 +55,7 @@ castellatedMeshControls
cellZone rotatingZone; cellZone rotatingZone;
faceZone rotatingZone; faceZone rotatingZone;
cellZoneInside inside; cellZoneInside inside;
} }
fan{ level (2 2);} // Note: better: levels 3 3 fan{ level (2 2);} // Note: better: levels 3 3
door{ level (0 0);} door{ level (0 0);}
outlet{ level (0 0);} outlet{ level (0 0);}
@ -67,7 +67,7 @@ castellatedMeshControls
refinementRegions refinementRegions
{ {
// Note: for better mesh quality utilize this refinement region // Note: for better mesh quality utilize this refinement region
// AMI{ mode inside; levels ((1E15 3));} // AMI{ mode inside; levels ((1E15 3));}
} }
@ -78,7 +78,7 @@ castellatedMeshControls
snapControls snapControls
{ {
nSmoothPatch 3; nSmoothPatch 3;
tolerance 4.0; tolerance 4.0;
nSolveIter 300; nSolveIter 300;
nRelaxIter 5; nRelaxIter 5;
nFeatureSnapIter 10; nFeatureSnapIter 10;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -43,8 +43,8 @@ boundaryField
rampTime 2.0; rampTime 2.0;
wavePhase 0; wavePhase 0;
nPaddle 4; nPaddle 4;
waveAngle 45; waveAngle 45;
} }
back back
{ {

View File

@ -43,8 +43,8 @@ boundaryField
rampTime 2.0; rampTime 2.0;
wavePhase 0; wavePhase 0;
nPaddle 4; nPaddle 4;
waveAngle 45; waveAngle 45;
} }
back back
{ {

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 | | \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/