[Date Index] [Thread Index] [Author Index]
Re: Options to exit NDSOLVE?
Hi Robin, here is the help text of the StoppingTest option In:= ?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." The result of NDSolve can still be used to obtain the results. Hope that helps Jens -----Original Message----- From: Robin Redfield <RedfieldRC.Dfem at usafa.af.mil> To: mathgroup at smc.vnet.net 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 routine >> based on monitored conditions in the simulation. I would also like to >know >> the value of some of my variables at exit. >> >> For example, I am modeling the vertical motion of a water rocket and would >> like to stop the simulation when the water is dispelled from the rocket, >not >> necessarily at some particular value of the independent variable (time). >> >> Thanks for any help, >> >> Rob Redfield >> Associate Professor >> Engineering Mechanics >> US Air Force Academy > > >