[Gmsh] python API save geo file

Max Orok morok at mevex.com
Sat Sep 28 23:03:56 CEST 2019


Hi Miro, sorry about giving you the wrong info.
I’ve still got a lot to learn about Gmsh.

Thanks,
Max

On Friday, September 27, 2019, Miroslav Kuchta <miroslav.kuchta at gmail.com>
wrote:

> Perfect, thank you.
>
> Miro
>
> On Fri, Sep 27, 2019 at 8:48 AM Christophe Geuzaine <cgeuzaine at uliege.be>
> wrote:
>
>>
>>
>> > On 26 Sep 2019, at 17:21, Miroslav Kuchta <miroslav.kuchta at gmail.com>
>> wrote:
>> >
>> > Hi Max,
>> >
>> > what I am trying to accomplish is the ability to call something like
>> `model.save('foo.geo')`
>>
>> Use gmsh.write("foo.geo_unrolled")
>>
>> Christophe
>>
>>
>>
>> > in the attached script. I am only beginning to explore the API and this
>> would allow me to
>> > create part of the model in python, save it and optionally continue in
>> gmsh language. I guess
>> > this would be useful if not all of the API is exposed.
>> >
>> > Thanks, Miro
>> >
>> > On Thu, Sep 26, 2019 at 4:23 PM Max Orok <morok at mevex.com> wrote:
>> > Hi Miro,
>> >
>> > I don't think so. Can you tell us more about what you are trying to
>> accomplish?
>> > The tutorials have many examples of equivalent functionality between
>> geo and python (c++, julia, etc.)
>> >
>> > Geo examples: https://gitlab.onelab.info/gmsh/gmsh/tree/master/tutorial
>> > Equivalent API examples: https://gitlab.onelab.info/
>> gmsh/gmsh/tree/master/demos/api
>> >
>> > Sincerely,
>> > Max
>> >
>> > On Wed, Sep 25, 2019 at 4:20 PM Miroslav Kuchta <
>> miroslav.kuchta at gmail.com> wrote:
>> > Hi,
>> >
>> > is there a way to write as geo file the model constructed using python
>> API?
>> >
>> > Thanks, Miro
>> > _______________________________________________
>> > gmsh mailing list
>> > gmsh at onelab.info
>> > http://onelab.info/mailman/listinfo/gmsh
>> >
>> >
>> > --
>> > Max Orok
>> > Contractor
>> > www.mevex.com
>> >
>> >
>> > <foo.py>_______________________________________________
>> > 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
>>
>>
>>
>>

-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190928/a5889b7a/attachment.html>


More information about the gmsh mailing list