parser = PyTelToolsArgParse(description=__doc__, add_args=['in_slf', 'out_slf', 'shift']) help_friction_laws = ', '.join( ['%i=%s' % (i, law) for i, law in enumerate(FRICTION_LAWS)]) parser.add_argument('--friction_law', type=int, help='friction law identifier: %s' % help_friction_laws, choices=range(len(FRICTION_LAWS)), default=STRICKLER_ID) parser.add_argument('--Cmud', help='mud concentration (liquid) [kg/m³]', type=float, default=1200) group_deposition = parser.add_argument_group( 'Deposition', 'Parameters of Krone deposition law') group_deposition.add_argument('--Tcd', help='critical Shear Stress for Deposition [Pa]', type=float, default=0.0) group_deposition.add_argument('--ws', help='settling velocity [m/s]', type=float) group_deposition.add_argument( '--C', help='concentration (for deposition law) [kg/m³]', type=float) group_erosion = parser.add_argument_group( 'Erosion', 'Parameters of Partheniades erosion law') group_erosion.add_argument('--Tce', help='critical Shear Stress for Erosion [Pa]', type=float, default=0.0)
us_equation=us_equation, ori_values={}) resout.write_entire_frame(output_header, time, values) parser = PyTelToolsArgParse(description=__doc__, add_args=['in_slf', 'out_slf', 'shift']) parser.add_argument('--set_mesh_origin', type=float, nargs=2, help='Mesh origin coordinates (x, y)', metavar=('X', 'Y')) group_var = parser.add_argument_group( 'Serafin variables (optional)', 'See variables abbrevations on https://github.com/CNR-Engineering/PyTelTools/wiki/Notations-of-variables' ) group_var.add_argument('--var2del', nargs='+', help='variable(s) to delete', default=[], metavar=('VA', 'VB')) group_var.add_argument('--var2add', nargs='+', help='variable(s) to add', default=[], metavar=('VA', 'VB')) help_friction_laws = ', '.join( ['%i=%s' % (i, law) for i, law in enumerate(FRICTION_LAWS)]) group_var.add_argument('--friction_law', type=int,