Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Options to exit NDSOLVE?

  • To: mathgroup at
  • Subject: [mg14020] Re: [mg13948] Options to exit NDSOLVE?
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Wed, 16 Sep 1998 14:12:01 -0400
  • Sender: owner-wri-mathgroup at

Hi Robin,

here is the help text of the StoppingTest option

"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."

The result of NDSolve can still be used to obtain the results.

Hope that helps

-----Original Message-----

From: Robin Redfield <RedfieldRC.Dfem at> To:
mathgroup at
Subject: [mg14020] [mg13948] Options to exit NDSOLVE?

>> Is it possible to get NDSOLVE to exit before the independent variable
>> reaches its range?  I would like to exit the numerical integration
>> based on monitored conditions in the simulation.  I would also like to
>> the value of some of my variables at exit.
>> For example, I am modeling the vertical motion of a water rocket and
>> like to stop the simulation when the water is dispelled from the rocket,
>> necessarily at some particular value of the independent variable (time).
>> Thanks for any help,
>> Rob Redfield
>> Associate Professor
>> Engineering Mechanics
>> US Air Force Academy

  • Prev by Date: Re: Re: Fourier transform
  • Next by Date: Help, I have Syntax Errors in allmost all files
  • Previous by thread: Re: Options to exit NDSOLVE?
  • Next by thread: Piecewise function integrated thrice