# Sim Script

Running PoPy on a Sim Script generates dense time point simulations of PK/PD curves given a PopPK/PD model and an input data set.

## Main Sections of a Sim Script

- METHOD_OPTIONS
- PARALLEL
- DESCRIPTION
- FILE_PATHS
- DATA_FIELDS
- PREPROCESS
- STATES
- DERIVATIVES
- PREDICTIONS
- POSTPROCESS
- ODE_SOLVER
- OUTPUT_OPTIONS
- OUTPUT_SCRIPTS

## Full Structure of a Sim Script

- METHOD_OPTIONS
  - py_module
  - rand_seed
  - float_format
- PARALLEL
  - SINGLE
  - MPI_WORKERS
    - n_workers
- DESCRIPTION
  - name
  - title
  - author
  - abstract
  - keywords
- FILE_PATHS
  - input_data_file
  - extra_data_file
  - output_folder
  - temp_folder
  - log_folder
  - output_file_ext
  - solutions
- DATA_FIELDS
  - type_field
  - id_field
  - time_field
- PREPROCESS
- STATES
- DERIVATIVES
- PREDICTIONS
- POSTPROCESS
- ODE_SOLVER
  - NO_SOLVER
  - ANALYTIC
  - SCIPY_ODEINT
    - atol
    - rtol
    - max_nsteps
    - use_sens
- OUTPUT_OPTIONS
  - sim_time_step
- OUTPUT_SCRIPTS
  - GRPH
    - output_mode
    - grph_list
    - x_var
    - x_axis_label
    - y_var_list
    - y_var_src_list
    - y_var_label_list
    - split_field
    - split_values
    - share_axes