Skip to content

NaN generation while trying to implement a moving wall BC #959

Answered by baperry2
spaceman-spence asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@spaceman-spence
Comment options

@spaceman-spence
Comment options

@RSuryaNarayan
Comment options

Answer selected by spaceman-spence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants