mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
108 lines
3.0 KiB
C++
108 lines
3.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v1906 |
|
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object optimisationDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
optimisationManager singleRun;
|
|
|
|
primalSolvers
|
|
{
|
|
op1
|
|
{
|
|
active true;
|
|
type incompressible;
|
|
solver simple;
|
|
solutionControls
|
|
{
|
|
nIters 3000;
|
|
residualControl
|
|
{
|
|
"p.*" 1.e-7;
|
|
"U.*" 1.e-7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
adjointManagers
|
|
{
|
|
adjManager1
|
|
{
|
|
primalSolver op1;
|
|
adjointSolvers
|
|
{
|
|
adjS1
|
|
{
|
|
// choose adjoint solver
|
|
//----------------------
|
|
active true;
|
|
type incompressible;
|
|
solver adjointSimple;
|
|
|
|
// manage objectives
|
|
//------------------
|
|
objectives
|
|
{
|
|
type incompressible;
|
|
objectiveNames
|
|
{
|
|
moment
|
|
{
|
|
weight 1.;
|
|
type moment;
|
|
patches (pressure suction);
|
|
direction (0 0 1);
|
|
rotationCenter (0 0 0);
|
|
Aref 2.;
|
|
lRef 1.;
|
|
rhoInf 1.225;
|
|
UInf 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ATC treatment
|
|
//--------------
|
|
ATCModel
|
|
{
|
|
ATCModel standard;
|
|
}
|
|
|
|
// solution control
|
|
//------------------
|
|
solutionControls
|
|
{
|
|
nIters 3000;
|
|
residualControl
|
|
{
|
|
"pa.*" 1.e-7;
|
|
"Ua.*" 1.e-7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
optimisation
|
|
{
|
|
sensitivities
|
|
{
|
|
type surfacePoints;
|
|
patches (pressure suction);
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|