CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

adjointShapeOptimizationFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jvinuales

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2022, 11:56
Default adjointShapeOptimizationFoam
  #1
Member
 
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10
jvinuales is on a distinguished road
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!
Fouch likes this.
jvinuales is offline   Reply With Quote

Old   February 7, 2022, 04:31
Default
  #2
Member
 
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 10
jvinuales is on a distinguished road
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;
    }
}
This function is used in the SIMPLE loop to make the inlet cells zero alpha:

Code:
zeroCells(alpha, inletCells);
I guess this function could also be used to make "non-design areas"? anyone has tried?
jvinuales is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:39.