CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Computing and printing y+

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2013, 17:04
Default Computing and printing y+
  #1
New Member
 
Greg Power
Join Date: Jan 2013
Posts: 9
Rep Power: 13
grjmpower is on a distinguished road
Has anyone generated code within SU^2 (or as a post-processing tool) to compute and print the y+ values at the first point adjacent to a viscous wall for turbulent flow?
grjmpower is offline   Reply With Quote

Old   February 21, 2013, 04:08
Default
  #2
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi Greg,

I don't personally have a snippet of code that can compute y+ within SU2, but just in case you are unfamiliar with it, the Pointwise website has a y+ calculator to give a quick estimate (http://www.pointwise.com/yplus/) based on flat plate theory.

Perhaps other folks have written a utility for this in SU2?

T
economon is offline   Reply With Quote

Old   February 22, 2013, 08:38
Default
  #3
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
sss3700 is on a distinguished road
This kind of utility would be a good addition to SU2! It would make creating plots like figure 4 of this tutorial pretty easy:

http://adl.stanford.edu/docs/display...ent+Flat+Plate

As far as I know, the only way to reproduce this figure is by manually post-processing a TECPLOT output file. Being able to directly output local y+ would be pretty helpful in assessing the suitability of a grid for a particular problem!
sss3700 is offline   Reply With Quote

Old   February 27, 2013, 14:44
Default
  #4
New Member
 
Kevin Holst
Join Date: Nov 2012
Posts: 4
Rep Power: 13
kevinholst is on a distinguished road
+1

I'd also like to see an easy y+ calculator added to SU2.
kevinholst is offline   Reply With Quote

Old   March 6, 2013, 11:25
Default
  #5
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by grjmpower View Post
Has anyone generated code within SU^2 (or as a post-processing tool) to compute and print the y+ values at the first point adjacent to a viscous wall for turbulent flow?
Hi Greg,
Thanks for you feedback,

We have added that capability in the current version of the code
http://su2.stanford.edu/download/svn/SU2_Rev1206.zip

Best,
Francisco
fpalacios is offline   Reply With Quote

Old   March 13, 2013, 13:57
Default
  #6
New Member
 
Greg Power
Join Date: Jan 2013
Posts: 9
Rep Power: 13
grjmpower is on a distinguished road
Francisco,

Thanks! However, I downloaded the link above and did not see the y+ calculation output. Do I need an input parameter to turn this on?

I also downloaded 2.0.1 and did not see any y+ calculation method.


Greg
grjmpower is offline   Reply With Quote

Old   March 21, 2013, 18:43
Default
  #7
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
sss3700 is on a distinguished road
I haven't tried it out yet, but a look at the v.2.0.2 code seems to indicate that the Y+ output is now present (SU2_CFD->src->output_structure.cpp):

Code:
   
 
  if ((solver == NAVIER_STOKES) || (solver == RANS)) {
   for(iPoint = 0; iPoint < geometry->GetnPoint(); iPoint++) {
    aux_friction[iPoint] = 0.0;
    aux_heat_transfer[iPoint] = 0.0;
    aux_y_plus[iPoint] = 0.0;
   }
   for (iMarker = 0; iMarker < config->GetnMarker_All(); iMarker++)
    if (config->GetMarker_All_Plotting(iMarker) == YES) {
     for(iVertex = 0; iVertex < geometry->nVertex[iMarker]; iVertex++) {
      iPoint = geometry->vertex[iMarker][iVertex]->GetNode();
      aux_friction[iPoint] = FlowSolution->GetCSkinFriction(iMarker,iVertex);
      aux_heat_transfer[iPoint] = FlowSolution->GetHeatTransferCoeff(iMarker,iVertex);
      aux_y_plus[iPoint] = FlowSolution->GetYPlus(iMarker,iVertex);
     }
    }
  }
 
....
 
 
/*--- Write the skin friction coefficient variables ---*/
   if ((solver == NAVIER_STOKES) || (solver == RANS) || (solver == FREE_SURFACE_NAVIER_STOKES) || (solver == FREE_SURFACE_RANS)) {
    if (geometry->node[iPoint]->GetBoundary()) {
                    if (incompressible) SurfFlow_file << " " << aux_friction[iPoint] << " " << aux_y_plus[iPoint];
                    else SurfFlow_file << " " << aux_friction[iPoint] << " " << aux_heat_transfer[iPoint] << " " << aux_y_plus[iPoint];
                }
Implemented here (SU2_CFD->src->solution_direct_mean.cpp):

Code:
                /*--- Compute y+ and non-dimensional velocity ---*/
                FrictionVel = sqrt(fabs(WallShearStress)/Density);
                YPlus[iMarker][iVertex] = WallDistMod*FrictionVel/(Viscosity/Density);
sss3700 is offline   Reply With Quote

Old   March 22, 2013, 00:35
Thumbs up
  #8
Senior Member
 
Join Date: Nov 2010
Posts: 139
Rep Power: 15
taxalian is on a distinguished road
Send a message via Skype™ to taxalian
I tried it and its even available in this version:
http://su2.stanford.edu/download/svn/SU2_Rev1206.zip

You need to open the surface file and you will see the variable called y-plus together with cp, cf and heat transfer coefficient.
taxalian 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 19:43.