problems grid import

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 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.
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

tom.fisher
Hi,

I'm having the same issue when trying to mesh the spanner1.stl from the example.

I have checked steps 1a-4a, I have:
Version 1.11.1, Build Number 19.11.316
gmsh.exe version 4.3.0

Any suggestions?
Thanks,
Tom



Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

Precise Simulation
Administrator
If everything checks out it should technically work. Could you share which OS/system and Matlab version you are using?

I'm assuming if your try to run the tutorial "File" > "Model Examples And Tutorials..." > "Structural Mechanics" > "Deformation of a Spanner" fails during the grid generation step? And in contrast does the "File" > "Model Examples And Tutorials..." > "Structural Mechanics" > "Stress Analysis of a Thick Plate" work?


tom.fisher wrote
I'm having the same issue when trying to mesh the spanner1.stl from the example.

I have checked steps 1a-4a, I have:
Version 1.11.1, Build Number 19.11.316
gmsh.exe version 4.3.0
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

tom.fisher
Working on Windows 10 Pro; MATLAB version 2019b (v9.7.0)

Both of those fail at the same step. The issue seems to be it is trying to load something from "C:\Users\tom.msh" but the user tom.msh does not exist and I don't know why it's trying to call from this location.

Thanks,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: problems grid import

Precise Simulation
Administrator
In reply to this post by Mike84
Thank you Mike and Tom for the issue reports.

This particular issue seemed to have been due to having dot "." characters in the user path/name which affecting grid and geometry import and export. Special characters and spaces can sometimes have issues with use of external software and tools.

This should be addressed in FEATool Build 19.11.332 available for download from the FEATool Multiphysics GitHub repository.


tom.fisher wrote
Working on Windows 10 Pro; MATLAB version 2019b (v9.7.0)

Both of those fail at the same step. The issue seems to be it is trying to load something from "C:\Users\tom.msh" but the user tom.msh does not exist and I don't know why it's trying to call from this location.