[Gmsh] Fwd: Question

Ivan Vicente Janvrot Miranda janvrot at gmail.com
Thu Aug 9 18:12:36 CEST 2007


Sorry, did not answer properly to the list.

---------- Forwarded message ----------
From: Ivan Vicente Janvrot Miranda <janvrot at gmail.com>
Date: Aug 8, 2007 10:04 PM
Subject: Re: [Gmsh] Question
To: Cynthia Maxwell <cynthia.maxwell at mac.com>

Hello

With gmsh you can use variables as point coordinates.
The real numeric values may be defined in a small file named, say: par.inc.
This file may be easily generated by a shell script or by some other program
such as octave.
then you include this file in the beginning of the .geo file.
You can also control gmsh and the solver with a shell script or octave,
automating the whole process in a loop, by changing the parameters at each
iteration.

par.inc:
a = 0.01;
b = 0.02;
cl = 1;

.geo:
Include "par.inc";
Point( 1) = {a, b, 0, cl};
... etc...

I've done a lot of automation with this scheme. The computer plays all the
night, while I sleep.
BTW which solver are you using?

Regards
Janvrot


On 8/8/07, Cynthia Maxwell <cynthia.maxwell at mac.com > wrote:

> Hello there,
> I am thinking of using your product with my solver.
> I would like to define a geometry and iteratively change some parameters
> such as width, height, ellipse center and radii as seen below:
>
>
>
> You say GMesh can:
> "parameterize these geometries. Gmsh's scripting language enables all
> commands and command arguments to depend on previous calculations (see 2.1
> Expressions <http://www.geuz.org/gmsh/doc/texinfo/gmsh_3.html#SEC12>, and 3.1
> Geometry commands <http://www.geuz.org/gmsh/doc/texinfo/gmsh_4.html#SEC23>
> );"
>
> How would I do this? Do you have any examples of parametrically modifying
> a geometry say from a script?
>
> I hope you do, because this would solve my mesh generation problem and
> allow me to focus on the solver.
>
> The sooner the better I know : )
>
> Thank you,
> Cynthia
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20070809/c6b28b55/attachment.html>