Changeset 1292 for applications/pmsm/testbidiff.cpp
- Timestamp:
- 03/14/11 09:32:19 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/testbidiff.cpp
r654 r1292 12 12 int main() 13 13 { 14 vec x0 = "1 00 120 100 2";14 vec x0 = "1 2 10 0"; 15 15 vec u0 = "1 1"; 16 16 double h=1e-6; 17 17 18 IMpmsm I;19 I.set_parameters ( 0.28, 0.003465, h, 0.1989, 1.5 ,4.0, 0.04, 0.0 );18 IMpmsmDQ I; 19 I.set_parameters ( 0.28, 0.003465, 0.003, h, 0.1989, 1.5 ,4.0, 0.04, 0.0 ); 20 20 21 21 vec x(x0); x(0) += h; 22 cout << I.eval(x,u0) << ", " << I.eval(x0,u0) <<endl<<endl; 23 22 24 cout << (I.eval(x,u0)-I.eval(x0,u0))/h <<endl; 23 25 x=x0; x(1) += h;