A new method to generate dust with astrophysical properties