|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 11 ![]() |
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! |
|
|
|
|
|
|
|
|
#2 |
|
Member
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 11 ![]() |
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); |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|