Thanks Enrique,
with "real" it works fine, but I stumbled into another problem. I need to use the exponential function "exp", but it seems not to work, whereas "fabs", "sqrt", ... work fine in the same place.
Thanks for your help.
Regards
Andrea
________________________________
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: venerdì 20 aprile 2007 14.36
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Problems with *MatProp()
At .bas level , variables can only store integer or real values, not strings, like a generic Matprop field.
*set var ANY=MatProp(ANY_PROPERTY_NAME) is not valid
it can be valid if you specify its numeric type with REAL or ,INT:
*loop materials
*set var ANY=MatProp(ANY_PROPERTY,REAL)
any:*ANY
mid:*Operation(0.5*MatProp(ANY_PROPERTY,REAL))
*end materials
(off course the field must have a numeric value)
----- Original Message -----
From: "CALAON Andrea Dalmine R&D" acalaon at dalmine.it mailto:acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu mailto:gidlist at gatxan.cimne.upc.edu
Sent: Friday, April 20, 2007 3:16 PM
Subject: [GiDlist] Problems with *MatProp()
Hello everyone,
I am using GiD 8.0.8.
I need to perform some operations on material properties before writing
them in the dat file.
I tried to use:
_____________________________
*loop materials
...
*set var ANY = *MatProp(ANY_PROPERTY_NAME)
...
*end materials
_____________________________
or
_____________________________
*loop materials
...
*Operation(MatProp(ANY_PROPERTY_NAME))
...
*end materials
_____________________________
but it looks like it is not possible to use MatProp inside Operation()
or for setting a variable.
Am I doing something wrong or am I missing something?
Thanks for your help.
Best Regards
Andrea
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es mailto:GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20070423/e8f34f4c/attachment.htm
[GiDlist] Problems with *MatProp()
Moderator: GiD Team
[GiDlist] Problems with *MatProp()
Your are rigth, this miss is corrected for the next beta
Enrique
----- Original Message -----
From: CALAON Andrea Dalmine R&D
To: gidlist at gatxan.cimne.upc.edu
Sent: Monday, April 23, 2007 3:11 PM
Subject: RE: [GiDlist] Problems with *MatProp()
Thanks Enrique,
with "real" it works fine, but I stumbled into another problem. I need to use the exponential function "exp", but it seems not to work, whereas "fabs", "sqrt", ... work fine in the same place.
Thanks for your help.
Regards
Andrea
------------------------------------------------------------------------------
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: venerdì 20 aprile 2007 14.36
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Problems with *MatProp()
At .bas level , variables can only store integer or real values, not strings, like a generic Matprop field.
*set var ANY=MatProp(ANY_PROPERTY_NAME) is not valid
it can be valid if you specify its numeric type with REAL or ,INT:
*loop materials
*set var ANY=MatProp(ANY_PROPERTY,REAL)
any:*ANY
mid:*Operation(0.5*MatProp(ANY_PROPERTY,REAL))
*end materials
(off course the field must have a numeric value)
----- Original Message -----
From: "CALAON Andrea Dalmine R&D" acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu
Sent: Friday, April 20, 2007 3:16 PM
Subject: [GiDlist] Problems with *MatProp()
Hello everyone,
I am using GiD 8.0.8.
I need to perform some operations on material properties before writing
them in the dat file.
I tried to use:
_____________________________
*loop materials
...
*set var ANY = *MatProp(ANY_PROPERTY_NAME)
...
*end materials
_____________________________
or
_____________________________
*loop materials
...
*Operation(MatProp(ANY_PROPERTY_NAME))
...
*end materials
_____________________________
but it looks like it is not possible to use MatProp inside Operation()
or for setting a variable.
Am I doing something wrong or am I missing something?
Thanks for your help.
Best Regards
Andrea
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20070425/70d3d865/attachment.htm
Enrique
----- Original Message -----
From: CALAON Andrea Dalmine R&D
To: gidlist at gatxan.cimne.upc.edu
Sent: Monday, April 23, 2007 3:11 PM
Subject: RE: [GiDlist] Problems with *MatProp()
Thanks Enrique,
with "real" it works fine, but I stumbled into another problem. I need to use the exponential function "exp", but it seems not to work, whereas "fabs", "sqrt", ... work fine in the same place.
Thanks for your help.
Regards
Andrea
------------------------------------------------------------------------------
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: venerdì 20 aprile 2007 14.36
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Problems with *MatProp()
At .bas level , variables can only store integer or real values, not strings, like a generic Matprop field.
*set var ANY=MatProp(ANY_PROPERTY_NAME) is not valid
it can be valid if you specify its numeric type with REAL or ,INT:
*loop materials
*set var ANY=MatProp(ANY_PROPERTY,REAL)
any:*ANY
mid:*Operation(0.5*MatProp(ANY_PROPERTY,REAL))
*end materials
(off course the field must have a numeric value)
----- Original Message -----
From: "CALAON Andrea Dalmine R&D" acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu
Sent: Friday, April 20, 2007 3:16 PM
Subject: [GiDlist] Problems with *MatProp()
Hello everyone,
I am using GiD 8.0.8.
I need to perform some operations on material properties before writing
them in the dat file.
I tried to use:
_____________________________
*loop materials
...
*set var ANY = *MatProp(ANY_PROPERTY_NAME)
...
*end materials
_____________________________
or
_____________________________
*loop materials
...
*Operation(MatProp(ANY_PROPERTY_NAME))
...
*end materials
_____________________________
but it looks like it is not possible to use MatProp inside Operation()
or for setting a variable.
Am I doing something wrong or am I missing something?
Thanks for your help.
Best Regards
Andrea
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20070425/70d3d865/attachment.htm