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.
Hi all,
I am modelling rainfall with BASEMENT as described in an earlier post:
SOURCE
{
[...]
EXTERNAL_SOURCE
{
type = source_discharge
index = ( 1 3 4 )
file = rainfall_discharge_in_time.txt
}
}
The simulation runs through, but the results do not make sense to me. I get one "cluster" with high velocities/depths where there isn't anything specific according to the topology of the model. The *.2dm and the bed elevation are fine.
The other problem is that a lot of cells don't seem to get any rain at all.
Can you think of something that I could have done wrong?
Thank you,
Joanna
Offline
Hi all,
I found the error.
When exporting the mesh with the "Export mesh" function of the basemesh tool, you have to select the Material ID attribute, so that the created mesh gets the MATID information. This however does not work correctly. Instead of writing the MATID as the material index, the NODE_ID is written to the created mesh. However the rain occurs only where the NODE_ID is 1, 3 or 4 (in my example). Therefore there are elements with a lot of rain and the rest gets none.
I do not know if only I have this problem or wether it is a common bug. Maybe you can have a look.
Thank you,
Joanna
Offline
We are not aware of any problems regarding the mesh export from Qgis BASEmesh. Your "Quality_elements" Shapefile should contain the attributes ELEMENT_ID, NODE1, NODE2, NODE3, NODE4 (-1) and MATID. When exporting the mesh, make sure to select the attribute "MATID" as Material ID field from the dropdown menue.
Stephan
Offline