-
Notifications
You must be signed in to change notification settings - Fork 918
Addition of Source Terms for NEMO Axisymmetric Flows #1162
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
Conversation
…mulation Signed-off-by: jtneedels <jneedels@stanford.edu>
…es up to eliminate compiler warnings Signed-off-by: jtneedels <jneedels@stanford.edu>
WallyMaier
left a comment
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.
@jtneedels thanks for deriving these source terms. They will be very helpful!
Please find my comments above
| su2double u = V_i[VEL_INDEX]; | ||
| su2double v = V_i[VEL_INDEX+1]; | ||
|
|
||
| qy_ve = kve*GV[TVE_INDEX][1]; |
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.
you could do something similar here: "su2double qy_ve"
Again, this just aesthetic
| } | ||
| } | ||
|
|
||
| auto residual = numerics->ComputeAxisymmetric(config); |
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.
Something is off with your spacings here
| Res_TruncError.resize(nPoint,nVar) = su2double(0.0); | ||
|
|
||
| /*--- Size Grad_AuxVar for axiysmmetric ---*/ | ||
|
|
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.
spacings
… term, addressed PR comments (spacing, initialization) Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
WallyMaier
left a comment
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 looks good to me! I think you should wait for another approval before pushing.
|
@jtneedels the testcases currently failing are my fault, they will be fixed in a minute. |
CatarinaGarbacz
left a comment
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 @jtneedels . good work. I just made some minor comments, I didn't notice anything "big", so for me it's a GO
| residual[nSpecies+3] = yinv*rhov*U_i[nSpecies+nDim+1]/rho*Volume; | ||
|
|
||
| if (viscous) { | ||
|
|
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.
extra line here
| for (iSpecies = 0; iSpecies < nHeavy; iSpecies++) { | ||
| sumJhs_y += (rho*Ds[iSpecies]*GV[RHOS_INDEX+iSpecies][1] - V_i[RHOS_INDEX+iSpecies]*Vector[1]) * hs[iSpecies]; | ||
| sumJeve_y += (rho*Ds[iSpecies]*GV[RHOS_INDEX+iSpecies][1] - V_i[RHOS_INDEX+iSpecies]*Vector[1]) * eve_i[iSpecies]; | ||
| } |
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.
you can just ident this 2 lines for aesthetics (the += part)
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 would not spend too much time with that kind of alignment, eventually we will run clang-format on the entire code... The only thing you can do to make code look good is to write small functions.
| eAxi_local++; | ||
| } | ||
|
|
||
| } |
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.
extra line between between the brackets
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.
Thanks Catarina, I think I've addressed this and the other comments on formatting.
Signed-off-by: jtneedels <jneedels@stanford.edu>
…/SU2 into feature_nemo_axi_viscous
Signed-off-by: jtneedels <jneedels@stanford.edu>
Proposed Changes
Related Work
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.