[Getdp] Cos( ) and Cos[ ]

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Oct 10 13:14:56 CEST 2013


On 10 Oct 2013, at 12:47, François Henrotte <francois.henrotte at uclouvain.be> wrote:

> Hello Joseph,
> 
> It would help (at least me) to see your files .geo and .pro.
> 
> Regards
> 
> Fr.
> 
>>  
>> how can one exchange calculated parameters “between Gmsh and GetDP” ?
>> In my model, the parameters of the machine, common to the geometry and to the formulation, are in the file ‘machine_data.geo’ and this file is included in ‘machine.geo’ and in ‘machine.pro’.
>> For example, I need to compute an angle alpha = cos(….) for the geometry and for the formulation.
>> Due to the syntax difference, I can’t put the calculation in ‘machine_data.geo’.  I must do the same calculations in the ‘.geo’ file and in the ‘.pro’ file.
>> Is there a way to avoid this and to share alpha ?


Yes: Gmsh actually accepts the [] syntax for precisely this reason. So you can write Cos[] in your include file.



>>  
>> Thanks in advance for any answer,
>>  
>> Joseph
>>  
>> --
>> Joseph Frippiat
>> Senior Developer - UPS Division
>> 
>> KST S.A. - Site of Battice
>> Cour Lemaire, 16
>> B-4651 BATTICE
>> BELGIUM
>> Tel : +.32.4.247.01.67
>> Fax : +.32.87.31.42.21
>> E-mail : frippiat.j at kst.be
>> Web : www.kst-ups.com
>> 
>> Head office : Cour Lemaire, 16 - 4651 Battice (Belgium)
>> RPM Liège (Belgium) : 0423.472.603
>>  
>> _______________________________________________
>> getdp mailing list
>> getdp at geuz.org
>> http://www.geuz.org/mailman/listinfo/getdp
> 
> --
> François Henrotte Dr Ir
> UCL - Bâtiment Euler - Av. G. Lemaître 4-6 
> B-1348 Louvain-la-Neuve
> Tél: +32(0)10 47 23 64  Fax: id. 23 50
> 
> _______________________________________________
> getdp mailing list
> getdp at geuz.org
> http://www.geuz.org/mailman/listinfo/getdp

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