Can't run first tutorial on Linux because of meshing error

General discussion about Elmer
Numbers
Posts: 1
Joined: 09 Dec 2023, 17:23
Antispam: Yes

Can't run first tutorial on Linux because of meshing error

Post by Numbers »

Hello,

I was eager to start learning Elmer on Linux, but when I try to follow the very first Elmer GUI tutorial called "TemperatureGeneric" I immediately get stuck with an error.

I am supposed to load a "stp"-file and generate a mesh from it, but after I load it and click "Remesh" nothing happens on the main screen, and down on the bottom the following error message shows: "Unable to (re)mesh: no input data or mesh generator .... ". I've seen others in the forum having the same problem, but no solution. (It works fine when I load the "ready-made" project which comes with a mesh pre-generated. Then I can see the mesh and no errors.)

How can I get past this error message and still follow the tutorials? Thanks for any help. I was really hoping to use Elmer but I don't see how I can learn it now.
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Can't run first tutorial on Linux because of meshing error

Post by Rich_B »

Hello,

Which version of Linux are you using?

When you start ElmerGUI, click on Help, About. The About screen will show which options have been compiled into ElmerGUI. For example, this is the About screen from Windows 10 version of ElmerGUI.
about-2.png
about-2.png (42.68 KiB) Viewed 2068 times
This version can open the stp file from the TemperatureGeneric tutorial.

Please post a screen shot of your About screen.

Thanks, Rich.
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

This has not worked on Ubuntu systems in a while.

The work around is to use external meshing tools like gmsh and salome. Both can still read the step files and export meshes to Elmer.
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

No compiled with opencascade message in the ubuntu version
Screenshot from 2023-12-12 05-06-21.png
Screenshot from 2023-12-12 05-06-21.png (54.19 KiB) Viewed 2055 times
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Can't run first tutorial on Linux because of meshing error

Post by Rich_B »

Loading ElmerGUI in the Elmer Virtual Machine that is built on Ubuntu 20 shows the following About screen. Open Cascade has been successfully compiled into ElmerGUI in the provided Elmer binary, at least in Ubuntu 20. Which version of Ubuntu do you run?

Rich.
about-EVM20.png
about-EVM20.png (98.32 KiB) Viewed 2032 times
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

Ubuntu 22.04 LTS (Jammy Jellyfish
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

netgen (ngsolve) did a very nice job on the pump geometry using the default settings, and it exports an Elmer mesh format.
pump.png
(234.67 KiB) Not downloaded yet
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

This does work on the Ubuntu VM, so it is possible to get it to work in Ubuntu. Just have not figured out how.
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Can't run first tutorial on Linux because of meshing error

Post by Rich_B »

Hello,

There is a new version of the Elmer VM, based on Ubuntu 22. I downloaded and installed the VM, and checking the preinstalled binaries, I can confirm ElmerGUI was compiled with Open Cascade.

Is it possible the OP had issues with a launchpad version of the binaries?

Rich.
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Can't run first tutorial on Linux because of meshing error

Post by kevinarden »

If I do a fresh download and try to build with -DWITH_OCC=TRUE i get, if I do -DWITH_OCC=FALSE everything works fine
CMake Error at ElmerGUI/CMakeLists.txt:142 (FIND_PACKAGE):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.

Could not find a package configuration file provided by "VTK" with any of
the following names:

VTKConfig.cmake
vtk-config.cmake

Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
Post Reply