Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10654

P controller

From Phoenix <mirko.tavano@live.com>
Newsgroups comp.soft-sys.math.mathematica
Subject P controller
Date 2012-06-27 08:14 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jsefdj$ia1$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi there! I have to plot the following function but I can't and i don't know why!

Clear["Global`*"]
Fi = .1;
do = .18;
Ao = Pi*do^2/4;
Cd = .61;
g = 9.81;
A = 5;

hss = (Fi/(Ao*Cd))^2*(1/(2*9.81));

F[t_] := {
  If[t < 10, hSP = hss, hSP = 2*hss];
  DSolve[{h'[x] == (hSP - h[x])/A, h[0] == hss}, h, x]
  }

Plot[F[t], {t, 10, 20}]


It should be h=hss when t<10; h=E^(-0.2` x) (-2.115297927011188` + 4.230595854022376` E^(0.2` x))
when t>0.
I need them in the same graph.
Thanks!

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

P controller Phoenix <mirko.tavano@live.com> - 2012-06-27 08:14 +0000

csiph-web