[Gmsh] Reading Lists in GEO files

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Nov 28 21:16:24 CET 2013


On 27 Nov 2013, at 08:55, Matthias Lang <Lang_Matthias at gmx.de> wrote:

> Hi,
> Is in gmsh a command to read numbers from a file into a list?
> 
> In getDP is the command:
> 
> listexample = ListFromFile["example.txt"];
> 
> Is there a similar way in gmsh?
> 
> The background:
> I receive from an optimization algorithmen some values, wich should be
> geometry parameters in a *.geo file.
> Therefore I could create a file like this:
> x1=3.0;
> x2=5.1;
> .
> .
> and use the "include" command in the *.geo file. But is there a simpler
> way available -something like ListFromFile[] ?
> 

Hi Matthias - No, not currently. I agree that it would be a good idea to add such a feature, though.

> 
> Regards
> Matthias Lang
> 
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine