Hi,

gmsh supports several formats for data import. Among those VTK, but due
to the fact that fipy does not calculate values for some cells and faces
(unsupported cell-shape, e.g. hexagon??) gmsh aborts with error messages
when I try to import the data. Mayavi reads the data without complaint
and leaves the "empty" cells empty in the display.
But in order to work with the VTK file I have to manually replace the
decimal limiter symbol.

By the way, as I have noticed it is possible to convert the values of a
CellVariable on a mesh created with fipy into a numpy array. Is there a
way to do the same when the mesh is more complicated and created with gmsh?

Thanks and best regards
Andi

Andreas Hasenkopf
Phone:       +49 151 11728439
Homepage:    http://www.hasenkopf2000.net
GPG Pub Key: http://goo.gl/4mOsM

On 13.03.2012 17:34, Jonathan Guyer wrote:
> 
> On Mar 13, 2012, at 11:29 AM, Andreas Hasenkopf wrote:
> 
>> Am 13.03.2012 15:15, schrieb Daniel Wheeler:
>>>
>>> Where are they? I wasn't aware of anyway to post process fipy results with 
>>> gmsh.
>>>
>>
>> In the second screencast on http://geuz.org/gmsh/screencasts/ someone
>> shows how to load some data into gmsh and display it.
> 
> The next release of FiPy (which I know we keep saying will be out "soon") can 
> write data files that Gmsh can display.
> 
>> I realized, that
>> fipy can save the data in VTK format, which i could use in gmsh or
>> mayavi except for some problems I already mentioned:
> 
> I wasn't aware that Gmsh could read VTK.
> 
>> - fipy exports VTK data with a ',' (comma) as decimal delimiter, but
>> both gmsh and mayavi are expecting a '.' (dot)
> 
> As you speculate, this is a localization issue, I think. FiPy does not 
> actually write the file, rather it sends the appropriate data to 
> tvtk.misc.write_data. As far as I can tell, tvtk calls straight into the Vtk 
> library to do this. On a quick perusal, I don't see a way to control the 
> localization, but I'll try to research it when I have a chance.
> 
>> - gmsh cannot handle empty/non-calculated cells
> 
> Where are you getting empty cells from?
> 
> 
> _______________________________________________
> fipy mailing list
> [email protected]
> http://www.ctcms.nist.gov/fipy
>   [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

-- 
Andreas Hasenkopf
Phone:       +49 151 11728439
Homepage:    http://www.hasenkopf2000.net
GPG Pub Key: http://goo.gl/4mOsM

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to