|
[Sponsors] |
February 3, 2022, 11:56 |
adjointShapeOptimizationFoam
|
#1 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
Hello everyone!
I am using OpenFOAM 2112, trying to assess the applicability of the adjointShapeOptimizationFoam solver for optimizing internal flows. Is it possible to define "non-design" regions? i.e. regions where alpha must be 0. Also, is it possible to model porous regions (apart from the implemented alpha) to model other resistances? I am guessing this will require developing a custom solver? Thanks! |
|
February 7, 2022, 04:31 |
|
#2 |
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10 |
regarding making "non-design" zones, I can see there is a template function "zeroCells", defined in adjointShapeOptimizationFoam.C to make variables zero.
Code:
void zeroCells ( GeometricField<Type, fvPatchField, volMesh>& vf, const labelList& cells ) { forAll(cells, i) { vf[cells[i]] = Zero; } } Code:
zeroCells(alpha, inletCells); |
|
|
|