Replies: 1 comment 5 replies
-
Yes we only have space for 2 source numerics, but you can add simple sources directly in the solver (Source_Residual). It would actually be more efficient to implement simple body forces like that. It is better (simpler, more efficient) to compute the axisymmetric turbulence source together with the plain turbulence source, as we do for SST. Gravity is not compatible with axisymmetry because we hardcode the direction as y or z in 2D / 3D respectively. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For turbulence, axisymmetry is implemented as an inline function ResidualAxisymmetric.
But there is also the indices source_first_term and source_second_term for source terms. Here is a piece of code from CDriver.cpp below. For the flow solver, it looks like axisymmetry and gravity source terms both use the same index source_first_term and are mutually exclusive.
Does this mean I cannot use axisymmetry and gravity sources at the same time?
Does this mean that implementing axisymmetry in the same way for turbulence as we did for flow (not an inline function), we should place it at the index source_second_term, since we put the regular turbulence source terms at source_first_index?
Is it OK to keep the inline function or better to move to this source_first_term and source_second_term approach?
There is only source_first_term and source_second_term, does this mean that currently we only support max. 2 source terms?
Beta Was this translation helpful? Give feedback.
All reactions