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 2019-07-04 10:49:19

qtheiler
User
Registered: 2015-07-30
Posts: 60

Error xdmf

Hi,

I'm currently working on Basement 3.0. I have done my simulation (only hydraulics) and export my results in xdmf file (depth and wse). In paraview, I've seen the results which is great. The problem is that you can not export them as for example coordinate with depth.

I've install QGIS 3.8 with the crayfish plugin. It's written that it works with this file. Aftter writing to Lutra, they have said that the error as it appears with my XMDF file is not a compatible mesh (https://github.com/lutraconsulting/MDAL/issues/135).

Do you know why? It's great to use Basement 3.0 but if we can not export our results it's annoying. Is there a possibility to export the data in a dat file for example at each node? Or working with the data (txt file / .dat file) with a Matlab code or a python code?

Cheers,

Quentin

Offline

#2 2019-07-04 11:05:36

Stephan Kammerer
Developer
Registered: 2015-03-31
Posts: 67

Re: Error xdmf

Does this problem also occur in QGIS version 3.6? Lutra consulting have added support for BASMENT xdmf output format and I tested the functionality for QGIS 3.6. There everything worked as intended.

Last edited by Stephan Kammerer (2019-07-04 11:05:54)

Offline

#3 2019-07-04 15:05:56

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Error xdmf

Yes I have exactly the same problem. I will send your per e-mail the file to have your idea.

Cheers,

Offline

#4 2019-07-09 11:01:12

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Error xdmf

SOLUTION:
With help of Stephan the solution is:
So, if you copy files to different location, the reference from the xdmf to the h5-file fails. We fixed this for the major release of version 3. As intermediate solution, you can put h5, 2dm and xdmf into the same folder and delete the absolute path from the xdmf file. So search/replace the expression “/home/sdis/Documents/basement/simulation/Lotrey/HydroScenD/results.h5” by simply “results.h5”, then everything works fine.

You can load it on it's working.

BUT:
You can use the mesh calculor. On the website of Crayfish, it's writtent that we can use the mesh calculator (to export the max value). I have try the max_aggr with my depth over time. Unfortunately, the datasets type is not supported with the mesh calculator (the mesh calculator see my water_depth but don't allow my expression). Have the developer any idea?

Cheers,

Quentin

Offline

#5 2019-07-09 13:05:33

Stephan Kammerer
Developer
Registered: 2015-03-31
Posts: 67

Re: Error xdmf

Regarding the mesh calculator: At the moment, the mesh calculator only supports node centred datasets. The results of BASMENT version v3.x are element centred. It is planned to have support for element centred output in future, but its an ongoing development together with the GGIS developers of Lutra consulting. You can keep track of the latest developments on Git Hub

Last edited by Stephan Kammerer (2019-07-09 13:06:13)

Offline

#6 2019-09-04 17:14:58

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Error xdmf

Hi,
Do you know how it is going with the developement of the mesh calculator? I ask this question because it's not possible to use the results without this feature.

Cheers,

Offline

#7 2020-04-02 18:14:35

Matteo Facchini
Developer
From: Trento
Registered: 2014-09-05
Posts: 281

Re: Error xdmf

Hi guys,

I am still facing this problem: with basement 3.0.2 generated output files I have to remove the absolut path from the xdmf file to make it work.

Plus, but maybe it is just me, but I find it somehow hard to understand how to upload the results to QGIS. it took me a while smile

Cheers,
Matteo

PS: while I am writing I am updating QGIS to the latest LTS 3.10.4, I was using 3.10.2 before. It seems like some other people is facing the same issue: https://github.com/lutraconsulting/MDAL/issues/226

Offline

#8 2020-04-03 06:55:35

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Error xdmf

Yes I'v ask to add the issue and it's solved.

Cheers,

Quentin

Offline

#9 2020-06-15 10:25:07

Matteo Facchini
Developer
From: Trento
Registered: 2014-09-05
Posts: 281

Re: Error xdmf

qtheiler wrote:

Hi,
Do you know how it is going with the developement of the mesh calculator? I ask this question because it's not possible to use the results without this feature.

Cheers,

Hi Quentin and Stephan,

do you have any news about the mesh calculator? Is it working now?

[EDIT] The solution is: update to QGIS 3.12 and use the built-in mesh calculator.

Last edited by Matteo Facchini (2020-06-15 11:37:36)

Offline

#10 2020-06-15 16:13:56

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Error xdmf

Hi,

That's right, it works partially with Qgis 3.12. There is however still a problem: when you calculate tha maximum value (for example), it creates a new group name. But it doesn't create a .dat file. That's mean that when you close your project and reopen it, your data you have calculated (with mesh calculator) will disappear. At this moment, there isn't any solution.

Cheers,

Last edited by qtheiler (2020-06-15 16:14:38)

Offline

Board footer

Powered by FluxBB