[Gmsh] Build the mesh in my own program
mlt at gmx.us
Wed Sep 29 19:09:22 CEST 2010
I would suggest to communicate with Gmsh using network. Take a look at the
source code. It has a couple of nice examples in utils/solvers subfolder. It
will definitely save some time since you can reuse existing instance instead
of launching new process every time.
IMHO it would be the last resort to link gmsh code in.
> -----Original Message-----
> From: gmsh-bounces at ace20.montefiore.ulg.ac.be [mailto:gmsh-
> bounces at ace20.montefiore.ulg.ac.be] On Behalf Of Mikhail Artemiev
> Sent: Tuesday, September 28, 2010 9:34 PM
> To: gmsh at geuz.org
> Subject: [Gmsh] Build the mesh in my own program
> Hi everybody!
> I have a question of building mesh using Gmsh in my own
> In my task I need to rebuild mesh many times for different
> geometry. This geometry changes under program execution.
> For this purpose I use C-function "system", where I send
> command "gmsh.exe myfile.geo -2". Than I read the mesh
> from file.
> It works, but I think that it is incorrect way.
> How can I build the mesh not using the resources of OS (in
> my case - Windows XP), i.e. build the mesh in my program?
> Mikhail Artemiev, PhD student, NSTU
> gmsh mailing list
> gmsh at geuz.org