Show
Ignore:
Timestamp:
03/14/11 09:32:19 (13 years ago)
Author:
smidl
Message:

model in DQ + test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/testbidiff.cpp

    r654 r1292  
    1212int main() 
    1313{ 
    14         vec x0 = "100 120 100 2"; 
     14        vec x0 = "1 2 10 0"; 
    1515        vec u0 = "1 1"; 
    1616        double h=1e-6; 
    1717         
    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 ); 
    2020         
    2121        vec x(x0);      x(0) += h; 
     22        cout << I.eval(x,u0) << ", " << I.eval(x0,u0) <<endl<<endl; 
     23         
    2224        cout << (I.eval(x,u0)-I.eval(x0,u0))/h <<endl; 
    2325        x=x0;   x(1) += h;