+ All Categories
Home > Documents > Computational Dynamics edited

Computational Dynamics edited

Date post: 26-Jan-2017
Category:
Upload: jesan-morales-holguin
View: 20 times
Download: 0 times
Share this document with a friend
63
COMPUTATIONAL DYNAMICS Jesan Morales ME 195 Supervised by Dr. Goyal University of California Merced Dec 22 2013
Transcript
Page 1: Computational Dynamics edited

COMPUTATIONAL DYNAMICS

Jesan MoralesME 195

Supervised by Dr. GoyalUniversity of California Merced

Dec 22 2013

Page 2: Computational Dynamics edited

Pendulum problem• Forward Euler Method • Simulink• Linear Statespace • Backward Euler • Newton methodParticle problem• Euler methods• Newton method• Non-linear Statespace• Generalized Alpha methodStatic Rod Model

Overview

Page 3: Computational Dynamics edited

Pendulum problem

�̈�=−𝑔𝐿 sin (𝜃)

𝑭𝒊𝒏𝒅 𝒕𝒉𝒆 𝒇𝒖𝒄𝒕𝒊𝒐𝒏Ѳ

Figure 1. Pendulum.

Page 4: Computational Dynamics edited

Forward Euler Method

𝑦 𝑖+1=𝑦 𝑖+ �̇� 𝑖h

�̇� 𝑖+1= �̇� 𝑖+ �̈� 𝑖h

Graph 1…

=.2

Page 5: Computational Dynamics edited

Step size

• The step size h was increased to h=0.002 Smoother and no speed loss

Graph 2…

Page 6: Computational Dynamics edited

Simulink

Figure 2. Simulink model.

Page 7: Computational Dynamics edited

Simulink Statespace

[ �̇�1�̇�2]=[ 0 1−𝑔𝑙 0 ] [𝑥1𝑥2]+[00][𝑢1𝑢2]

y+0

Page 8: Computational Dynamics edited

Comparing error with different methodshold on• plot(time,theta,'r'); >>>>>>>>>>>>>>>>>>>>>> euler• plot(timesimulink,pendulumsimulink,'g');>>>> Simulink• plot(time,real,'b');>>>>>>>>>>>>>>>>>>>>>>>> by hand• plot(timesimulink,Statespace,‘dot'); >>>>>>> state space

Graph 4. Method Comparison Graph 5. Method comparison (close-up)

Page 9: Computational Dynamics edited

Particle problem• A particle is traveling with an acceleration described with this

non-linear second order differential equation = The initial conditions of (0) = 0 and y(0)=0.2 are given

• Find the position of the particle at any given time t

Figure 3. www.wpclipart.com

Page 10: Computational Dynamics edited

Damping

Graph 6.Damping. www.splung.com

Page 11: Computational Dynamics edited

Damping

• Critical damping (ζ = 1)

• Over-damping (ζ > 1)

• Under-damping (0 ≤ ζ < 1)

==.034021

• Under-damped}

Page 12: Computational Dynamics edited

Under-Damped

Graph 7. Underdamped Oscillations. http://commons.wikimedia.org

Page 13: Computational Dynamics edited

Forward Euler Method

Image 4. Forward Euler Method

Page 14: Computational Dynamics edited

Forward Euler MethodResults : h=2

Graph 8. Step 2

Page 15: Computational Dynamics edited

Forward Euler Methodh=1

Graph 9. Step 1

Page 16: Computational Dynamics edited

h=.02

Results (cont.) h=0.2

Forward Euler Method

Graph 10.Step 0.2

Page 17: Computational Dynamics edited

Results (Cont.) h= 0.02

Forward Euler Method

Graph 11. Step 0.02

Page 18: Computational Dynamics edited

Results (cont.) h= 0 .002

Forward Euler Method

Graph 12. Step 0.002

Page 19: Computational Dynamics edited

Forward Euler MethodResults (cont.) h= 0 .002

Graph 13. Step 0.002 Zoomed-out

Page 20: Computational Dynamics edited

Backwards Euler method

Page 21: Computational Dynamics edited

Backwards Euler Method (cont.)

Page 22: Computational Dynamics edited

Newton Method f(x) = f’(x)=

• Guess a value of Iterate with a tolerance of

Page 23: Computational Dynamics edited

Symbolic vs. Discretize • Symbolic functions

• Takes about 5 minutes

• Anonymous functions• About 20 seconds

• Discretized • Takes a few seconds

Graph 12.

Page 24: Computational Dynamics edited

Non-Linear Statespace

y’’ =( -y’/3 - 8sin(y) +.2)/3

Page 25: Computational Dynamics edited

Euler Statespace

• g(x)==

Page 26: Computational Dynamics edited

Euler Statespace• g’(x)=• g’(x)=

Page 27: Computational Dynamics edited

General Alpha Method

Page 28: Computational Dynamics edited

Euler Statespace

Image 5. Euler Satespace h=.002

Page 29: Computational Dynamics edited

General Alpha Method (cont.)

• =

Page 30: Computational Dynamics edited

Non-Linear Statespace

y’’ =( -y’/3 - 8sin(y) +.2)/3

f(x)=

Page 31: Computational Dynamics edited

General Alpha Method (Cont.)g(x)=

=

Page 32: Computational Dynamics edited

General Alpha Method (Cont.)

Page 33: Computational Dynamics edited

Newton with General Alpha Method

• h=.001

Image 6.Newton with General Alpha Method

Page 34: Computational Dynamics edited

Different

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Graph 14. Different .

Page 35: Computational Dynamics edited

General Alpha Method

Graph 15. Generalized Alpha Method

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Page 36: Computational Dynamics edited

Origin error

Graph 17. Origin Error

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Jesan
Is this from the alpha method??
Page 37: Computational Dynamics edited

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Page 38: Computational Dynamics edited

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Jesan
menton what method is and in th esecond heading say that is a zoomed out so is more clear and follows pattern of presentation this would be graph 19... font size 10
Page 39: Computational Dynamics edited

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Jesan
label graph and same add heading and subheadingthis wold be graph graph 18... font size 10
Page 40: Computational Dynamics edited

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Jesan
label graph and same add heading and subheadingthis wold be graph graph 19... font size 10
Page 41: Computational Dynamics edited

Step h= 0.001

(

Magenta = (0.5, 0.5, 0.5)

Red = (0.3, 0.1, 0.3)

Jesan
label graph and same add heading and subheadingthis wold be graph graph 20... font size 10
Page 42: Computational Dynamics edited

General Alpha methodThe second-order accuracy for the generalized-α method requires

• Unconditionally stable

Page 43: Computational Dynamics edited

General Alpha method

Page 44: Computational Dynamics edited

Forward Euler and Generalized Alpha Method

• If 0

• and

Page 45: Computational Dynamics edited

Forward Euler and Generalized Alpha Method

• If and • Then • Therefore it is not second order accurate

• Since

• Is not true then it is not unconditionally stable

Page 46: Computational Dynamics edited

Backward Euler and Generalized Alpha Method

• If

• and if

Page 47: Computational Dynamics edited

Backward Euler and Generalized Alpha Method

• If and • Then • Therefore it is not second order accurate• If • Then is satisfied and

• Backward Euler is unconditionally stable

Page 48: Computational Dynamics edited

Static Rod Model

• The following equation describe the rod model

• Non-linear differential equations govern the formation of the beam and lead to loop deformation

Image 6.

Page 49: Computational Dynamics edited

• These equation represent the following system• Where s is along the rod• Unshearable and inextensible

Image 7.

Page 50: Computational Dynamics edited

Vectors

• Internal force along the cross section fixed reference

• Moment vector applied to the cross section

• Curvature third component is twist

Page 51: Computational Dynamics edited

Constitutive Relationship

• These equations show the relationship between the moment and the curvature which will be helpful in solving for the linear and non-linear equations:

Page 52: Computational Dynamics edited

Pure Torsion

Image 8. Pure Torsion

Page 53: Computational Dynamics edited

Pure Moment

Image 9. Pure Moment

Page 54: Computational Dynamics edited

Pure Shear Force

Image 10. Pure Shear Force

Page 55: Computational Dynamics edited

All Applied Equally

Image 11. All applied equally

Page 56: Computational Dynamics edited

Static Rod Model• Here are the step taken to derive the equations.

• Linearized equations about :

X= >>>>>>> =X= >>>>>>> =

Page 57: Computational Dynamics edited

Linear Rod Model=

=

Page 58: Computational Dynamics edited

Static Rod Model

Page 59: Computational Dynamics edited

Static Rod Model• ,

Page 60: Computational Dynamics edited

Static Rod Model

Page 61: Computational Dynamics edited

Linear Rod Model

Page 62: Computational Dynamics edited

Results•

Page 63: Computational Dynamics edited

Thank you for your timeAny Questions?


Recommended