Numerical physics and astrophysical medium modeling