MFlowCode / MFC

Exascale simulation of multiphase/physics fluid dynamics
https://mflowcode.github.io
MIT License
139 stars 63 forks source link

Riemann solver enthalpy calculation refactor #612

Open wilfonba opened 1 week ago

wilfonba commented 1 week ago

Once #515 is merged, a new helper function s_compute_enthalpy can be used to reduce the number of lines in m_riemann_solvers by abstracting the enthalpy calculation at the left and right states.

sbryngelson commented 1 week ago

This can presumably also be used anywhere H is computed, which is in several other places (@okBrian this is useful for you as well)

It's also in post-process here (sort of): https://github.com/MFlowCode/MFC/blob/2651071efb76d157aa552da1e7fafdc9b4d19fee/src/post_process/m_start_up.f90#L451-L452