シミュレーションの演習のコード
GS14のコードを以下に示します。このコードは 20-Sim用です。
GS14のコード
Se parameters real effort = 10.0; variables real flow; equations p.e = effort; flow = p.f; C parameters real c = 0.001; equations state = int(p.f); p.e = state / c; I parameters real cv = 0.005; equations state = int(p.e); p.f = state / cv; RS parameters real R_ref=0.063 {ohm};//electric resistance real alpha=0.3; real T1_ref=0.0 {K}; variables real R {ohm},T1 {K},u {W}; equations R=R_ref*(1+alpha*(T1.T-T1_ref)); u.i=u.u/R; T1.dQ=u.u*u.i; C1 parameters real c = 0.00112; equations state = int(p.f); p.e = state / c; R1 parameters real r = 0.232; equations p.e = r * p.f; R2 parameters real r = 0.232; equations p.e = r * p.f; C2 parameters real c = 0.00112; equations state = int(p.f); p.e = state / c;