[Gmsh] If () Endif issues
cgeuzaine at ulg.ac.be
Thu Mar 5 18:43:25 CET 2015
> On 24 Feb 2015, at 15:03, Danny Holstein <dgholstein at embarqmail.com> wrote:
> Thanks so much, that was simple!
> On a related question (related to my geometry, that is), is there a way to construct a line loop using an array of lines? When parametrizing, I will not have the same number of line features depending on whether I radius a corner or not (as well as other conditionals). It would be easy to add line elements to an array and then form the line loop with those, I don't see how to do it otherwise.
> Are there some GMSH array examples to look at? Arrays of points, of lines?
Sure, just construct an array with the IDs of the points/lines you want ; see e.g. tutorial/t5.geo where a surface loop is constructed this way.
There are many useful operators on lists, e.g. += to append or -= to remove. The "Boundary" and "CombinedBoundary" operators are also often useful to automate boundary generation.
> ----- Original Message -----
> From: "Christophe Geuzaine" <cgeuzaine at ulg.ac.be>
> To: "Danny Holstein" <dgholstein at embarqmail.com>
> Cc: gmsh at geuz.org
> Sent: Tuesday, February 24, 2015 3:17:42 AM
> Subject: Re: [Gmsh] If () Endif issues
>> On 24 Feb 2015, at 04:21, Danny Holstein <dgholstein at embarqmail.com> wrote:
>> The attached crashes GMSH versions 2.8.6 and 2.8.5 on Linux x86_64 when the logical resolves to "false".
>> Also, when it resolves to "true", it doesn't read the following script line, so I put in a semicolon, which causes the scripting language to throw an "error".
> Hi Danny - Change "Endif" into "EndIf" on line 16 of functions.dat. (We will try to fix the crash, which is due to an unclean file close.)
>> Any help would be appreciated.
>> gmsh mailing list
>> gmsh at geuz.org
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> gmsh mailing list
> gmsh at geuz.org
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
More information about the gmsh