problems grid import

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

problems grid import

Mike84
Hallo,

i have problems when i try to import gridfiles. Command log says

Reading file C:\Users\t.msh
Grid import failed.

What does "C:\Users\t.msh" mean? The file is in an other folder and has another name.
I tried with a lot of different files, but none does work.
I  have the same problem when i import a STL file (which works fine) and try to generate a grid.


kind regards
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

Precise Simulation
Administrator
Quite hard to diagnose remotely from just the error message. Presumably there are some incompatible issues with the your msh or stl files. Maybe start with confirming that you can mesh and import a simple geometry first, such as a unit cube for example.

Mike84 wrote
Hallo,

i have problems when i try to import gridfiles. Command log says

Reading file C:\Users\t.msh
Grid import failed.

What does "C:\Users\t.msh" mean? The file is in an other folder and has another name.
I tried with a lot of different files, but none does work.
I  have the same problem when i import a STL file (which works fine) and try to generate a grid.


kind regards
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

Mike84
i have tried a lot of different inputfiles (including simple cubes) but none worked.
I habe the same Problem when i try the tutorials skripts. When i try to play the heat in a tungsten filiament the sript is in step "Grid Generation, Calling Gmesh" an Error ocours ."Index in position 1 is invalid. Array indices must be positive integers or Logical values". The Grid Generation window stops in "Importing Grid" state. I have already tried with different versions of gmesh, on different computers and also with the MATLAB Toolbox and with the standalone toolbox. Always the same error.
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

Precise Simulation
Administrator
It sounds like you may have ended up with some incompatible or mixed up versions (only certain Gmsh versions are compatible as they change their API quite frequently). Please try and verify the steps below


1a) Uninstall and remove the stand-alone FEATool distribution and the associated Matlab compiler runtime (MCR).

2a) Start FEATool in Matlab, and select "About" from the "Help" menu. If you have the latest version (at the time of writing), it should say "Version 1.11.1, Build 19.10.289".

3a) Execute the command "which('gmsh.exe'))" in Matlab. It is expected to return something like "C:\Users\#Your Username#\Documents\MATLAB\.featool\gmsh.exe".

4a) Execute the command "system([which('gmsh.exe'),' -version'])" in Matlab. This should return "4.3.0". (Only certain Gmsh versions are compatible and supported.)


If any of the steps above are not correct, I would recommend to completely unistall and reinstall FEATool. To do this follow the steps below:


1b) Make sure you have administrative right to your system.

2b) Uninstall and remove the stand-alone FEATool distribution and the associated Matlab compiler runtime (MCR).

3b) Start Matlab and execute the command "userpath()" in Matlab to find your local custom Matlab directory (this typically will be something like "C:\Users\#Your Username#\Documents\MATLAB" on Windows systems).

4b) Select the *APPS* tab, and right-click on the "FEATool Multiphysics" icon and select the "Uninstall" option.

5b) Execute the command "which('gmsh.exe'))" in Matlab. It should not return anything. If does, delete the corresponding Gmsh binary. Repeat this step (6b) until no Gmsh binaries can be found.

6b) Close Matlab.

7b) Delete the folders ".featool" (and also ".cfdtool" if present) from the directory returned in the step (3b) above.

8b) Delete the folders "FEATool Multiphysics" (and also "CFDTool" if present) from the "Add-Ons\Apps" sub-directory returned in the step (3b) above (for example "C:\Users\#Your Username#\Documents\MATLAB\Add-Ons\Apps").

9b) Restart your system and download the latest FEATool distribution from https://github.com/precise-simulation/featool-multiphysics which always contains the most recent version.

10b) Start Matlab and re-install FEATool from the downloaded file.

11b) Start FEATool and let it download Gmsh.

12b) Verify that the steps (1a-4a) now are correct.