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.
Goodmorning, i tried to convert a mesh .2dm for the new version of Basement (V 3); could you explain how i can insert the Stringdef inside the .2dm because if i set -7 "Strindef_name" (where Stringdef name is the name of the string) i recieve an error; if i set simply "Stringdef_name" all works but it seems i have no input into the domain.
I recieve also thie warnings:
-> WARNING: Content <CellsAll/HydState> has dependency relicts:
-> WARNING: <matid_region_names>
-> WARNING: <matid_region_names>
-> writing the kernel execution information...
Thanks
Francesco
Offline
Hi Francesco
The Stringdefs should be inserted at the very end of the .2dm file as in the example below. The "NS" indicates the NodeString, followed by the node IDs composing the Nodestring. The last ID is indicated by the minus sign (e.g. -1). At last follows the name of the Nodestring.
ND 1231 35.625000 10.000000 2.821875
ND 1232 38.870658 -2.536187 0.934292
NS 8 1206 1212 1185 1211 1125 1147 1129 1142 -1 inflow_boundary
NS 4 456 412 414 373 397 382 401 -5 outflow_boundary
The warnings that you see can be ignored.
I hope this solves your problem.
Best regards
Matthias
Last edited by Matthias Bürgler (2019-04-04 09:28:00)
Offline
Thanks for your reply, this is basically my .2dm:
Header:
MESH2D #created automatically via BASEmesh-Plugin for QGIS
NUM_MATERIALS_PER_ELEM 1
E3T 1 69452 69453 87487 1
Last Lines:
ND 149057 2350962.927836 5128578.395573 384.720001
NS 19441 19444 120 119 28686 19433 24780 15382 24781 15399 118 117 5019 116 115 5020 -5017 Chiusura
NS 20770 11726 64007 53209 1715 34856 6512 25586 7 8 -3347 Meduna
NS 60 -61 Chiarichia
NS 30598 2348 41842 14509 24230 -1735 Tarceno
The geometry on Paraviwe is correct and the simulation run but with no inflow even if declared in the .json file (see below)
{
"SETUP": {
"DOMAIN": {
"BASEPLANE_2D": {
"GEOMETRY": {
"INTERPOLATION": {
"method": "weighted",
"regions": [
{
"method": "weighted",
"region_name": "Fiume"
}
]
},
"REGIONDEF": [
{
"index": [
1
],
"name": "Fiume"
}
],
"STRINGDEF": [
{
"name": "Chiusura",
"upstream_direction": "right"
},
{
"name": "Meduna",
"upstream_direction": "right"
},
{
"name": "Chiarichia",
"upstream_direction": "right"
},
{
"name": "Tarceno",
"upstream_direction": "right"
}
],
"mesh_file": "/home/francesco/Desktop/Test/TramontiCorr.2dm"
},
"HYDRAULICS": {
"BOUNDARY": {
"STANDARD": [
{
"name": "Qout",
"slope": 8.0,
"string_name": "Chiusura",
"type": "uniform_out"
},
{
"discharge_file": "/home/francesco/Desktop/Test/Meduna.txt",
"name": "QinMeduna",
"slope": 0.5,
"string_name": "Meduna",
"type": "uniform_in"
},
{
"discharge_file": "/home/francesco/Desktop/Test/Tarceno.txt",
"name": "QinTarceno",
"slope": 0.5,
"string_name": "Tarceno",
"type": "uniform_in"
},
{
"discharge_file": "/home/francesco/Desktop/Test/Chiarichia.txt",
"name": "QinChiarichia",
"slope": 0.5,
"string_name": "Chiarichia",
"type": "uniform_in"
}
]
},
"FRICTION": {
"default_friction": 23.0,
"regions": [
{
"friction": 21.0,
"region_name": "Fiume"
}
],
"type": "strickler"
},
"INITIAL": {
"type": "dry"
},
"PARAMETER": {
"CFL": 0.9,
"fluid_density": 1000.0,
"max_time_step": 100.0,
"minimum_water_depth": 0.01,
"safe_mode": "on"
}
}
},
"PHYSICAL_PROPERTIES": {
"gravity": 9.81
}
},
Results:
no water flow
Water_Depth float [0.0] [0.0]
So i think i miss something but i don't know how, could you help please?
Thanks
Last edited by Franzaffa (2019-04-04 10:22:46)
Offline
Hi Francesco
The definition of your nodestrings looks ok.
Is it possible that the "upstream_direction" of your Stringdefs should be "left" instead of "right"? I would try "left" to see if you get inflow into your domain.
Also please note that in BMv3pre, the slope specification at boundaries is in dimensionless units, i.e. in [m/m]. Therefore, a slope of 2% should be specified by a value of 0.02.
Best regards
Matthias
Offline