User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2015-06-21 09:06:49

aseel
User
Registered: 2015-06-07
Posts: 1

error in read 2dm file

hello
when i use a .2dm file to run my basement program i get the following error
Cannot open the grid file 'C:/Users/aseel\largemesh.2dm'

and this is my program
BASEMENT log file:
// Version:  2.5 (cv) R1937
// bmc file: C:/Users/aseel/m1.bmc
// started:  Sun Jun 21 10:29:49 2015
// --------------------------------------------------
/*
-> InputParser: reading input from bmc file 'C:/Users/aseel/m1.bmc'
*/
PROJECT {
    title            = aseel
    author           = anonymous_author
    date             = 2015
    real_time_factor = 5
}
DOMAIN {
    multiregion = musal_region
    PARALLEL {
        number_threads = 1
    }
    PHYSICAL_PROPERTIES {
        gravity   = 9.81
        viscosity = 1e-006
        rho_fluid = 1000
    }
    BASEPLANE_2D {
        region_name = musal_dam
        GEOMETRY {
            type = 2dm
            file = largemesh.2dm
        }
        HYDRAULICS {
            INITIAL {
                type  = index_table
                index = (1 2)
                wse   = (10.0 0.0)
                u     = (0.00 0.00)
                v     = (0.00 0.00)
            }
            FRICTION {
                type                = manning
                default_friction    = 0.0
                input_type          = index_table
                index               = (1 2)
                friction            = (0.0 0.0)
                wall_friction       = off
                grain_size_friction = no
            }
            PARAMETER {
                simulation_scheme           = exp
                riemann_solver              = exact
                minimum_water_depth         = 0.0000000000000001
                riemann_tolerance           = 1.0e-6
                velocity_update_partial     = volume_area
                dynamic_depth_solver        = on
                geo_min_area_ratio          = 0.05
                geo_max_angle_quadrilateral = 45
                geo_min_aspect_ratio        = 0.06
            }
        }
        OUTPUT {
            output_time_step  = 0.5
            console_time_step = 0.5
            restart_time_step = 1E32
            SPECIAL_OUTPUT {
                type             = node_centered
                format           = sms
                values           = (depth wse velocity)
                output_time_step = 0.5
                threshold_wse    = -1000000
            }
            SPECIAL_OUTPUT {
                type                = element_history
                output_time_step    = 0.5
                element_ids         = (21570)
                element_values      = (depth wse)
                flush_all_num_steps = 0
                history_one_file    = no
                threshold_wse       = -1000000
            }
        }
        TIMESTEP {
            CFL                  = 0.95
            total_run_time       = 35.0
            initial_time_step    = 0.001
            minimum_time_step    = 0.001
            maximum_time_step    = 100.0
            start_time           = -1.0
            ignore_wave_celerity = off
            morph_cycle          = off
        }
    }
}

/*
-> Domain: Input file has 3 warnings and 0 errors:
   *WARNING: Block OUTPUT (on line 50 in file 'C:/Users/aseel/medoas.bmc') has
   1 warning:
   No reference time has been chosen. A reference time can be set to show
   results in SMS with their corresponding date. It is not mandatory to set a
   reference time.
   *WARNING: Block HYDRAULICS (on line 28 in file 'C:/Users/aseel/medoas.bmc')
   has 1 warning:
   No BOUNDARY block has been defined for HYDRAULICS. Undefined boundaries are
   automatically treated as 'wall'.
   *WARNING: Block PROJECT (on line 6 in file 'C:/Users/aseel/medoas.bmc') has
   1 warning:
    !!! Attention !!!:
    if the real_time_factor is set, the simulation can extremely be slowed
   down!
   Be sure that you know what you are doing...
   
-> *** Start Simulation ***
-> OpenMP: Computation is executed sequentially
-> Domain: enabling real time factor of 5
-> Domain Initialized
-> initialize domain done
-> initialize networkcommunication done
-> BASEplane: Initialization of SubDomain 'musal_dam


*******************************************************************************
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Error !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*******************************************************************************
-> Cannot open the grid file 'C:/Users/aseel\largemesh.2dm'.
-> Domain: Simulation stopped due to errors

*/





regards

Offline

#2 2015-06-29 09:26:26

Matteo Facchini
Developer
From: Trento
Registered: 2014-09-05
Posts: 281

Re: error in read 2dm file

Hi aseel,


I would suggest you to first fix the warnings you get:

1) set a reference time in the special output block
2) set the boundaries in the hydraulics block (that is very important; if you do not do that you have two 'hydraulic walls' at the boundary)
3) do not set the real_time_factor to speed up your simulation! You need to define the real_time_factor = 1 only if you want to run the simulation in real time, otherwise the time step is calculated with the cfl parameter.

Another thing you could check is if the mesh file is in the same directory as the .bmc file.

Bests,


Matteo

Offline

Board footer

Powered by FluxBB