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

Skin coefficient in X direction

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fpalacios

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2016, 14:30
Default Skin coefficient in X direction
  #1
New Member
 
Carlos Felipe Urrego Hernandez
Join Date: Nov 2015
Location: Bogotá, Colombia
Posts: 1
Rep Power: 0
Charlieman95 is on a distinguished road
Hello.
Do anybody know or have any idea of how To get or compute the X_component of the skin coefficient in SU2.
The case is a turbulent flow over an airfoil.
Thanks.
Charlieman95 is offline   Reply With Quote

Old   March 31, 2016, 02:06
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Hi Carlos, that is an important capability that we should implement in SU2.

At this point, if you need that result my recommendation is to go to

void CNSSolver::Viscous_Forces(CGeometry *geometry, CConfig *config) {

in solver_direct_mean()
and change

/*--- Project Tau in each surface element ---*/

for (iDim = 0; iDim < nDim; iDim++) {
TauElem[iDim] = 0.0;
for (jDim = 0; jDim < nDim; jDim++) {
TauElem[iDim] += Tau[iDim][jDim]*UnitNormal[jDim];
}
}

/*--- Compute wall shear stress (using the stress tensor) ---*/

TauNormal = 0.0; for (iDim = 0; iDim < nDim; iDim++) TauNormal += TauElem[iDim] * UnitNormal[iDim];
for (iDim = 0; iDim < nDim; iDim++) TauTangent[iDim] = TauElem[iDim] - TauNormal * UnitNormal[iDim];
WallShearStress = 0.0; for (iDim = 0; iDim < nDim; iDim++) WallShearStress += TauTangent[iDim]*TauTangent[iDim];
WallShearStress = sqrt(WallShearStress);

for (iDim = 0; iDim < nDim; iDim++) WallDist[iDim] = (Coord[iDim] - Coord_Normal[iDim]);
WallDistMod = 0.0; for (iDim = 0; iDim < nDim; iDim++) WallDistMod += WallDist[iDim]*WallDist[iDim]; WallDistMod = sqrt(WallDistMod);

/*--- Compute wall skin friction coefficient, and heat flux on the wall ---*/

CSkinFriction[iMarker][iVertex] = WallShearStress / (0.5*RefDensity*RefVel2);


by

/*--- Project Tau in each surface element ---*/

for (iDim = 0; iDim < nDim; iDim++) {
TauElem[iDim] = 0.0;
for (jDim = 0; jDim < nDim; jDim++) {
TauElem[iDim] += Tau[iDim][jDim]*UnitNormal[jDim];
}
}

/*--- Compute wall shear stress (using the stress tensor) ---*/

TauNormal = 0.0; for (iDim = 0; iDim < nDim; iDim++) TauNormal += TauElem[iDim] * UnitNormal[iDim];
for (iDim = 0; iDim < nDim; iDim++) TauTangent[iDim] = TauElem[iDim] - TauNormal * UnitNormal[iDim];
WallShearStress = 0.0; for (iDim = 0; iDim < nDim; iDim++) WallShearStress += TauTangent[iDim]*TauTangent[iDim];
WallShearStress = sqrt(WallShearStress);

for (iDim = 0; iDim < nDim; iDim++) WallDist[iDim] = (Coord[iDim] - Coord_Normal[iDim]);
WallDistMod = 0.0; for (iDim = 0; iDim < nDim; iDim++) WallDistMod += WallDist[iDim]*WallDist[iDim]; WallDistMod = sqrt(WallDistMod);

/*--- Compute wall skin friction coefficient, and heat flux on the wall ---*/

TauTangent_X = TauElem[0] - TauNormal * UnitNormal[0];
CSkinFriction[iMarker][iVertex] = TauTangent_X / (0.5*RefDensity*RefVel2);

it is a very temporary ad hoc change but it will solve your problem... CSkinFriction[iMarker][iVertex] will have now the X Cf component.

Best,
Francisco
jomunkas likes this.
fpalacios is offline   Reply With Quote

Reply

Tags
cfx, skin coefficient, su2, x component, x direction


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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Calculate Skin Friction Coefficient in a plate with a roughness pattern Kyoto FLUENT 0 August 23, 2013 23:52
Changing inflow velocity direction deteriorates lift and drag ziggo FLUENT 3 July 24, 2013 09:39
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
lid-driven cavity in matlab using BiCGStab Don456 Main CFD Forum 1 January 19, 2012 16:00


All times are GMT -4. The time now is 10:14.