CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Turn on Turbulence model at certain coordinate (https://www.cfd-online.com/Forums/su2/161153-turn-turbulence-model-certain-coordinate.html)

Kelvin Ng October 19, 2015 09:52

Turn on Turbulence model at certain coordinate
 
Hi all,

I am new user of SU2 . Recently i run a few simulation with turbulence model. Now , i would like to try to turn on the turbulence model in certain place , that it can calculate laminar flow at point before transition of turbulence, so

1) How can i turn on turbulence model in certain coordinate?

2) How can i obtain information of mesh ( coordinate ) ? so i can try to write a python script to control it .

Thanks.

All the best.

avar October 30, 2015 14:19

Unfortunately trip terms ( to trip the flow from laminar to turbulent at a grid point) have not been implemented in the solver (turbulence models) yet. However the original SA model formulation (the original AIAA paper by Spalart in 1992) contains the definition of the trip terms and you could try adding them to the code.

fpalacios October 31, 2015 09:19

If you are interested on that implementation, the right place to look at is

void CSourcePieceWise_TurbSA::ComputeResidual(su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config)
in numerics_direct_turbulence.cpp

Feel free to work on that implementation and post your feedback or questions.

Thanks for using SU2,

Best,
Francisco

PS.- Another interesting subroutine is
void CTurbSASolver::Source_Residual(CGeometry *geometry, CSolver **solver_container, CNumerics *numerics, CNumerics *second_numerics, CConfig *config, unsigned short iMesh)
in solver_direct_turbulent.cpp


All times are GMT -4. The time now is 16:25.