NaN generation while trying to implement a moving wall BC #959
Answered
by
baperry2
spaceman-spence
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
baperry2
Jun 16, 2025
Replies: 1 comment 3 replies
-
How are you specifying the full state in the ghost cells? Are you modifying the total energy of the ghost cell ( |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
spaceman-spence
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How are you specifying the full state in the ghost cells? Are you modifying the total energy of the ghost cell (
s_ext[UEDEN]
) appropriately to account for the changed kinetic energy due to the way you are changing velocity? If not, the temperature and pressure in ghost cells will take on bad values which would explain what you are seeing. This complexity is one reason we just compute the domain boundary fluxes for isothermal walls completely independently of the bcnormal function.