BASEMENTBasic Simulation Environment for computation of environmental flow and natural hazard simulationLaboratory of Hydraulics, Hydrology and Glaciology (VAW)ETH Zurich | ![]() |
You are not logged in.
Pages: 1
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
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
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
Hi
try to specify the absolute path of the mesh in the json file
Cheers
Matteo
Offline
Pages: 1