1 %{ 2 3 /* Includes the header in the wrapper code */ 4 #include <cmath> 5 #include <cstdlib> 6 #include "chrono/core/ChApiCE.h" 7 #include "chrono/core/ChMath.h" 8 #include "chrono/serialization/ChArchive.h" 9 #include "chrono/timestepper/ChIntegrable.h" 10 #include "chrono/timestepper/ChState.h" 11 #include "chrono/timestepper/ChTimestepper.h" 12 #include "chrono/timestepper/ChTimestepperHHT.h" 13 #include "chrono/core/ChApiCE.h" 14 #include "chrono/core/ChMath.h" 15 #include "chrono/timestepper/ChState.h" 16 #include "chrono/timestepper/ChIntegrable.h" 17 18 using namespace chrono; 19 %} 20 21 // Tell SWIG about parent class in Python 22 23 /* Parse the header file to generate wrappers */ 24 25 %shared_ptr(chrono::ChIntegrable) 26 %shared_ptr(chrono::ChIntegrableIIorder) 27 %shared_ptr(chrono::ChTimestepper) 28 %shared_ptr(chrono::ChTimestepperIorder) 29 %shared_ptr(chrono::ChTimestepperIIorder) 30 %shared_ptr(chrono::ChTimestepperEulerExpl) 31 %shared_ptr(chrono::ChTimestepperEulerExplIIorder) 32 %shared_ptr(chrono::ChTimestepperEulerSemiImplicit) 33 %shared_ptr(chrono::ChTimestepperRungeKuttaExpl) 34 %shared_ptr(chrono::ChTimestepperHeun) 35 %shared_ptr(chrono::ChTimestepperLeapfrog) 36 %shared_ptr(chrono::ChTimestepperEulerImplicit) 37 %shared_ptr(chrono::ChTimestepperEulerImplicitLinearized) 38 %shared_ptr(chrono::ChTimestepperEulerImplicitProjected) 39 %shared_ptr(chrono::ChTimestepperTrapezoidalLinearized) 40 %shared_ptr(chrono::ChTimestepperTrapezoidalLinearized2) 41 %shared_ptr(chrono::ChTimestepperTrapezoidal) 42 %shared_ptr(chrono::ChTimestepperNewmark) 43 %shared_ptr(chrono::ChTimestepperHHT) 44 %shared_ptr(chrono::ChImplicitIterativeTimestepper) 45 %shared_ptr(chrono::ChImplicitTimestepper) 46 47 %include "../../chrono/timestepper/ChState.h" 48 %include "../../chrono/timestepper/ChIntegrable.h" 49 %include "../../chrono/timestepper/ChTimestepper.h" 50 %include "../../chrono/timestepper/ChTimestepperHHT.h" 51 52 53 54 55 56 57