TUT: updated the motorbike tutorial
to also compute smoothed sensitivity maps
This commit is contained in:
parent
90d62c33e4
commit
f6dfa76f6d
@ -0,0 +1,47 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2108 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object faSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default steadyState;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear limited 0.333;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default limited 0.333;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,33 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2108 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object faSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
smoothedSens
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-08;
|
||||
relTol 0.01;
|
||||
}
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
smoothedSens 0.4;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
@ -108,14 +108,60 @@ optimisation
|
||||
{
|
||||
sensitivities
|
||||
{
|
||||
type surfacePoints;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
adjointEikonalSolver
|
||||
// Used to compute a number of variants of the sensitivity map
|
||||
// at once
|
||||
type multiple;
|
||||
patches (motorBikeGroup);
|
||||
sensTypes
|
||||
{
|
||||
tolerance 1.e-5;
|
||||
iters 1000;
|
||||
epsilon 0.1;
|
||||
pointBased
|
||||
{
|
||||
type surfacePoints;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
adjointEikonalSolver
|
||||
{
|
||||
tolerance 1.e-5;
|
||||
iters 1000;
|
||||
epsilon 0.1;
|
||||
}
|
||||
}
|
||||
faceBased-unsmoothed
|
||||
{
|
||||
type surface;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
}
|
||||
faceBased-RMult_2
|
||||
{
|
||||
type surface;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
smoothSensitivities true;
|
||||
meanRadiusMultiplier 2;
|
||||
suffix Rmult2; // suffix of the sensitivity map output files
|
||||
iters 2000;
|
||||
}
|
||||
faceBased-RMult_5
|
||||
{
|
||||
type surface;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
smoothSensitivities true;
|
||||
meanRadiusMultiplier 5;
|
||||
suffix Rmult5; // suffix of the sensitivity map output files
|
||||
iters 2000;
|
||||
}
|
||||
faceBased-RMult_10
|
||||
{
|
||||
type surface;
|
||||
patches (motorBikeGroup);
|
||||
includeSurfaceArea false;
|
||||
smoothSensitivities true;
|
||||
meanRadiusMultiplier 10;
|
||||
suffix Rmult10; // suffix of the sensitivity map output files
|
||||
iters 2000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user