Dynamically Calculated Coordinate in ... Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Dynamically Calculated Coordinate in Staged Problem « Previous Next »

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

walter helgeland (walterhelgeland)
New member
Username: walterhelgeland

Post Number: 1
Registered: 02-2007
Posted on Thursday, February 22, 2007 - 01:27 pm:   

I have a staged problem in which some Region coordinate points change from stage to stage. If I write an explicit list of the coordinates, the problems solve OK. As each stage is solved, the correct coordinate values are picked out of the list.

The coordinates are the result of a series of complex calculations, so it's tedious (and error-prone) to compute them all and then write the numerical values into the script. So I have written the equations into the script so these coordinates are freshly calculated at each stage.

However, when I try to run this script, I get the error message, "A Constant value is required" at the point where the region definition refers to the coordinate value that has been calculated in the Definitions section.

Is there a way to work around this limitation. I, running FlexPDE 4.2.16 Professional Version.
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 772
Registered: 06-2003
Posted on Thursday, February 22, 2007 - 04:10 pm:   

There is currently no mechanism to feed back dynamically computed data into the domain definition.

You will have to break the problem into separate runs, and export/import the data.

1) Export a file using the "format" facility.
2) Import the data using the #include facility.

See "Samples | Misc | Import_Export | export_format.pde" for examples of formatted export.

Or, perhaps an exported SUMMARY page would be better if there are only a few numbers.

Top of pagePrevious messageNext messageBottom of page Link to this message

walter helgeland (walterhelgeland)
New member
Username: walterhelgeland

Post Number: 2
Registered: 02-2007
Posted on Thursday, February 22, 2007 - 05:39 pm:   

Thanks for the prompt response.

Actually, I did not phrase my inquiry accurately enough. Since posting it, I have discovered a typo in my complicated script that led to the problem.

So I think I am OK now.

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