- Timestamp:
- 11/27/08 23:32:45 (16 years ago)
- Location:
- pmsm
- Files:
-
- 1 added
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pmsm/CMakeLists.txt
r117 r215 37 37 target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) 38 38 39 add_executable (sim sim.cpp) 40 target_link_libraries (sim ${BdmLibs} pmsmsim) 39 41 add_executable (sim_var sim_var.cpp) 40 42 target_link_libraries (sim_var ${BdmLibs} pmsmsim) -
pmsm/pmsm_sim.cpp
r170 r215 38 38 double h = 1e-6; 39 39 int Nsimstep = 125; 40 int Npart = 1 000;40 int Npart = 1; 41 41 42 42 // internal model -
pmsm/sim_profiles.h
r119 r215 63 63 if (!load) x[8]=0.0; 64 64 } 65 66 void sim_profile_2slowrevs(double &Ww,bool load=false) { 67 static int k_rampa=1; 68 69 if ((t>0.2)&&(t<0.8)) { 70 if ((t>0.4)&&(t<0.7)) 71 Ww+=k_rampa*2.*M_PI*4e-5; //1000Hz/s 72 else 73 Ww-=k_rampa*2.*M_PI*4e-5; //1000Hz/s 74 } 75 76 if (!load) x[8]=0.0; 77 }