/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2506 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object optimisationDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // optimisationManager steadyOptimisation; primalSolvers { p1 { active true; type incompressible; solver simple; solutionControls { nIters 3000; residualControl { "p.*" 1.e-7; "U.*" 1.e-7; } } } } adjointManagers { am1 { primalSolver p1; adjointSolvers { as1 { // choose adjoint solver //---------------------- active true; type incompressible; solver adjointSimple; // manage objectives //------------------ objectives { type incompressible; objectiveNames { flowRate { weight -1; // maximize type flowRate; patches (outlet1); normalise true; } } } // ATC treatment //-------------- ATCModel { ATCModel standard; } // solution control //------------------ solutionControls { nIters 3000; residualControl { "pa.*" 1.e-7; "Ua.*" 1.e-7; } } } } } } optimisation { designVariables { type shape; shapeType volumetricBSplines; sensitivityType shapeFI; patches (upperWall lowerWall middleWall); maxInitChange 1.e-3; } updateMethod { method conjugateGradient; } } // ************************************************************************* //