How do I use Table to define boundaries? Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » How do I use Table to define boundaries? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this 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?
application/octet-stream2D elasticity problem
2D Linear repeat.log (0.5 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

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}
Top of pagePrevious messageNext messageBottom of page Link to this message

Jerry Brown (jerrybrown11743)
Member
Username: jerrybrown11743

Post Number: 4
Registered: 03-2004
Posted on Saturday, April 03, 2004 - 10:50 pm:   

Thanks. It worked.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration