-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axisymmetric problems : Viscous source terms and generalised convective source terms and jacobian #1106
Conversation
@FlorianDm, I was looking through another reference that @jtneedels passed to me. (http://eprints.gla.ac.uk/184394/1/184394.pdf) If you are still struggling with the extension to RANS: On page 56, the stress terms are altered with a couple of terms. It may help...it may not. |
@WallyMaier thank you. Interesting...
@pcarruscag thanks for taking the time to review! |
*/ | ||
inline su2double GetAuxVar(unsigned long iPoint) const { return AuxVar(iPoint); } | ||
inline su2double GetAuxVar(unsigned long iPoint, unsigned long iVar = 0) const { return AuxVar(iPoint,iVar); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
||
if (yCoord > EPS){ | ||
su2double nu_v_on_y = Total_Viscosity*yVelocity/yCoord; | ||
nodes->SetAuxVar(iPoint, 0, nu_v_on_y); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much cleaner...thanks!
@@ -1647,7 +1647,7 @@ void CSolver::GetCommCountAndType(const CConfig* config, | |||
MPI_TYPE = COMM_TYPE_DOUBLE; | |||
break; | |||
case AUXVAR_GRADIENT: | |||
COUNT_PER_POINT = nDim; | |||
COUNT_PER_POINT = nDim*base_nodes->GetnAuxVar(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know see how to do this properly 👍
@WallyMaier and I ran some verification cases for axisymmetric verification (see attached slides). Results show good agreement between planar axisymmetric and 3D dimensional results. |
Thanks @jtneedels for doing some testing. I think we saw some issues with the aerodynamic coefficient computations...but the pressure distributions looked good. This looks good to me. Ill leave it to @FlorianDm or @pcarruscag to make any final changes or suggestions. Good work y'all! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WallyMaier & @FlorianDm , I repeated the heat flux problem, I have posted earlier and seems like issue still persist (I showed earlier that this is not the problem with 2D case with symmetry BC but pops in with axisymmetric case). I am attaching the files here for reference ....
hflux_issue_axi_branch.pdf
heatflux_issue_old.pdf
case_files.zip
Also, let me know if I have missed out anything ......
@aeroamit, interesting...Im think this could possibly be related to the computation of heatflux itself (with regards to the axisymmetric formulation). Judging from @jtneedels results, the Cp distributions look good. It could be the scaling factor applied to the heatflux? Ill take a look |
I have done some comparison cases for Cp distribution with axisymmetric formulation with older versions, they were matching well with commercial codes (I must say for the specific configurations I simulated, it somehow matched). This issue came into light while trying to obtain heat flux with axisymmetric formulation. |
@aeroamit What does temperature do? Could you compute the heat flux from the temperature in e.g. paraview? Is the root cause the computation of the energy equation or the computation of heat flux? |
@aeroamit, I ran the cases you had to take a look. While the residuals were "converged", the solution was not. There was a massive low temperature region along the body that took many more iterations to clean. The maximum Heat Flux was still ~6 w/m**2. Can you post the reference for the 10.6 value? |
Hi @bigfooted, Temperature boundary condition for wall corresponds to Isothermal wall BC (cold wall condition). This condition is applied to obtain heat flux unlike adiabatic wall (no heat transfer). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FlorianDm and @WallyMaier, I tried this branch and ran hemisphere (M=5) case as well as one more case. I found pressure distribution to be perfectly all right and matching well with alternate code. I did not observe any issue in the stagnation region for Cp distribution. We are good to go. Thanks for the fixes.. good job..
I am just attaching a file from heat flux computation issue case...
SU2_hflux_issue.pdf
Axisymmetric problems : Viscous source terms and generalised convective source terms and jacobian
See #1095