|
[Sponsors] |
March 29, 2016, 14:30 |
Skin coefficient in X direction
|
#1 |
New Member
Carlos Felipe Urrego Hernandez
Join Date: Nov 2015
Location: Bogotá, Colombia
Posts: 1
Rep Power: 0 |
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. |
|
March 31, 2016, 02:06 |
|
#2 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
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 |
|
Tags |
cfx, skin coefficient, su2, x component, x direction |
|
|
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 |