For Example, if you define a field with 7 columns
NUMBER: 1 MATERIAL: Steel
QUESTION: Dynamic_Load_Curve(TMIN,TMAX,A1,A2,A3,A4,A5)
VALUE: #N# 7 0. 10. 0. 0. 0. 0. 0.
QUESTION: Tolerance:
VALUE: 0.01
END MATERIAL
To print the values from the bas file, use:
*realformat “%10.3f”
*loop materials
*set var nrows=operation(MatProp(Dynamic_Load_Curve,INT)/7)
number of cols=7, number of rows=*nrows
TMIN ,TMAX, A1, A2, A3, A4, A5
*for(i=0;inrows;i=i+1)
*for(j=0;j7;j=j+1)
set var pos=operation(i7+j+1)
*MatProp(Dynamic_Load_Curve,*pos,REAL) *
*end for
*end for
*end materials
Notes:
MatProp(Dynamic_Load_Curve,INT) return the number of total values, e.g. for 2 rows this number is 27=14 values
*MatProp(Dynamic_Load_Curve,*pos,REAL) return the value number “pos” (from 1 to 14), and use the real format to print it.
*\ is used to avoid the carriage return (to print the values as a table with 7 values in each row)
The table of values can be used for materials, conditions or problem data.
----- Original Message -----
From: “V.SAYAKOUMMANE” vilaysako at yahoo.com
To: “Enrique Escolano” escolano at cimne.upc.es
Sent: Monday, September 09, 2002 10:46 AM
Subject: Re: Limitation in mat file and problem when using DEPENDENCIES
Hi Enrique
Thanks so much for your reply and advice. I’m
trying to use the Table option instead of lots of
DEPENDENCIES. Can we use the following option in any
Problemtype files ( .prb, cnd, and .mat)?
QUESTION:
Dynamic_Load_Curve:(TMIN,TMAX,A1,A2,A3,A4,A5)
VALUE: #N# 7 0. 10. 0. 0. 0. 0. 0.
My question is: how we write the .bas file out for
this option??
Regards
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020909/5ea56b24/attachment.htm