[GiDlist] Input coordinate points

Moderator: GiD Team

Post Reply
Alisson at dees.ufmg.br

[GiDlist] Input coordinate points

Post by Alisson at dees.ufmg.br »

Ok,
In the BEM analysis, I need the user insert some internal points
coordinates. I thought to insert some fields (field with value="", like
below) to do it. Is it possible to a limited ou an unlimited number of
points? How can I make reference to this fields in the .bas file?
thanks.

Point 1 X: |_______| Y: |_______| Z: |_______|
Point 2 X: |_______| Y: |_______| Z: |_______|
Point 3 X: |_______| Y: |_______| Z: |_______|
...
__________________________________________________________
Alisson P. Chaves alisson at dees.ufmg.br
MSc. student
Department of Structural Engineering
Universidade Federal de Minas Gerais
Av. do Contorno 842 - 2o. andar
30110-060 Belo Horizonte, MG, Brasil
__________________________________________________________
Enrique Escolano

[GiDlist] Input coordinate points

Post by Enrique Escolano »

You can create a field with a unlimited number of rows in a condition, material or general data:

file *.mat (or *.cnd *.prb):
NUMBER: 1 MATERIAL: Steel
QUESTION: Internal_Points(X,Y,Z)
VALUE: #N# 3 0.0 0.0 0.0
HELP: Internal points coordinates
END MATERIAL




#N#3 0.0 0.0 0.0 --Initially 3 values: 0.0, 0.0, 0.0

Then Matprop(Internal_Points) store a vector={Nº dates,X0,Y0,Z0,X1,Y1,Z1,...,Xn,Yn,Zn} for n+1 rows
Matprop(Internal_Points,int) return the number of components of this vector

file *.bas
*loop materials
*if(strcmp(Matprop(TypeId),"Metal")==0)
*set var N=Matprop(Internal_Points,int)
X Y Z
*for(i=1;i=N;i=i+3)
*Matprop(Internal_Points,*i) *Matprop(Internal_Points,*operation(i+1)) *Matprop(Internal_Points,*operation(i+2))
*end for
*endif
*end materials


Regards
Enrique Escolano

----- Original Message -----
From: Alisson at dees.ufmg.br
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, April 18, 2002 2:05 PM
Subject: [GiDlist] Input coordinate points



Ok,
In the BEM analysis, I need the user insert some internal points
coordinates. I thought to insert some fields (field with value="", like
below) to do it. Is it possible to a limited ou an unlimited number of
points? How can I make reference to this fields in the .bas file?
thanks.

Point 1 X: |_______| Y: |_______| Z: |_______|
Point 2 X: |_______| Y: |_______| Z: |_______|
Point 3 X: |_______| Y: |_______| Z: |_______|
...
__________________________________________________________
Alisson P. Chaves alisson at dees.ufmg.br
MSc. student
Department of Structural Engineering
Universidade Federal de Minas Gerais
Av. do Contorno 842 - 2o. andar
30110-060 Belo Horizonte, MG, Brasil
__________________________________________________________
_______________________________________________
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/20020418/e453f4fa/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5078 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020418/e453f4fa/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5213 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020418/e453f4fa/attachment-0001.gif
Post Reply