pywfm.IWFMModel.get_n_lakes#
- IWFMModel.get_n_lakes()#
Return the number of lakes in an IWFM model
- Returns:
number of lakes in the IWFM model
- Return type:
int
See also
IWFMModel.get_lake_ids
Return an array of lake IDs in an IWFM model
IWFMModel.get_n_elements_in_lake
Return the number of finite element grid cells that make up a lake
IWFMModel.get_elements_in_lake
Return the element ids with the specified lake ID
Example
>>> from pywfm import IWFMModel >>> pp_file = '../Preprocessor/PreProcessor_MAIN.IN' >>> sim_file = 'Simulation_MAIN.IN' >>> model = IWFMModel(pp_file, sim_file) >>> model.get_n_lakes() 1 >>> model.kill() >>> model.close_log_file()