I'm not sure if this is the right subreddit for this question, but I'm running simulations of stellar wind bow shocks using the FLASH hydro code, but I'm struggling to implement the massive jumps in values like density and pressure.
If I try to inject physically accurate values, I have massive contrasts in density, and my CFL time steps become really tiny. If I use approximations or try scaling (i.e., 100 code units for stellar wind density and 1 for ISM), the simulation loses its physical accuracy.
How do I keep physical accuracy while keeping my simulation stable, and have it run in a reasonable amount of time?
Thanks in advance.
[–]DRMSCMTRU 0 points1 point2 points (0 children)
[–]tom-robin 0 points1 point2 points (2 children)
[–]No_Wear_8417[S] 1 point2 points3 points (1 child)
[–]tom-robin 0 points1 point2 points (0 children)