Skip to content
Snippets Groups Projects
Commit f6dfa76f authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Andrew Heather
Browse files

TUT: updated the motorbike tutorial

to also compute smoothed sensitivity maps
parent 90d62c33
Branches
Tags
1 merge request!504Added functionality for smoothing the sensitivity derivatives
/*--------------------------------*- 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;
}
// ************************************************************************* //
/*--------------------------------*- 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 ...@@ -108,14 +108,60 @@ optimisation
{ {
sensitivities sensitivities
{ {
type surfacePoints; // Used to compute a number of variants of the sensitivity map
patches (motorBikeGroup); // at once
includeSurfaceArea false; type multiple;
adjointEikonalSolver patches (motorBikeGroup);
sensTypes
{ {
tolerance 1.e-5; pointBased
iters 1000; {
epsilon 0.1; 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;
}
} }
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment