[Gmsh] Error issue

Kelvin kelvin882002 at yahoo.com
Fri Oct 19 02:06:56 CEST 2018


Yup. I got the solution. Export and save as Msh format and select V2 ASCII. Openfoam don't read version 4 ASCII from gmsh 4.0.
Thanks.

Sent from my iPhone

> On 19 Oct 2018, at 5:19 AM, Christophe Geuzaine <cgeuzaine at uliege.be> wrote:
> 
> 
> 
>> On 18 Oct 2018, at 08:54, koh kelvin <kelvin882002 at yahoo.com> wrote:
>> 
>> Hi Christophe,
>> 
>> Many Thanks. I've solved the gmsh part as per your advice. However, I tried to import it to OpenFOAM.
>> 
> 
> Does OpenFOAM read Gmsh mesh files?
> 
>> -----from OpenFOAM
>> Starting to read mesh format at line 2
>> Read format version 4  ascii 0
>> 
>> Starting to read physical names at line 5
>> Physical names:8
>>    Surface 1   inlet
>>    Surface 2   outlet
>>    Surface 3   top
>>    Surface 4   bottom
>>    Surface 5   cylinder1
>>    Surface 6   cylinder2
>>    Surface 7   front&back
>> 
>> Skipping tag $Entities at line 16
>> Starting to read points at line 344
>> Vertices to be read:259
>> Vertices read:194
>> 
>> 
>> --> FOAM FATAL IO ERROR:
>> wrong token type - expected word, found on line 0 the label 198
>> 
>> file: IStringStream.sourceFile at line 0.
>> 
>>    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
>>    in file primitives/strings/word/wordIO.C at line 74.
>> 
>> FOAM exiting
>> 
>> ----------------------------------------------------------
>> Anything wrong with my gmsh file?
>> 
>> sorry to trouble you again.
>> On Thursday, 18 October 2018, 1:15:39 PM GMT+8, Christophe Geuzaine <cgeuzaine at uliege.be> wrote:
>> 
>> 
>> 
>> 
>>> On 18 Oct 2018, at 05:02, koh kelvin <kelvin882002 at yahoo.com> wrote:
>>> 
>>> 
>>> Hi,
>>> 
>>> Greatly Thankful. 
>>> Please find the file I have attached. 
>> 
>> There's no error in your file. However as you only define physical surfaces, only quads are saved in the output mesh file. To save the volume elements, add 
>> 
>> Physical Volume("the volume") = {1:22};
>> 
>> Christophe
>> 
>>> Please advise me.
>>> Thanks.
>>> On Thursday, 18 October 2018, 2:34:10 AM GMT+8, Christophe Geuzaine <cgeuzaine at uliege.be> wrote:
>>> 
>>> 
>>> 
>>> 
>>>> On 17 Oct 2018, at 06:10, koh kelvin <kelvin882002 at yahoo.com> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> I have encountered an error. I have done the 3D meshing completed. Everything looks fine. But after save it as .msh file and re-run the 3D mesh, the error appears.
>>>> 
>>>> Error: No tetrahedra in region 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
>>>> 
>>> 
>>> Can you send an example file + the exact commands that you are running?
>>> 
>>> 
>>>> Initially, I was intended to import file to OpenFOAM. Error appear too. So I decided to open the msh file in gmsh to check. 
>>>> 
>>>> I don't understand. the geo file shows no error at all. Save in msh error prone.
>>>> 
>>>> I need your advice to resolve the issue urgently.
>>>> 
>>>> Many Thanks.
>>>> 
>>>> Regards,
>>>> Kelvin Xu
>>> 
>>>> 
>>>> _______________________________________________
>>>> gmsh mailing list
>>>> gmsh at onelab.info
>>>> http://onelab.info/mailman/listinfo/gmsh
>>> 
>>>>>> Prof. Christophe Geuzaine
>>> University of Liege, Electrical Engineering and Computer Science 
>>> http://www.montefiore.ulg.ac.be/~geuzaine
>>> 
>>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>>> 
>>> <untitled2.geo><untitled2.msh>_______________________________________________
>> 
>>> gmsh mailing list
>>> gmsh at onelab.info
>>> http://onelab.info/mailman/listinfo/gmsh
>> 
>>>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science 
>> http://www.montefiore.ulg.ac.be/~geuzaine
>> 
>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
> 
>> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science 
> http://www.montefiore.ulg.ac.be/~geuzaine
> 
> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
> 




More information about the gmsh mailing list