Hullo Guillaume,
yes, starting from an existing geo I want to rotate physical components in
order to manage automatic geometry modifications and mesh generation from an
external executable program.
But following your suggestion what I can do from my external program is to add
the lines:
tmp[] = Physical Surface { xyz } ;
Rotate { { 1. , 0. , 0. } , { 0. , 0. , 0. } , Pi/2. }
{ Surface { tmp[] } ; }
to my .geo file and then generate the mesh, this should work...
Alessandro
-----Messaggio originale-----
Da: DILASSER Guillaume [mailto:[email protected]]
Inviato: lunedì 6 febbraio 2017 11.03
A: Alessandro Vicini
Cc: [email protected]
Oggetto: RE: [Gmsh] R: Geometry modification on physical entities
Hello Alessandro,
Have a look at the enclosed file for an example of what Christophe was
mentioning. Also, I don't understand what you are trying to achieve "from the
command line". Is it that you generate geometry as a physical entity in one
.geo file and want to rotate it afterwards ? If that is the case, I don't think
this can actually work because there is no input argument that you could use
from the command line to specify with Physical Entity you wish to transform.
This at least will have to be defined somewhere in a .geo file.
Guillaume DILASSER
Doctorant SACM / LEAS
CEA - Centre de Saclay - Bât.123 - PC 319c
91191 Gif sur Yvette Cedex - France -
[email protected]<mailto:[email protected]>
-----Message d'origine-----
De : gmsh [mailto:[email protected]] De la part de
Alessandro Vicini Envoyé : lundi 6 février 2017 09:38 À : Christophe Geuzaine
<[email protected]<mailto:[email protected]>> Cc :
[email protected]<mailto:[email protected]> Objet : [Gmsh] R: Geometry modification on
physical entities
I'm afraid this is not clear to me, how can I use this feature from command
line? Thank you.
Alessandro
-----Messaggio originale-----
Da: Christophe Geuzaine [mailto:[email protected]]
Inviato: domenica 5 febbraio 2017 10.34
A: Alessandro Vicini
Cc: [email protected]<mailto:[email protected]>
Oggetto: Re: [Gmsh] Geometry modification on physical entities
> On 3 Feb 2017, at 10:18, Alessandro Vicini
> <[email protected]<mailto:[email protected]>> wrote:
>
>
> Geometry modifications (such as a rotation) can only be applied to elementary
> entities? Is there a way to apply them on physical entities instead? Thank
> you.
No, but you can get all the elementary entities making up a physical group
using e.g. "Physical Line {tag}" (it returns a list), which you can then use in
the transformation commands.
>
> Alessandro
>
>
>
>
>
> _______________________________________________
> gmsh mailing list
> [email protected]<mailto:[email protected]>
> http://onelab.info/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
_______________________________________________
gmsh mailing list
[email protected]<mailto:[email protected]>
http://onelab.info/mailman/listinfo/gmsh
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh