File:Second order transfer function.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(SVG 檔案,表面大小:631 × 356 像素,檔案大小:80 KB)


摘要

描述
English: Step responses for a second order system defined by the transfer function:

where is the damping ratio and is the undamped natural frequency. The equations were obtained from here, plotted using maxima and edited in a text editor to insert the Greek alphabets in the plot. The equations are:

日期
來源 自己的作品
作者 Krishnavedala
Source code using w:python (programming language) with numpy and matplotlib toolboxes
from matplotlib.pyplot import *
from numpy import *

wt = linspace(0,15,100)
b = lambda z: sqrt(1. - z**2)
t = lambda z: arctan(b(z)/z)
h1 = lambda wt,z: 1. - exp(-z*wt)*sin(b(z)*wt+t(z))/b(z)
h2 = lambda wt: 1. - cos(wt)
h3 = lambda wt: 1. - exp(-wt)*(1.+wt)
s1 = lambda z: (z + sqrt(z**2-1.))
s2 = lambda z: (z - sqrt(z**2-1.))
h4 = lambda wt,z: 1. + ( (exp(-s1(z)*wt)/s1(z)) - \
	(exp(-s2(z)*wt)/s2(z)) ) / (2.*sqrt(z**2-1.))

fig = figure(figsize=(8,4))
ax = fig.add_subplot(111)
ax.grid(True)
ax.plot(wt,h2(wt),'g',label=r"undamped $(\zeta=0)$")
ax.plot(wt,h1(wt,.5),'b',label=r"under $(\zeta=0.5)$")
ax.plot(wt,h3(wt),'r',label=r"critical $(\zeta=1.0)$")
ax.plot(wt,h4(wt,1.5),'m',label=r"over $(\zeta=1.5)$")
ax.set_ylim(0,2)
ax.minorticks_on()

leg = ax.legend(frameon=False,handletextpad=.05)
setp(leg.get_texts(),fontsize=10)
ax.set_xlim(0,15)
ax.set_xlabel(r"$\omega t$",fontsize=15)
ax.set_ylabel("Step response",fontsize=12)
fig.savefig("Second_order_transfer_function.svg",bbox_inches="tight",\
	pad_inches=.15)
The maxima source code
beta(zeta) := sqrt(1-zeta^2);
theta(zeta) := atan(beta(zeta)/zeta);
h_under(wt) := 1 - beta(0.5)^-1*exp(-0.5*wt)*sin(wt*beta(.5)+theta(0.5));
h_un(wt) := 1 - cos(wt);
h_crit(wt) := 1 - exp(-wt) * (1+wt);
s1(zeta) := zeta+sqrt(zeta^2-1);
s2(zeta) := zeta-sqrt(zeta^2-1);
h_over(wt) := 1 + ((exp(-s1(1.5)*wt)/s1(1.5))-(exp(-s2(1.5)*wt)/s2(1.5)))/(2*sqrt(1.5^2-1));
load(draw);
draw2d(dimensions=[800,400],terminal=svg,
  user_preamble="set mxtics; set mytics;",
  grid=true, yrange=[0,2], xlabel="omega t",
  line_width=1.5, ylabel="Step response",
  key="under (zeta=0.5)",color=blue,explicit(h_under(wt),wt,0,15),
  key="critical (zeta=1)",color=red,explicit(h_crit(wt),wt,0,15),
  key="over (zeta=1.5)",color=magenta,explicit(h_over(wt),wt,0,15),
  key="undamped (zeta=0)",color=green,explicit(h_un(wt),wt,0,15)
 );

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案來源 Chinese (Taiwan) (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2011年6月7日 (二) 15:57於 2011年6月7日 (二) 15:57 版本的縮圖631 × 356(80 KB)Krishnavedalafigure correction after correcting the equations
2011年5月26日 (四) 19:25於 2011年5月26日 (四) 19:25 版本的縮圖800 × 400(36 KB)Krishnavedalaerroneous under-damped curve corrected.
2011年5月26日 (四) 18:28於 2011年5月26日 (四) 18:28 版本的縮圖800 × 400(36 KB)Krishnavedala

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: