Hi
I have no idea about the state of this code, but they seem to be active:
code.google.com/p/pynastran/
I believe you could quite easily add it to sfepy. Regarding licensing I'm not sure about GNU GPL v3 (pynastran) vs BSD (sfepy).
The feature would be nice for me as well. :-))
/PMC
2012/1/9 Robert Cimrman
<cimr...@ntc.zcu.cz>
On 01/09/12 16:49,
nil...@googlemail.com wrote:
I would like to convert a mesh from gambit to Nastran. How can I do
that with sfepy ?
A small example would be appreciated.
Saving a mesh in nastran format is not yet implemented. If it was, you would use script/convert_mesh.py script.
Example use:
./script/convert_mesh.py meshes/3d/cylinder.mesh new.vtk
Currently supported formats for writing are:
$ ./script/convert_mesh.py -l
sfepy: Supported writable mesh formats are:
sfepy: comsol
sfepy: hdf5
sfepy: medit
sfepy: vtk
I cannot implement it right now, so if you feel like trying implementing it, check BDFMeshIO class in sfepy/fem/meshio.py - write(self, filename, mesh, **kwargs) method needs to be added there. Otherwise you can create a new enhancement issue, so that your request is not forgotten :)
Cheers,
r.