Пример #1
0
 def add_options(cls, group, dim):
     LBFluidSim.add_options(group, dim)
     LBForcedSim.add_options(group, dim)
     group.add_argument('--G', type=float, default=1.0,
             help='Shan-Chen interaction strength constant')
     group.add_argument('--sc_potential', type=str,
             choices=sym.SHAN_CHEN_POTENTIALS, default='linear',
             help='Shan-Chen pseudopotential function to use')
Пример #2
0
    def add_options(cls, group, dim):
        LBFluidSim.add_options(group, dim)
        LBForcedSim.add_options(group, dim)

        group.add_argument('--horizontal', type=bool, default=False,
                help='simulate a horizontal flow (along the X axis)')
        group.add_argument('--stationary', type=bool, default=False,
                help='start with the correct velocity profile in the whole domain')
        group.add_argument('--drive', type=str, default='force',
                choices=['force', 'pressure'])
        group.add_argument('--wall', type=str, choices=['fullbb', 'halfbb'])
Пример #3
0
    def add_options(cls, group, dim):
        LBFluidSim.add_options(group, dim)
        LBForcedSim.add_options(group, dim)

        group.add_argument('--flow_direction', type=str, default='x',
                choices=['x', 'y', 'z'],
                help='direction along which the fluid is to flow')
        group.add_argument('--stationary', action='store_true', default=False,
                help='start with the correct velocity profile in the whole domain')
        group.add_argument('--drive', type=str, default='force',
                choices=['force', 'pressure'])
Пример #4
0
 def add_options(cls, group, dim):
     LBFluidSim.add_options(group, dim)
     LBForcedSim.add_options(group, dim)
     group.add_argument('--G',
                        type=float,
                        default=1.0,
                        help='Shan-Chen interaction strength constant')
     group.add_argument('--sc_potential',
                        type=str,
                        choices=sym.SHAN_CHEN_POTENTIALS,
                        default='linear',
                        help='Shan-Chen pseudopotential function to use')
Пример #5
0
    def add_options(cls, group, dim):
        LBForcedSim.add_options(group, dim)
        LBBinaryFluidBase.add_options(group, dim)

        group.add_argument('--visc', type=float, default=1.0, help='numerical viscosity')
        group.add_argument('--G11', type=float, default=0.0,
                help='Shan-Chen component 1 self-interaction strength constant')
        group.add_argument('--G12', type=float, default=0.0,
                help='Shan-Chen component 1<->2 interaction strength constant')
        group.add_argument('--G22', type=float, default=0.0,
                help='Shan-Chen component 2 self-interaction strength constant')
        group.add_argument('--sc_potential', type=str,
                choices=sym.SHAN_CHEN_POTENTIALS, default='linear',
                help='Shan-Chen pseudopotential function to use')
Пример #6
0
    def add_options(cls, group, dim):
        LBFluidSim.add_options(group, dim)
        LBForcedSim.add_options(group, dim)

        group.add_argument(
            '--horizontal',
            type=bool,
            default=False,
            help='simulate a horizontal flow (along the X axis)')
        group.add_argument(
            '--stationary',
            type=bool,
            default=False,
            help='start with the correct velocity profile in the whole domain')
        group.add_argument('--drive',
                           type=str,
                           default='force',
                           choices=['force', 'pressure'])
        group.add_argument('--wall', type=str, choices=['fullbb', 'halfbb'])
Пример #7
0
 def add_options(cls, group, dim):
     LBFluidSim.add_options(group, dim)
     LBForcedSim.add_options(group, dim)
Пример #8
0
    def add_options(cls, group, dim):
        LBFluidSim.add_options(group, dim)
        LBForcedSim.add_options(group, dim)

        group.add_argument('--subdomains', type=int, default=1, help='number of blocks to use')
        group.add_argument('--vertical', action='store_true')
Пример #9
0
 def add_options(cls, group, dim):
     LBFluidSim.add_options(group, dim)
     LBForcedSim.add_options(group, dim)
     Vis2DSliceMixIn.add_options(group, dim)
     group.add_argument("--H", type=int, default=40, help="channel half-height")
     group.add_argument("--Re_tau", type=float, default=180.0, help="Re_tau")
Пример #10
0
 def add_options(cls, group, dim):
     LBFluidSim.add_options(group, dim)
     LBForcedSim.add_options(group, dim)
Пример #11
0
    def add_options(cls, group, dim):
        LBFluidSim.add_options(group, dim)
        LBForcedSim.add_options(group, dim)

        group.add_argument('--vertical', action='store_true')