How to initialize an array? Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » How to initialize an array? « Previous Next »

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

shi liang (caleb_shi)
Member
Username: caleb_shi

Post Number: 9
Registered: 12-2004
Posted on Monday, January 24, 2005 - 09:42 am:   

Hi, Sir. in my program, if i want to run a direct solution, i need to initialize the variables. However, the variables are all arrays, so i cant use a single number to initialize them. so i would like to ask how to initialize the arrays, so i can use Newton Raphson directly?
application/octet-streamtwo particles in box
test_1.pde (0.9 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 308
Registered: 06-2003
Posted on Tuesday, January 25, 2005 - 01:52 pm:   

The INITIAL VALUES section of the script initializes all nodes of the mesh.

You can use any arithmetic expression involving spatial coordinates to set the initial values to a distribution.

You can also use regionally defined values to set the initial value differently in each region.

You can read in result values from a previous run and use them to initialize the variables.

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