Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NDSolve : Stopping condition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25451] Re: NDSolve : Stopping condition
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 1 Oct 2000 02:44:32 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <8r1ata$ias@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

roelb wrote:
> 
> Hi,
> The default stoping conditions of NDSolve are :
> - max steps, or,
> - final time value reached.
> 
> Is there a way to stop a running NDSolve simulation upon the value
> reached by a variable of the model?
> Something like that:
> 
> NDSolve[{system, initialCondition},{x,y,z},{t,t0,tfinal},Stop->If[x[t]=0
> ]]
> 
> 
Hi,


?StoppingTest

"StoppingTest is an option for NDSolve that can be used to stop the \
integration of the ode when a certain condition is found to be True. The
\
condition can evaluate to True/False only and should contain the
dependent \
and independent variables explicitly. This option cannot be used for
linear \
boundary value problems."

Regards
  Jens


  • Prev by Date: Re: List operations
  • Next by Date: Re: How to solve the system of linear equations?
  • Previous by thread: Re: NDSolve : Stopping condition
  • Next by thread: Re: I do not understand