示例#1
0
                      help="the number of threads to use")
    parser.add_option("--db_path",
                      type="string",
                      dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name",
                      type="string",
                      dest="sim_name",
                      default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file",
                      type="string",
                      dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles",
                      type="float",
                      dest="num_particles",
                      default=1e3,
                      help="the number of particles to run")
    options, args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runForwardSimulation(options.sim_name, options.db_path,
                         "../../cont_soil.h5m", options.num_particles,
                         MonteCarlo.WH_INCOHERENT_MODEL, options.threads, True,
                         False, options.log_file, False)
示例#2
0
                      help="the number of threads to use")
    parser.add_option("--db_path",
                      type="string",
                      dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name",
                      type="string",
                      dest="sim_name",
                      default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file",
                      type="string",
                      dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles",
                      type="float",
                      dest="num_particles",
                      default=1e3,
                      help="the number of particles to run")
    options, args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runForwardSimulation(options.sim_name, options.db_path,
                         "../../cont_soil.h5m", options.num_particles,
                         MonteCarlo.FULL_PROFILE_DB_IMPULSE_INCOHERENT_MODEL,
                         options.threads, True, True, options.log_file)
示例#3
0
    parser.add_option("--db_path",
                      type="string",
                      dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name",
                      type="string",
                      dest="sim_name",
                      default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file",
                      type="string",
                      dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles",
                      type="float",
                      dest="num_particles",
                      default=1e3,
                      help="the number of particles to run")
    options, args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runForwardSimulation(
        options.sim_name, options.db_path, "../../cont_soil.h5m",
        options.num_particles,
        MonteCarlo.DECOUPLED_HALF_PROFILE_DB_HYBRID_INCOHERENT_MODEL,
        options.threads, True, False, options.log_file, False)