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 2021-02-11 10:49:40

Raphael
User
From: Reinach (BL)
Registered: 2020-12-21
Posts: 5

batch mode - mesh file not valid

I tried to run in batch mode.

The first step, running BMv3_BASEplane_setup.exe leads to the following error:

mesh file <MeshFile.2dm> not valid., in file: N:\src\BASEplane\setup\processing\MeshBP.cpp on line 170, version v3.1.0

This is strange because it works using the gui. Is there another setup backend?

Offline

#2 2021-02-22 08:27:28

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 150

Re: batch mode - mesh file not valid

Hi Raphael

I suppose it could be a problem with the path that you specified in the model.json and the working directory from which you start the simulation. Maybe you can post the GEOMETRY block of the model.json and describe how you run the simulation?

Regards
Matthias

Offline

#3 2021-03-08 09:53:22

Raphael
User
From: Reinach (BL)
Registered: 2020-12-21
Posts: 5

Re: batch mode - mesh file not valid

Hi Matthias

Batch mode works for the commands BMv3_BASEplane_cudaC.exe and BMv3_BASEPLANE_results.exe:

C:\"Program Files\BASEMENT 3.0.2"\bin\BMv3_BASEplane_cudaC.exe -f %Pfad%\simulation.json -r %Pfad%\setup.h5 -o %Pfad%\results.h5 -p
C:\"Program Files\BASEMENT 3.0.2"\bin\BMv3_BASEplane_results.exe -f %Pfad%\results.json -r %Pfad%\results.h5 -o %Pfad%\mySim_output
python3 %Pfad%\BMv3NodestringResults.py

The first step BMv3BASEplane_setup. exe is giving the mentioned error.

My GEOMETRY block is the following:

"GEOMETRY": {
          "INTERPOLATION": {
            "method": "weighted"
          },
          "REGIONDEF": [
            {
              "index": [
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37
              ],
              "name": "Gerinne"
            },
            {
              "index": [
                0
              ],
              "name": "nicht_Gerinne"
            }
          ],
          "STRINGDEF": [
            {
              "name": "inflow_chise_zaeziwil",
              "upstream_direction": "left"
            },
            {
              "name": "inflow_bach_dorneremoos",
              "upstream_direction": "left"
            },
            {
              "name": "inflow_zaezibach_zaeziwil",
              "upstream_direction": "left"
            },
            {
              "name": "inflow_muehlebach_mirchel",
              "upstream_direction": "left"
            },
            {
              "name": "inflow_baerbach_zaeziwil",
              "upstream_direction": "left"
            },
            {
              "name": "link_to_muehlebach",
              "upstream_direction": "left"
            },
            {
              "name": "link_from_muehlebach",
              "upstream_direction": "left"
            },
            {
              "name": "QP_Unterhalb_Zaezi-und_Baerbach",
              "upstream_direction": "left"
            },
            {
              "name": "QP",
              "upstream_direction": "left"
            },
            {
              "name": "outflow_1/4",
              "upstream_direction": "left"
            },
            {
              "name": "outflow_2/4",
              "upstream_direction": "left"
            },
            {
              "name": "outflow_3/4",
              "upstream_direction": "left"
            },
            {
              "name": "outflow_4/4",
              "upstream_direction": "left"
            }
          ],
          "mesh_file": "Chise_71_cmesh_reduziert.2dm"
        },

Regards Raphael

Offline

#4 2021-03-08 10:15:38

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

Re: batch mode - mesh file not valid

Hi
try to specify the absolute path of the mesh in the json file
Cheers
Matteo

Offline

Board footer

Powered by FluxBB