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 2025-09-16 10:16:09

Giampietro
User
Registered: 2021-06-25
Posts: 12

BaseMESH - export nodeID

Hi everyone,

in older versions of BASEMENT (2.x), there was a tool in BASEmesh that, from a line shapefile overlaid on the computational mesh, returned the mesh's nodeID to a text file, thus implementing boundary conditions in the model. In BASEMENT version 4.1 - MD module - needs to be implemented in the same way. Is there a specific tool for this purpose in the current BASEmesh version?
I think it is not described in the preprocessing part of the manual.

Regards,
Giampietro

Last edited by Giampietro (2025-09-16 10:17:42)

Offline

#2 2025-09-17 13:31:17

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

Re: BaseMESH - export nodeID

Hi Giampietro,

This is possible by selecting the option "Write to sidecar file (BASEMENT 2.8)" when generating the quality mesh.

FluxBB bbcode test

Notice: Starting with the next release (version>4.1), specifying node IDs in the model.json will no longer be required for BASEMD simulations, as nodestrings will be read directly from the mesh file, consistent with the current behavior of BASEHPC simulations.

Best regards,
Matthias

Offline

#3 2025-09-17 22:00:05

Giampietro
User
Registered: 2021-06-25
Posts: 12

Re: BaseMESH - export nodeID

Thank you very much Matthias,

I have another question: how do I display the number of nodes (example on page 86 of the file: BMdoc_Tutorials_v4-1-0)? Please, what is the procedure? I can't find it in the tutorial.

Thank you very much.

Giampietro

Offline

#4 2025-09-18 08:00:44

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

Re: BaseMESH - export nodeID

One way to display node IDs in QGIS is:
1. Import the Mesh Layer
2. "Export mesh vertices" from the "Mesh" Processing Toolbox
3. Open attribute table of vertices vector layer and select id (see screenshot below)
4. Add the ID as a "single label" in the "Label" properties of the layer

add id field via field calculator

Offline

Board footer

Powered by FluxBB