[Gmsh] Gmsh to Paraview

Serban.Georgescu at uk.fujitsu.com Serban.Georgescu at uk.fujitsu.com
Tue Nov 29 10:25:38 CET 2011


Hi Yosuke,

Glad to know you solved the problem.
The 0/1 issue was high on my list of possible issues, I think I bumped into that as well.

Cheers,
Serban

-----Original Message-----
From: Yousuke Ootsuki [mailto:yosuke_otsuki at jaist.ac.jp] 
Sent: Tuesday, November 29, 2011 1:07 AM
To: Serban Georgescu
Subject: RE: [Gmsh] Gmsh to Paraview

Hi Serban

Thanks for reply. 

I have already solved the issues myself. I thought there were element definition differences between Gmsh and Paraview, but the problem was a trivial.
I just forgot to start connectivity table from '0' for Paraview, a you know, Gmsh file start it from '1'. That's why whole vertex coordinate was shifted and created strange geometry.

On 11/11/29, Serban.Georgescu at uk.fujitsu.com wrote:

> Hi Yosuke,
> 
>  
> 
> A while ago I have written a code to convert some other file format, similar to gmsh, to Unstructured VTK (VTU) format. 
> 
> What you are trying to do seems very similar, and I did not have any problem with the converter.
> 
>  
> 
> What exactly does not work? 
> 
> Does the converter crash? Does paraview crash when opening the file? Do you get the wrong shape in Paraview?
> 
> If your problem is one of the last two, you could do a very simple shape (e.g., one tetrahedral), generate a VTU file in ASCII format and look at it in notepad. 
> 
>  
> 
> Cheers,
> 
> Serban
> 
>  
> 
> 
> From: gmsh-bounces at ace20.montefiore.ulg.ac.be [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] On Behalf Of Yousuke Ootsuki
> Sent: Tuesday, November 22, 2011 7:54 AM
> To: gmsh at geuz.org
> Subject: [Gmsh] Gmsh to Paraview
> 
>  
> 
> Dear All
> 
> I am trying to write visialisation code of gmsh file in Paraview. I thought to create the geometry in Paraview just copying connectivity and coordinate from gmsh file. Obviously, need to add cell type and offset values for Paraview. However, it did not work.
> 
> The element type I am interested is tet4. The code automatically detect volume element section and read connectivities. Points, lines and surface connectivities are ignored. All Coordinate positions are scanned too.
> 
> I tested my code by hand specified coordinate and connectivity and it worked without any issue. 
> 
> I am not familiar with mesh algorithms can anyone give me what could be the reason ?
> 
> Best Regards 
> 
> -- 
> Yosuke Otsuki, ME
> School of Information Science
> Japan Advanced Institute of Science and Technology
> 
> 1-1 Asahidai,
> Nomi, Ishikawa,
> Japan 923-1292
> 
> 
> 
> 
> ______________________________________________________________________
>                                         
>  Fujitsu Laboratories of Europe Limited
>  Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE
>  Registered No. 4153469
>  
>  This e-mail and any attachments are for the sole use of addressee(s) and
>  may contain information which is privileged and confidential. Unauthorised
>  use or copying for disclosure is strictly prohibited. The fact that this
>  e-mail has been scanned by Trendmicro Interscan does not guarantee that 
>  it has not been intercepted or amended nor that it is virus-free.
> 
> 
-- 
Yosuke Otsuki, ME
School of Information Science
Japan Advanced Institute of Science and Technology

1-1 Asahidai,
Nomi, Ishikawa,
Japan 923-1292
______________________________________________________________________
                                        
 Fujitsu Laboratories of Europe Limited
 Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE
 Registered No. 4153469
 
 This e-mail and any attachments are for the sole use of addressee(s) and
 may contain information which is privileged and confidential. Unauthorised
 use or copying for disclosure is strictly prohibited. The fact that this
 e-mail has been scanned by Trendmicro Interscan does not guarantee that 
 it has not been intercepted or amended nor that it is virus-free.