danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
94 stars 223 forks source link

(#463) bug fixes with particle mass setting in asteroidwind #478

Closed danieljprice closed 9 months ago

danieljprice commented 9 months ago

Type of PR: Bug fix

Description: Fix assignment of particle mass in the asteroid wind setup from Trevascus et al. (2021). The particle mass must be set during the setup procedure based on the mean mass injection rate and the desired tmax and number of particles at max.

Fixes #463

Testing:

~/phantom/scripts/writemake.sh asteroidwind > Makefile
./phantomsetup wind
./phantom wind

Did you run the bots? no

Did you update relevant documentation in the docs directory? no