
![]()

![]()
Consult
the following link to a summary of the next book on computer simulation
by Stanislaw Raczynski:
Link to the book summary
Vehicle dynamics simulation:
CarDyns
program
Get the C++ source code for queuing simulation:
CQM - C source code generator for queuing models
Low cost system dynamics simulation:
SimBall
program
New version of the Fluids program:
Fluids5
- fluid dynamics simulation
Easy predictor: PredictHIT http://www.raczynski.com/pn/predict.htm
Recommended links:
Some
(free) articles on simulation http://www.raczynski.com/art/artyk1.html
PASION Simulation System http://www.raczynski.com/pn/pn.htm
Simulation
Encyclopedia http://www.raczynski.com/pn/encyk.htm
Queuing
Model Simulator http://www.raczynski.com/pn/qms.htm
(NOTE
that QMS now has an animator. Low cost, ideal for class)
We strongly recommend the following:
All Of Your Software Needs @ SoftwareStore.com!
Simulation of sampled data systems : digital control systems with "sample-and-hold" elelments. Details in Simulation section
PLATFORM: PC min 64KRAM, 256K and a fast machine recommended. Windows 98 or later, NT or XP.
|
How
to buy it: Secure order form
|
Optimal settings of the Proportional-Integral-Derivative controller PIDS program The
PIDS program calculates the PID controller settings and simulates the close-loop control system
Figure 1. Set
point - the desired value of the controlled variable X The main simulation procedure was generated using the Signal Flow module of the PASION Simulation System. There are two parts of the program: 1. ZIEGLER-NICHOLS settings (a practical way to find the controller tunning) 2. Optimal settings with integral optimization criteria (more "academic" way to find optimal controller settings)
PART 1 Ziegler-Nichols methods The two Ziegler-Nichols (Z-N) methods are implemented. Using the first method you must provide the rpocess reaction rate and the equivalent time delay. The program calculates the Z-N tunning for the proportional, PI or PID controllers. The controller can have the anti-windup feature to avoid the saturation of the integral part. Then, the process transfer function is being estimated, supposing it is a second order process with time delay. This transfer function is used to simulate the open loop process response and the closed loop response with Z-N tunning. You can verify if the controller is working as expected, and then change the settings and repeat the simulation. The project data and results can be stored in a file, retrieved and editted. Using the second Z-N method, you provide the "ultimate period" and the "ultimate gain". Recall that those are the parameters of the closed loop oscillations at the limit of stability. The rest is done as for the first Z-N method, described above. In the Z-N methods the measurement instrument is supposed to be a part of the process (the block is supposed to have gain 1). The following figure shows en example of PIDS program output for the settings obtained by the first Z-N method.
PART 2 Integral optimization criteria Controlled
process The PIDS program supports controlled processes
that are linear and are given by a transfer function of up to fifth
order, with or without additional time delay. The time delay is
introduced as a separate block. Only the delay value is necessary to
define it. The
controller type can be: Proportional, given by its gain The controller may have limitted output. This means that a saturation can be defined at the controller output. If so, the whole system becomes non-linear. Optimization
procedure The
PIDS program can be used to simulate the control system with given user
settings or to optimize the settings according to certain optimization
criteria. The program supports some typical integral criteria, all of
them being related to the control error in response to a step function
applied to the system input (set point). The criteria are as follows. ITQE - The Integral of Time per Cuadratic Error IQE - The Integral of Quadratic Error IAE - The Integral of Absolute Error An Example Consider a temperature control system. The controlled process is a small electric heater. The time unit for the whole system is one minute. The input to the process is a volage sent by the PID controller. Suppose that the powel amplifier has no inertia and that it is included in the process block. The total static gain of the process (including the amplifier) is equal to 60 degree C/volt. The process dynamics is approximated by a third order transfer function with additional delay of 0.2 min. So, the whole transfer function of the process is as follows
As
for the measurement channel, suppose that we use a thermoresistor with
corresponding signal conditioner, which overall gain (sensor and the
circuit) is equal to 0.003 Volts/degree C. The sensor time-constant is
equal to 0.3 min. So,
the total static gain of the feedback loop excluding the controller is
equal to 0.18. To make this gain equal to one, we would need the
controller with gain 5.55. Suppose that our initial settings make the
total feedback gain slightly greater than one, the controller gain being
equal to 7. Let set the integration time and derivative action
coefficient equal to 2 and 0.1, respectively. To avoid big signals in
the case if instability and to take into account some physical
limitations, we set the controller upper saturation limit to 10 and the
lower limit to -10. You will see that with the above user settings the system is unstable. The following figure shows the growing oscillations of the controlled value (temperature). Note that our controlled process is lineal, and it can reach positive as well negative output values. Physically, this means that the process includes a heater and a cooler, and that both operation modes (heating and cooling) have the same dynamic properties.
Now, let us request the ITAE optimization procedure. The optimization procedure finds controller settings that stabilize the process and minimize ITAE. First, the global rough solution is found by a random search. Then, the settings are refined with the non-gradient Powell optimization algorithm. The optimization progress is shown for the controlled variable. The following plot is the temperature response of the whole system with controller settings near to optimal ones (after calculating 1065 trajectories). The optimal controller settings are also shown.
Contact: Stanislaw Raczynski stanracz@prodigy.net.mx How to buy it: Secure order form |
.
Using the FLOWD
module of the PASION simulation system you can simulate control systems
described by block diagrams or signal flow diagrams. The blocks or the links of
the corresponding signal flow diagram can be as follows.
Linear link (gain)
Nonlinear (includes switching controllers or any other non-linearity)
Dynamic, given by a transfer function
Time delay
Integrator
PID controller
Sampler (Sample-and-hold)
Superlink (a sub-model prepared earlier)
You draw the system structure, give the necessary parameters, and the rest is done automatically. The software generates the model equations, the PASION source code, translates it to the Delphi Pascal, invokes the Delphi comiler and runs the simulation. For more information consult http://www.raczynski.com/pn/pn.htm
Note that we can
do customized simulations
for you. Contact us at
Use this button to buy PID Controller Settings program. Only US $ 18.
What follows: When your payment is accepted, we receive a copy of the receipt. Then, we send to you the download and installation instructions by e-mail. If this does not happen the next few hours, please send us a message. Please provide an alternate e-mail address, sometimes we cannot communicate (bad anti-spam or other restrictions).