If-Then Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » If-Then « Previous Next »

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

Kai Häberle (wharfish)
New member
Username: wharfish

Post Number: 2
Registered: 07-2009
Posted on Wednesday, July 29, 2009 - 02:57 am:   

Hello Mr.Nelson,

when I include an If-Then statement in my file, it only slows the calculation down but doesn't show the expected effect. Is there a proper way to include these statements in FlexPDE?

Greetings
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 139
Registered: 07-2007
Posted on Wednesday, July 29, 2009 - 03:37 pm:   

IF-THEN constructs should be used with extreme caution. They can often cause trouble for the solver if the value is not continuous through the switch point. It is much better to use one of the alternatives : RAMP, URAMP or SWAGE. See the Help section "Technical Notes | Avoid Discontinuities" (online at http://www.pdesolutions.com/help/index.html?discontinuities.html ).

Without knowing what the "expected effect" is, I cannot offer an explanation why you do not observe it. The calculation is likely slow due to the discontinuity. Again, I cannot be sure without knowing more specifics.

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