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

adjointShapeOptimizationFoam - inlet velocity weird behavior

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2018, 11:26
Default adjointShapeOptimizationFoam - inlet velocity weird behavior
  #1
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Hi!

People using adjointShapeOptimizationFoam, have you ever noticed that the adjoint velocity vectors of the very first line of cells are usually pointing to an akward direction? I mean, I know adjoint velocity is not phisically something we can interpret, but this behavior is really strange to me. I would expect something more continuous. Seems like some discontinuity, source or something is acting. Please, see figure 1 of an example (this is the first iteration of an example I am running).

The left faces are the inlet of my domain (the only faces with arrows) and vectors are adjoint velocity field. Note that, for the next cells (second column from left to right), things seem to be back to expected behaviour. So, when this velocities are weird (as the picture), as sensitivities are scalar product of both fields (primal and adjoint), the method starts to block the entrance cells and that is where the problem starts: adjoint field diverges and I can't get a clean solution.

The original code removes the Adjoint Transpose Convection at inlet cells, but this is not exactly OK and I am trying to not use this.

Note: all examples shown here were generated with the ATC being calculated in the whole domain, so I am not removing it.

Something interesting I found out is that, when I use relaxation factors below, I get the result from figure 1.
pa = 0.3
Ua = 0.7

But, if I invert them:
pa = 0.7
Ua = 0.3

Then, I have figure 2, which is more according to what is expected.

Even though I am being able to have good results using cell limiters on grad(Ua), I think the best I could have until now is with the use of the flow rate inlet BC and relaxation factors higher for pa than Ua. Please, see BC example below and figure 3 of the same case (without grad limiter or removal of ATC).

inlet
{
type flowRateInletVelocity;
massFlowRate 0.01;
value uniform (0 0 0);
rhoInlet 1.0;
extrapolateProfile yes;
}

This last combination (relaxation factor + flow rate at inlet) gives a clean solution without removal of ATC.

I would really appreciate any comments of the more experienced people on this.

Best Regards,

Okubo

Last edited by C. Okubo; May 23, 2018 at 11:29. Reason: Figures were wrong
C. Okubo is offline   Reply With Quote

Old   May 23, 2018, 11:30
Default
  #2
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Forgot the figures!
Attached Images
File Type: png 1.png (27.1 KB, 24 views)
File Type: png 2.png (25.5 KB, 20 views)
File Type: png 3.png (24.7 KB, 19 views)
C. Okubo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 10:34
UDF: Change boundary condition. Velocity inlet to pressure inlet at time "t" jpina FLUENT 10 April 11, 2015 14:19
velocity inlet and ideal gas simultaneously-what's wrong? preetam69 FLUENT 0 September 28, 2013 04:51
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 11:21
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 12:43.