Replies: 2 comments
-
|
I believe that you are correct and it is a bug that the final term is included in the summation of fluxes. I'll create a PR with a fix. One thing to note is that with inlet boundaries, unless the inlet covers the entire boundary, you must define a |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Great! Thank you, Bruce. Let's move to #609 to fix this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am confused about how the species flux is calculated in the do_species_balance feature, and I would be grateful if you could help to provide some explanations.
Take the
IsothermalSoretChannelcase as an example, at each time step:initTemporals()setm_domainRhoYFluxto zero (computeDifferentialDiffusionTerms(AmrOldTime, diffData)include the species diffusion, i.e.m_sdcIter == m_nSDCmax),computeDifferentialDiffusionTerms(AmrNewTime, diffData)include the species diffusion, i.e.computeScalarAdvTerms(advData)includes the species convection flux, i.e.differentialDiffusionUpdate(advData, diffData);includes the species diffusion flux, i.e.calcDivU(is_initialization, computeDiffusionTerm, do_avgDown, AmrNewTime, diffData)will correct the species diffusion again,Finally, the species flux is
$F_{tot} = \rho U_{mac} Y_i + F_{diff}^{final} + 0.5 F_{diff}^{old} - 0.5 F_{diff}^{new} - 0.5 F_{diff}^{post}$
I assumed that the 1st and 2nd terms would be major contributions, and the 3rd and 4th terms would make a correction, but the last term seems somehow overlap with the 4th term.
I plan to consider the diffusion in the inlet boundary condition, and found that the species flux from do_temperols does not match the prescribed species mass flow rate.
Beta Was this translation helpful? Give feedback.
All reactions