Local maximum problem Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Local maximum problem « Previous Next »

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

Charlie Zhang (qzhang)
Member
Username: qzhang

Post Number: 7
Registered: 06-2004
Posted on Monday, June 28, 2004 - 09:19 pm:   

Look through the manual and can not find a
function to get the local maximum of speficid
region(there are several regions in the domain description). Does FlexPDE support this function?

Thanks a lot
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 170
Registered: 06-2003
Posted on Tuesday, June 29, 2004 - 03:02 pm:   

There is no explicit facility for limiting the GLOBALMAX function to a specific region, but you can accomplish the same end quite easily.

In DEFINITIONS, declare a new name for the quantity you want to search, and give it a default value smaller than any possible maximum.
In the region or regions you want to search, redefine the argument quantity to the actual value to be searched.

Example:
Definitions
limited_arg = -1
local_maximum = GLOBALMAX(limited_arg)
Boundaries
Region 1 ...
Region 2 limited_arg = real_arg

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