Skip to content

A uniform spherical distribution of particles with turbulent velocity field

License

Notifications You must be signed in to change notification settings

fgoicovic/turbulent-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbulent-cloud

A spherical distribution of particles with turbulent velocity field.

The code first produces a sphere in a close-packed distribution. Then, it assigns each particle a random velocity such that the cloud has a turbulent velocity field with a given power spectrum. The default power index is npow=-4, which is consistent with the observed velocity distribution of molecular clouds (Larson 1981).

This code is under development.

Author

Felipe G. Goicovic

Usage

The basic usage is

python cloud.py -n NUM

where NUM is the total number of particles desired to represent the spherical cloud. This will produce a binary file called 'ics_cloud.dat' that works as initial conditions for GADGET (format 1).

For a complete description of parameters use

python cloud.py -h

About

A uniform spherical distribution of particles with turbulent velocity field

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages