Exp1-Mathematical Modeling Using Simulink
Exp1-Mathematical Modeling Using Simulink
Static vs. Dynamic: A dynamic model accounts for time-dependent changes in the state of the
system, while a static (or steady-state) model calculates the system in equilibrium, and thus is time-
invariant. Dynamic models typically are represented by differential equations.
Explicit vs. Implicit: If all of the input parameters of the overall model are known, and the output
parameters can be calculated by a finite series of computations (known as linear programming, not
to be confused with linearity as described above), the model is said to be explicit. But sometimes
it is the output parameters which are known, and the corresponding inputs must be solved for by
an iterative procedure, such as Newton's method (if the model is linear) or Broyden's method (if
non-linear). For example, a jet engine's physical properties such as turbine and nozzle throat areas
can be explicitly calculated given a design thermodynamic cycle (air and fuel flow rates, pressures,
and temperatures) at a specific flight condition and power setting, but the engine's operating cycles
at other flight conditions and power settings cannot be explicitly calculated from the constant
physical properties.
Discrete vs. Continuous: A discrete model treats objects as discrete, such as the particles in
a molecular model or the states in a statistical model; while a continuous model represents the
objects in a continuous manner, such as the velocity field of fluid in pipe flows, temperatures and
stresses in a solid, and electric field that applies continuously over the entire model due to a point
charge.
Deterministic vs. Probabilistic (stochastic): A deterministic model is one in which every set of
variable states is uniquely determined by parameters in the model and by sets of previous states of
these variables; therefore, a deterministic model always performs the same way for a given set of
initial conditions. Conversely, in a stochastic model—usually called a "statistical model"—
randomness is present, and variable states are not described by unique values, but rather
by probability distributions.
Deductive, Inductive, or Floating: A deductive model is a logical structure based on a theory. An
inductive model arises from empirical findings and generalization from them. The floating model
rests on neither theory nor observation, but is merely the invocation of expected structure.
Application of mathematics in social sciences outside of economics has been criticized for
unfounded models. Application of catastrophe theory in science has been characterized as a
floating model.
3. Introduction to Simulink
2. The Library Browser keeps a repository of all the libraries it shows. If your library has missing
repository information, a notification bar appears above the Libraries pane when you refresh
the Library Browser. To prevent this notification from appearing again, click on Fix in the
notification bar and choose Resave libraries in SLX file format. This saves all libraries
in .slx format with Enable LBRepository property set to on. You can also open the Simulink
Library Browser from the MATLAB Toolstrip, by clicking the Simulink
Library button. To keep the Library Browser above all other windows on your
desktop, in the toolbar, select the Stay on topbutton .
where is a square wave with an amplitude of 1 and a frequency of 1 rad/sec, use an integrator
block and a gain block.
The Integrator block integrates its input to produce . Other blocks needed in this model
include a Gain block and a Sum block. To generate a square wave, use a Signal Generator block and
select the Square Wave form but change the default units to radians/sec. Again, view the output using
a Scope block. Gather the blocks and define the gain.
Example .2: Model the differential Equation (Frequency Domain- Transfer Function)
2 (2)
The equation you modeled in this example can also be expressed as a transfer function. The model
uses the Transfer Fcn block, which accepts u as input and outputs .
So, the block implements / . If you substitute for in the above equation, you get
2
Solving for gives
2
Or
1
2
The Transfer Fcn block uses parameters to specify the numerator and denominator coefficients. In
this case, the numerator is 1 and the denominator is s+2. Specify both terms as vectors of coefficients
of successively decreasing powers of s
In this case the numerator is [1] (or just 1) and the denominator is [1 2].
2 3
Where 0 1. 0 0
For the input function is: step, ramp, impulse, sinusoidal