Simulink Diagram for Solving a Nonlinear Second-Order Differential Equation

  • Thread starter Thread starter theone
  • Start date Start date
  • Tags Tags
    Simulink
Click For Summary

Discussion Overview

The discussion revolves around creating a Simulink diagram to solve a nonlinear second-order differential equation related to a physical system. Participants are exploring the setup of the diagram and the response of the system to different input functions, specifically a unit step function and a unit pulse function.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant presents a nonlinear second-order differential equation and shares their initial attempt at a Simulink diagram.
  • Another participant expresses approval of the diagram but notes a personal preference for arranging the input on the left side.
  • A participant mentions the need to find the response to a unit pulse function and describes an issue encountered when replacing the step function with a pulse generator.
  • There is a question about whether a specific message received during simulation is a warning or an error, with a suggestion to check the simulation step size settings in the model configuration parameters.

Areas of Agreement / Disagreement

Participants generally agree on the validity of the initial diagram but express differing preferences regarding its arrangement. There is an unresolved issue regarding the simulation message, with no consensus on its implications.

Contextual Notes

Participants mention specific settings related to simulation step sizes and solver parameters, but the discussion does not resolve the implications of the simulation message encountered.

Who May Find This Useful

Individuals interested in Simulink applications for solving differential equations, as well as those looking for guidance on simulation configurations and troubleshooting.

theone
Messages
81
Reaction score
0
< Mentor Note -- thread moved to HH from the technical engineering forums, so no HH Template is shown >[/color]

\frac{d^2 \theta}{dx^2}=-\frac{x}{10}\cos \theta - \frac{9.8}{10}\sin \theta

I'm supposed to draw a simulink diagram for this equation and find the response to a unit step function

This is what I did so far but I don't know if its right
http://postimg.org/image/64mm8rjhv/
 
Last edited by a moderator:
Physics news on Phys.org
looks good. typically i like to arrange the block diagram so the input is on the left, but that is just a matter of preference.
 
donpacino said:
looks good. typically i like to arrange the block diagram so the input is on the left, but that is just a matter of preference.

thanks Also, I'm supposed to find the response to a unit pulse function.
But when I replace the step function with a pulse generator and try running, I get this:
"Using a default value of 0.2 for maximum step size. The simulation step size will be equal to or less than this value. You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog"
 
is that a warning or an error.
typically that step size refers to the simulation step size in the solver. Go to simulation;model config parameters and you can change the step sizes. You can also change it from variable to set step sizes, which i typically recommend.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
10K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K