Author |
Message |
Jerry Brown (jerrybrown11743)
Junior Member Username: jerrybrown11743
Post Number: 3 Registered: 03-2004
| Posted on Wednesday, March 31, 2004 - 10:32 pm: | |
I'm trying to solve a moving boundary problem by approximating a time dependent problem with staged solutions. I want to generate new boundaries at each stage using data from the previous one. I had hoped to use the REPEAT construct like this to create the boundary: repeat i=1 to 9 line to (6,yc[i]) value(Ux)=disp_x value(Uy)=0 endrepeat Then, I planned to use TABLE to save data from the previous stage and read it to create the yc[i] of the current stage. But, it seems the boundary definition wants constants. How do I reference the table contents in a way that lets me get them into the boundary definition? |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 132 Registered: 06-2003
| Posted on Thursday, April 01, 2004 - 12:37 am: | |
Use a Format string to write the output as <number>, <number>, ...etc then read it in with an #include: YC=ARRAY( #include "yfile" 0) {dummy extra value to eat the last comma} {"yfile" is whatever name the data is written to} |
Jerry Brown (jerrybrown11743)
Member Username: jerrybrown11743
Post Number: 4 Registered: 03-2004
| Posted on Saturday, April 03, 2004 - 10:50 pm: | |
Thanks. It worked. |