STYLE: remove trailing space, tabs
This commit is contained in:
parent
f172309956
commit
596e4aef3f
@ -275,7 +275,7 @@ int main(int argc, char *argv[])
|
||||
{ false, " 31E1 " },
|
||||
{ false, " 31.4159E-1 " },
|
||||
{ true, "100" },
|
||||
{ true, " 2147483644" },
|
||||
{ true, "\t2147483644" },
|
||||
{ false, " 2147483700 " },
|
||||
}
|
||||
);
|
||||
|
@ -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
|
||||
(
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -48,7 +48,7 @@ Usage
|
||||
type heatTransferCoeff;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
...
|
||||
htcModel ReynoldsAnalogy;
|
||||
htcModel ReynoldsAnalogy;
|
||||
UInf (20 0 0);
|
||||
Cp CpInf;
|
||||
CpInf 1005;
|
||||
|
@ -42,8 +42,8 @@ Usage
|
||||
type heatTransferCoeff;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
...
|
||||
htcModel fixedReferenceTemperature;
|
||||
TRef 300;
|
||||
htcModel fixedReferenceTemperature;
|
||||
TRef 300;
|
||||
...
|
||||
\endverbatim
|
||||
|
||||
|
@ -42,7 +42,7 @@ Usage
|
||||
type heatTransferCoeff;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
...
|
||||
htcModel localReferenceTemperature;
|
||||
htcModel localReferenceTemperature;
|
||||
...
|
||||
\endverbatim
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ class NURBS3DVolumeCylindrical
|
||||
protected:
|
||||
|
||||
// Protected Data
|
||||
|
||||
|
||||
//- Translation vector
|
||||
vector origin_;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- 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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -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)
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -21,7 +21,7 @@ SIMPLE
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
@ -47,11 +47,11 @@ runTimeModifiable yes;
|
||||
functions
|
||||
{
|
||||
yPlus
|
||||
{
|
||||
{
|
||||
type yPlus;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl writeTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p.*|pa.*"
|
||||
"p.*|pa.*"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da"
|
||||
"U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
@ -47,11 +47,11 @@ runTimeModifiable yes;
|
||||
functions
|
||||
{
|
||||
yPlus
|
||||
{
|
||||
{
|
||||
type yPlus;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl writeTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
application adjointOptimisationFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
|
@ -14,14 +14,14 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
SIMPLE
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"p|pa"
|
||||
"p|pa"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
@ -35,7 +35,7 @@ solvers
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
};
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
"U|Ua|nuTilda|nuaTilda|yWall|da"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
@ -44,7 +44,7 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ optimisation
|
||||
{
|
||||
type volumetricBSplines;
|
||||
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
|
||||
// with this being the prefered one
|
||||
surfaceSensitivities
|
||||
@ -128,9 +128,9 @@ optimisation
|
||||
includeDistance true;
|
||||
includeObjectiveContribution false;
|
||||
|
||||
// adjointEikonal and adjointMeshMovement solvers should be always nested
|
||||
// within the dictionary of the sensitivity type they correspond to.
|
||||
// For (E)SI based sensitivities, this means the surfaceSensitivities dict
|
||||
// adjointEikonal and adjointMeshMovement solvers should be always nested
|
||||
// within the dictionary of the sensitivity type they correspond to.
|
||||
// For (E)SI based sensitivities, this means the surfaceSensitivities dict
|
||||
// Default values are provided, so the dictionaries can be skipped
|
||||
adjointEikonalSolver
|
||||
{
|
||||
|
@ -12,5 +12,5 @@ For more information, see:
|
||||
|
||||
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).
|
||||
|
@ -51,4 +51,4 @@ Ek table
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
// ************************************************************************* //
|
||||
|
@ -28,7 +28,7 @@ gradSchemes
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(U) Gauss linear;
|
||||
div(U) Gauss linear;
|
||||
div(phi,U) Gauss linearUpwind grad(U);
|
||||
div(phi,k) Gauss linearUpwind grad(U);
|
||||
div(phi,K) Gauss linearUpwind grad(U);
|
||||
|
@ -55,7 +55,7 @@ castellatedMeshControls
|
||||
cellZone rotatingZone;
|
||||
faceZone rotatingZone;
|
||||
cellZoneInside inside;
|
||||
}
|
||||
}
|
||||
fan{ level (2 2);} // Note: better: levels 3 3
|
||||
door{ level (0 0);}
|
||||
outlet{ level (0 0);}
|
||||
@ -67,7 +67,7 @@ castellatedMeshControls
|
||||
|
||||
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));}
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ castellatedMeshControls
|
||||
snapControls
|
||||
{
|
||||
nSmoothPatch 3;
|
||||
tolerance 4.0;
|
||||
tolerance 4.0;
|
||||
nSolveIter 300;
|
||||
nRelaxIter 5;
|
||||
nFeatureSnapIter 10;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -43,8 +43,8 @@ boundaryField
|
||||
rampTime 2.0;
|
||||
wavePhase 0;
|
||||
|
||||
nPaddle 4;
|
||||
waveAngle 45;
|
||||
nPaddle 4;
|
||||
waveAngle 45;
|
||||
}
|
||||
back
|
||||
{
|
||||
|
@ -43,8 +43,8 @@ boundaryField
|
||||
rampTime 2.0;
|
||||
wavePhase 0;
|
||||
|
||||
nPaddle 4;
|
||||
waveAngle 45;
|
||||
nPaddle 4;
|
||||
waveAngle 45;
|
||||
}
|
||||
back
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user