PreSharpy¶
The PreSharpy solver is the main loader solver of SHARPy. It takes the admin-like settings for the simulation, including the case name, case route and the list of solvers to run and in which order to run them. This order of solvers is referred to, throughout SHARPy, as the
flowsetting.This is a mandatory solver for all simulations at the start so it is never included in the
flowsetting.The settings for this solver are parsed through in the configuration file under the header
SHARPy. I.e, when you are defining the config file for a simulation, the settings for PreSharpy are included as:import configobj filename = '<case_route>/<case_name>.sharpy' config = configobj.ConfigObj() config.filename = filename config['SHARPy'] = {'case': '<your SHARPy case name>', # an example setting # Rest of your settings for the PreSHARPy class }
The following are the settings that the PreSharpy class takes:
Name Type Description Default flowlist(str)List of the desired solvers’ solver_idto run in sequential order.NonecasestrCase name default_case_nameroutestrRoute to case files Nonewrite_screenboolDisplay output on terminal screen. Truewrite_logboolWrite log file Falselog_folderstrLog folder destination directory