iwfm.iwfm_sub_sim¶
- iwfm.iwfm_sub_sim(in_sim_file, elem_pairs_file, out_base_name, verbose=False, debug=False)[source]¶
Read in a list of element pairs for a submodel.
Use existing model Elements, Nodes, Stream specification and stratigraphy files to produce new preprocessor files for the submodel and a list of model node pairs
- Parameters:
in_sim_file (str) – name of existing simulation main input file
elem_pairs_file (str) – name of file listing elements of existing nmodel and submodel
out_base_name (str) – root of submodel output file names
verbose (bool, default=False) – turn command-line output on or off
debug (bool, default=False) – turn debugging output on or off
- Return type:
nothing
Notes
Run
iwfm.iwfm_sub_preproc()first — it writes the<out_base_name>_*.binpickle files this function reads (elements, nodes, element nodes, node coordinates, stream nodes, submodel stream nodes). A FileNotFoundError naming the missing pickles is raised otherwise.