Beispiel #1
0
 def add_user_options(self, group):
     group.add_argument("--alpha",
                        action="store",
                        type=float,
                        dest="alpha",
                        default=None,
                        help="Alpha for the artificial viscosity.")
     group.add_argument("--edac-alpha",
                        action="store",
                        type=float,
                        dest="edac_alpha",
                        default=None,
                        help="Alpha for the EDAC scheme viscosity.")
     add_bool_argument(
         group,
         'clamp-pressure',
         dest='clamp_p',
         help="Clamp pressure on boundaries to be non-negative.",
         default=None)
     add_bool_argument(group,
                       'use-bql',
                       dest='bql',
                       help="Use the Basa-Quinlan-Lastiwka correction.",
                       default=None)
     group.add_argument("--tdamp",
                        action="store",
                        type=float,
                        dest="tdamp",
                        default=None,
                        help="Time for which the accelerations are damped.")
Beispiel #2
0
 def add_user_options(self, group):
     group.add_argument(
         '--alpha', action='store', type=float, dest='alpha',
         default=None,
         help='Artificial viscosity.'
     )
     add_bool_argument(
         group, 'symmetric', dest='symmetric', default=None,
         help='Use symmetric form of pressure gradient.'
     )
Beispiel #3
0
    def add_user_options(self, group):
        group.add_argument("--orientation",
                           action="store",
                           dest="orientation",
                           default="DCM",
                           type=str,
                           help="Orientation of rigid body")

        add_bool_argument(group,
                          'principal_moi',
                          dest='principal_moi',
                          default=False,
                          help='Use principal moment of inertia')
Beispiel #4
0
 def add_user_options(self, group):
     group.add_argument(
         '--pcisph-tol',
         action='store',
         type=float,
         dest='tolerance',
         default=None,
         help='relative error tolerance for convergence as a percentage.')
     add_bool_argument(
         group,
         'pcisph-debug',
         dest='debug',
         default=None,
         help="Produce some debugging output on convergence of iterations.")
     add_bool_argument(
         group,
         'pcisph-itercount',
         dest='show_itercount',
         default=False,
         help="Produce some debugging output on convergence of iterations.")
Beispiel #5
0
 def add_user_options(self, group):
     group.add_argument('--omega',
                        action="store",
                        type=float,
                        dest="omega",
                        default=None,
                        help="Relaxation parameter for Jacobi iterations.")
     group.add_argument(
         '--tolerance',
         action='store',
         type=float,
         dest='tolerance',
         default=None,
         help='Tolerance for convergence of iterations as a fraction')
     add_bool_argument(
         group,
         'iisph-debug',
         dest='debug',
         default=None,
         help="Produce some debugging output on convergence of iterations.")
Beispiel #6
0
 def add_user_options(self, group):
     group.add_argument("--tol",
                        action="store",
                        dest="tolerance",
                        type=float,
                        help="Tolerance for convergence.")
     group.add_argument("--omega",
                        action="store",
                        dest="omega",
                        type=float,
                        help="Omega for convergence.")
     group.add_argument('--alpha',
                        action='store',
                        type=float,
                        dest='alpha',
                        default=None,
                        help='Artificial viscosity.')
     add_bool_argument(group,
                       'gtvf',
                       dest='gtvf',
                       default=None,
                       help='Use GTVF.')
     add_bool_argument(group,
                       'symmetric',
                       dest='symmetric',
                       default=None,
                       help='Use symmetric form of pressure gradient.')
     add_bool_argument(group,
                       'internal',
                       dest='internal_flow',
                       default=None,
                       help='If the simulation is internal or external.')