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.
Hello,
I am wondering if it is possible to measure the discharge water of a section with QGis. I tried it with Crayfisch and Profiletool and doesn't find a solution.
Regards.
Offline
Hi BHW,
This can be done in BASEMENT - but not in Postprocessing using QGIS/Crayfish.
Before starting your simulation, you have to define nodestrings - called 'stringdefs' - in the command file and activate 'stringdef_history' as output.
There are several output options for stringdef_history, for example the water discharge, the sediment discharge mean velocity or mean water surface elevation.
Would this work for you?
Offline
OK,
I wanted to try to show the evolution of the water discharge during the animation generate by Crayfisch but I will find an other solution.
Thanks for the answer.
Offline
"Before starting your simulation, you have to define nodestrings - called 'stringdefs' - in the command file and activate 'stringdef_history' as output.
There are several output options for stringdef_history, for example the water discharge, the sediment discharge mean velocity or mean water surface elevation."
Do we need to first define the nodes for the cross-section as defined as for inflow and outflow and define in special output to get the discharge at a cross-section? I saw stringdef and stringdef_values on special output options.
Offline
yes, you have to define a stringdef to get the stringdef_history results.
Offline
Hi, I join the conversation.
In BASEMENT 4.x in the HPC module, should I add "ns_hyd_discharge" as output in order to extract discharge values for a specific stringdef?
Also, if I only need discharge information, does that mean I don’t have to define the stringdef in the "setup" section? Thanks!
In addition the discharge values are in m3/s?
Giampietro
Offline
Hi Giampietro
Yes, in BASEMENT 4.x you have to add "ns_hyd_discharge" in your simulation.json for a hydraulic output of all stringdefs. Note that stringdefs are actually defined in the mesh (at the end of the .2dm file), for example:
NS 23 45 55 76 -100 ns_name
This strindef can (but don't have to) be used in the setup (model.json). Therefore, if you want to use the stringdef (e.g. for boundary condition) or get output on the stringdef, you have to add the stringdef in the setup section ("STRINGDEF").
Yes, the discharge unit is in m3/s.
Hope this helps!
Br, Lukas
Offline
Thank you Lukas,
I forgot to ask. We can extract the value only via the code: "BMv41NodestringResults.py" ? For the version 4.1.0?
Thank you agan!
Offline
We can extract the value only via the code: "BMv41NodestringResults.py" ? For the version 4.1.0?.
Maybe that's the most convenient way to extract the values. Alternatively, you could open (software depends on your OS) or read (with any programming language) the "results.h5" file by yourself. In the "BMv41NodestringResults.py" file you can see the relevant path ('/RESULTS/NodeStrg/StateVar/').
Hope this helps!
Br, Lukas
Offline