[Gmsh] basic calculation in Gmsh?

Nico Schlömer nico.schloemer at gmail.com
Thu Oct 4 12:57:11 CEST 2012


I noticed that Layers actually accepts float values, so

Layers{2*Pi*radius / lcar}

already works.
Sorry for the noise!
--Nico


On Thu, Oct 4, 2012 at 9:52 AM, Nico Schlömer <nico.schloemer at gmail.com> wrote:
> Hi,
>
> can I do basic calculations in the Gmsh scripting language?
> Specifically, I would like to calculate the number of layers in an
> extrusion as int(2*pi*radius / lcar).
>
> Cheers,
> Nico