Table for initial values input Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Table for initial values input « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Soumen Kar (soumen)
New member
Username: soumen

Post Number: 1
Registered: 10-2009
Posted on Monday, October 12, 2009 - 06:09 pm:   

I was trying to get a table to give inputs in my initial values of a problem but after going through the help topics in FlexPde I couldn't get success. Please help me to make a table.
application/octet-streamtable file
table.tbl (16.7 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 144
Registered: 07-2007
Posted on Monday, October 12, 2009 - 06:29 pm:   

See "TABLE File Format" in the Help index. You will see that your table is in the wrong format. You have specified a sequence of points:

X Temp
1 10
2 20
3 30

This is not the format that FlexPDE needs for an input table.
The correct format of the table file is :

x 3
1 2 3
data
10 20 30

Then you read the table into your script with the statement:

Temp = TABLE('filename')

Then FlexPDE will assign the value of Temp based on the X coordinate. If this is to be an initial condition and your variable is named "Temp" then you should use some other name for the table statement, e.g "Temp0" and set INITIAL VALUES Temp = Temp0.

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