<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Simple rocket model</title>
    <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 21:40:59 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 21:40:59 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Simple rocket model</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Simple rocket model</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model</link>
    </image>
    <item>
      <title>use odeplot to plot solutions to IVPs</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59846</link>
      <itunes:summary>&lt;p&gt;I can combine your last five commands into a single line that is quite understandable.&lt;/p&gt;
&lt;p&gt;The key is to be aware of the odeplot command (in the plots package). This command is designed specifically to plot the numerical solution of an initial value problem. Here is my version of your code:&lt;/p&gt;
&lt;pre&gt;
restart;
m:=t-&amp;gt;M*exp(-gamma*t)+M[0]:
rocket_eq:=m(t)*diff(x(t),t,t)+diff(m(t),t)*u+m(t)*g=0:
params := [M[0]=0.2, M=1, gamma=10, u=8, g=9.81]:
rocket_eq:=eval(rocket_eq,params):
ics:=x(0)=0,D(x)(0)=0:
sol:=dsolve({rocket_eq,ics},x(t),numeric):
plots:-odeplot(sol, [[t,x(t)],[t,diff(x(t),t)]], t=0..2, color=[black,red],legend=[&amp;quot;position&amp;quot;,&amp;quot;velocity&amp;quot;]);

&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/4013"&gt;&lt;img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/178_rocket-plot.gif&amp;amp;width=300&amp;amp;height=300" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The odeplot command can do much more than this; see ?plots,odeplot for full details.&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59846</guid>
      <pubDate>Sat, 23 Jan 2010 22:28:07 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>halt event</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59847</link>
      <itunes:summary>&lt;p&gt;As a simple extension to Doug's suggestion, we can add a halt event when the rocket hits the ground&lt;/p&gt;
&lt;pre&gt;
sol:=dsolve({rocket_eq,ics},x(t),numeric,&lt;b&gt;events=[[x(t), halt]]&lt;/b&gt;):
tf := eval(t, sol(10));
plots:-odeplot(sol, [[t,x(t)] ,[t,diff(x(t),t)]], t=0..tf, color=[black,red],legend=[&amp;quot;position&amp;quot;,&amp;quot;velocity&amp;quot;]);

&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59847</guid>
      <pubDate>Sun, 24 Jan 2010 00:07:11 Z</pubDate>
      <itunes:author>Joe
 Riel
</itunes:author>
      <author>Joe
 Riel
</author>
    </item>
    <item>
      <title>Cool</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59848</link>
      <itunes:summary>Thanks Doug and Joe.  We'll be using deplot and deplot3d next wee I think so this is good for me to get a little ahead.</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59848</guid>
      <pubDate>Sun, 24 Jan 2010 05:30:15 Z</pubDate>
      <itunes:author>longrob</itunes:author>
      <author>longrob</author>
    </item>
    <item>
      <title>odeplot, deplot, and deplot3d</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59849</link>
      <itunes:summary>&lt;p&gt;deplot and deplot3d are different from odeplot&lt;/p&gt;
&lt;p&gt;odeplot is in the plots package (?odeplot)&lt;/p&gt;
&lt;p&gt;deplot and deplot3d are in the DEtools package (?DEtools, ?DEplot and ?DEplot3d)&lt;/p&gt;
&lt;p&gt;There are a lot of similarities between the commands, but also some important differences. As in your example, odeplot is a little more flexible when it comes to specifying exactly what you want to plot. I am more likely to use the DEplot command when I want to perform visualize the direction field (to learn, say, how solutions might behave for wide ranges of initial conditions).&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59849</guid>
      <pubDate>Sun, 24 Jan 2010 10:53:17 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>alternative</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59850</link>
      <itunes:summary>&lt;p&gt;It probably makes sense to express the burn rate as a differential equation and combine it with the others. Knowing little about rocketry I would think that the burn rate is constant, rather than proportional to the fuel (which the exponential implies).&amp;nbsp; That could be expressed as&lt;/p&gt;
&lt;pre&gt;
deqs := { v(t) = diff(x(t),t),
          m(t)*diff(v(t),t) + diff(mf(t),t)*u + m(t)*g = 0,
          m(t) = mb + mf(t),
          diff(mf(t),t) = -gamma(t)
        }:

ics := {x(0)=0, v(0)=0, mf(0)=mf0, gamma(0)=gamma0}:

params := [mb=0.2, mf0=1, gamma0=10, g=9.81, u=8]:

sys := eval(deqs union ics, params);

sol:=dsolve(sys,numeric
            , events = [[v(t) = 0 , 'halt'],    # halt simulation at apogee
                        [mf(t) = 0, gamma(t)=0] # fuel is spent, set burn rate to 0
                       ]
            , discrete_variables = [gamma(t) :: float]
           );
tf := eval(t, sol(10)); # determine the time at which rocket reaches apogee
plots:-odeplot(sol, [[t,x(t)],[t,v(t)]], t=0..tf, color=[black,blue,red],legend=[&amp;quot;position&amp;quot;,&amp;quot;velocity&amp;quot;, &amp;quot;fuel&amp;quot;]);
plots:-odeplot(sol, [t,mf(t)], t=0..tf, legend=[&amp;quot;fuel&amp;quot;]);&lt;/pre&gt;
&lt;p&gt;The burn rate could be expressed as a piecewise, say gamma(t) = piecewise(mf(t)&amp;gt;0, gamma0, 0), however, I used a second event to switch it off when the fuel (mf) reached zero.&amp;nbsp; To enable that, gamma(t) is declared a discrete variable (see ?dsolve[Events]).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59850</guid>
      <pubDate>Mon, 25 Jan 2010 21:06:08 Z</pubDate>
      <itunes:author>Joe
 Riel
</itunes:author>
      <author>Joe
 Riel
</author>
    </item>
    <item>
      <title>These can be easily</title>
      <link>http://www.mapleprimes.com/posts/35907-Simple-Rocket-Model?ref=Feed:MaplePrimes:Simple rocket model:Comments#comment59851</link>
      <itunes:summary>&lt;p&gt;&lt;span id="result_box" class="medium_text"&gt;&lt;span style="background-color: #fff" title="这些可以轻松用MapleSim实现，而且不需要关心使用了什么Maple命令，只需要输入对应的方程。" closure_hashcode_d1o3ii="20"&gt;&lt;font size="3"&gt;These can be easily completed with MapleSim, and you do not&amp;nbsp;need to care about what&amp;nbsp;Maple commands to use, just need to enter the corresponding equation and Initial conditions.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Simple rocket model</description>
      <guid>59851</guid>
      <pubDate>Thu, 28 Jan 2010 07:18:33 Z</pubDate>
      <itunes:author>junlin</itunes:author>
      <author>junlin</author>
    </item>
  </channel>
</rss>