|
pyCloudy
0.8.33
manage Cloudy photoionization code
|
Classes | |
| class | CloudyModel |
| class | CloudyInput |
Functions | |
| def | load_models |
| def | print_make_file |
| def | run_cloudy |
| Function used to run Cloudy on input files. | |
| def pyCloudy::c1d::cloudy_model::load_models | ( | model_name = None, |
|
mod_list = None, |
|||
n_sample = None, |
|||
verbose = False, |
|||
| kwargs | |||
| ) |
Return a list of CloudyModel correspondig to a generic name
Parameters:
- model_name: generic name. The method is looking for any "model_name*.out" file.
- mod_list: in case model_name=None, this is the list of model names (something.out or something)
- n_sample: randomly select n_sample from the model list
- verbose: print out the name of the models read
- **kwargs: arguments passed to CloudyModel
| def pyCloudy::c1d::cloudy_model::print_make_file | ( | dir_ = None | ) |
Create a Makefile in the dir_ directory, using pc.config.cloudy_exe as executable for cloudy
| def pyCloudy::c1d::cloudy_model::run_cloudy | ( | dir_ = None, |
|
n_proc = 1, |
|||
use_make = True, |
|||
model_name = None |
|||
| ) |
Function used to run Cloudy on input files.
Run a (set of ) cloudy model(s)
Parameters:
- dir_: Directory where the model input files are
- n_proc: number of CPUs to run (default=1)
- use_make: if True (default), make is used. Otherwise Cloudy is run on one single model,
assuming that model_name.in exists
- model_name: if not None, used by: make name="model_name" or cloudy < model_name.in
if None and use_make, make will run any pending model