Commit Graph
100 Commits
Author SHA1 Message Date
Xuchen Han 270028363b Fix some performance issues caused by unneccessarily small sdf grid size. 2019-10-24 15:03:23 -07:00
Xuchen Han c6af3aa3f8 fix bug in deformable vs. deformable friction 2019-10-23 12:17:21 -07:00
Xuchen Han 36f7441790 support anchor constraint between deformable and multibody 2019-10-17 16:45:28 -07:00
Xuchen Han 60dfe1fe69 add support for anchor constraint between deformable and rigid 2019-10-16 19:23:01 -07:00
Xuchen Han 3d622a3bee enable deformable sleeping 2019-10-16 12:00:02 -07:00
Xuchen Han 3ae193ff15 bool->int 2019-10-15 15:43:26 -07:00
Xuchen Han 774937bcd6 add option to turn face contact on/off 2019-10-15 13:53:27 -07:00
Xuchen Han 05c25a27de address comment from ldowns 2019-10-15 13:51:33 -07:00
Xuchen Han a1afc66817 remove std::fabs and std::max 2019-10-15 13:51:33 -07:00
Xuchen Han 30238b2fbc remove std::copysign 2019-10-15 13:51:33 -07:00
Xuchen Han a7222d8a9f add option to set stress clamping limit 2019-10-15 13:51:33 -07:00
Xuchen Han 9e29f7108d remove Eigen 2019-10-15 13:50:13 -07:00
Xuchen Han 9546390fd6 clamp stress for NeoHookean in singular value space 2019-10-15 13:50:13 -07:00
Xuchen Han e87df18544 switch to damping model from Irvine 05 for its SPDness 2019-10-15 13:50:13 -07:00
Xuchen Han 87546bb7c3 prevent velocity of deformable from getting too big from explicit force 2019-10-15 13:50:13 -07:00
Xuchen Han 45c4497711 fix compile 2019-10-15 13:50:13 -07:00
Xuchen Han 0d742273c1 set default drag coefficient to 0 2019-10-15 13:50:13 -07:00
Xuchen Han 992e1454b6 turn on SKIP_DEFORMABLE 2019-10-15 13:50:13 -07:00
Xuchen Han 25a566c378 finish deformable sleeping and add option for drag 2019-10-15 13:50:13 -07:00
Xuchen Han 0d7ff567e6 bug fix in deformable predict motion 2019-10-15 13:50:13 -07:00
Xuchen Han c808bb78c7 delete lagrangian force when deleting dynamics world from command processor 2019-10-15 13:50:13 -07:00
Xuchen Han 58a67f82fb set default integration scheme to explicit 2019-10-15 13:50:13 -07:00
Xuchen Han 94facf0029 typo fix 2019-10-15 13:50:13 -07:00
Xuchen Han ca92cf067e fix removeCollisionObject for Deformable world 2019-10-15 13:50:12 -07:00
Xuchen Han 3b945597d1 prevent narrow phase collision detection between rigid and soft when both are sleeping 2019-10-15 13:50:12 -07:00
Xuchen Han c610ba49df fix bug in computing rhs in momentum solve 2019-10-15 13:47:55 -07:00
Xuchen Han 5a55374d85 pass render nodes instead of simulated nodes to renderer 2019-10-01 14:48:34 -07:00
Xuchen Han 96bf2f2ff5 address PR comments 2019-10-01 14:47:49 -07:00
Xuchen Han 187019268c enable deformable vs. deformable and self-collision in deformable loading 2019-09-28 15:10:06 -07:00
Xuchen Han 2d045de589 parameter change in ClothFriction Demo 2019-09-28 14:44:42 -07:00
Xuchen Han 132f7fe751 update pybullet binding 2019-09-28 14:44:42 -07:00
Xuchen Han 212b990b0e remove auto and add include 2019-09-28 14:44:42 -07:00
Xuchen Han 9f11ac5d4d add include 2019-09-28 14:44:42 -07:00
Xuchen Han 11ad0f0dfd add btMatrix3x3 constructor from vectors 2019-09-28 14:44:42 -07:00
Xuchen Han c178905998 remove siData 2019-09-28 14:44:42 -07:00
Xuchen Han ccaddfca21 documentation and optimization 2019-09-28 14:44:42 -07:00
Xuchen Han a0acfd5195 code clean up and optimization 2019-09-28 14:44:42 -07:00
Xuchen Han 977bdb4e0e adjust parameters 2019-09-28 14:44:41 -07:00
Xuchen Han cb46440e17 add normal cone optimization for self-collision 2019-09-28 14:44:41 -07:00
Xuchen Han 657a7468b3 documentation and optimization 2019-09-28 14:44:41 -07:00
Xuchen Han 20abbc9ee7 add dynamic friction for deformable contact 2019-09-28 14:44:41 -07:00
Xuchen Han 416e516735 add naive implementation of self collision 2019-09-28 14:44:41 -07:00
Xuchen Han be7383cc03 update examples to test different time stepping schemes (namely explicit, implicit and implicit with line search)/ 2019-09-28 14:44:41 -07:00
Xuchen Han 2f9184acc9 remove position correction 2019-09-28 14:44:41 -07:00
Xuchen Han ef5aa6e73b add options to toggle between whether line search is used & add more documentation 2019-09-28 14:44:41 -07:00
Xuchen Han 0501fe1bbd add cloth demo to show deformable friction 2019-09-28 14:44:41 -07:00
Xuchen Han 55ebafc755 add demo to test soft body friction 2019-09-28 14:44:41 -07:00
Xuchen Han cca220eb27 add damping energy to mass spring 2019-09-28 14:44:41 -07:00
Xuchen Han d761b2cd68 add some documentation 2019-09-28 14:44:41 -07:00
Xuchen Han ae42cc561e add damping energy in line search 2019-09-28 14:44:41 -07:00
Xuchen Han 3dcfcda19a typo fix 2019-09-28 14:44:41 -07:00
Xuchen Han a92a8f1135 add demo for deformable contact 2019-09-28 14:44:41 -07:00
Xuchen Han 1bfb226be8 add support for deformable vs. deformable contact 2019-09-28 14:44:41 -07:00
Xuchen Han 403eb62dfa code clean up and optimization 2019-09-28 14:44:41 -07:00
Xuchen Han 109d9353af switched to deformable rigid contact from Jacobi to Gauss Seidel 2019-09-28 14:44:41 -07:00
Xuchen Han f99cf56149 finished refactoring; start adding face contact 2019-09-28 14:44:41 -07:00
Xuchen Han 27bf4d3372 new vtk mesh 2019-09-28 14:43:40 -07:00
Xuchen Han a47eeb8225 add render mesh interpolation from simulation mesh 2019-09-28 14:43:40 -07:00
Xuchen Han 899bf9afd1 update setup.py 2019-09-04 18:55:16 -07:00
Xuchen Han d5afccf3f1 update CMakeLists 2019-09-04 18:49:44 -07:00
Xuchen Han 1965f46959 update CMakeLists 2019-09-04 18:49:44 -07:00
Xuchen Han 1ded85e62e remove extra gravity field 2019-09-04 18:49:44 -07:00
Xuchen Han 3d2f945f9c address PR comments 2019-09-04 18:49:44 -07:00
Xuchen Han 8a08e32f51 update CMakeLists 2019-09-04 18:49:43 -07:00
Xuchen Han 5330396c70 enabled mass preconditioner 2019-09-04 18:49:43 -07:00
Xuchen Han ca3e25d4e2 add Rayleigh damping for NeoHookean 2019-09-04 18:49:43 -07:00
Xuchen Han 7d1b93cc17 contact solve for newton 2019-09-04 18:48:00 -07:00
Xuchen Han 5826492020 add elastic force differential for mass spring 2019-09-04 18:48:00 -07:00
Xuchen Han d4a15e016e add newton solver 2019-09-04 18:48:00 -07:00
Xuchen Han c722630fc7 bug fix in neohookean force 2019-09-04 18:48:00 -07:00
Xuchen Han e73f70efa2 swap m_x and m_q in softbody to align with rendering convention 2019-09-04 18:48:00 -07:00
Xuchen Han 7c39052163 clean up forces 2019-09-04 18:48:00 -07:00
Xuchen Han 908cf69f06 change deformable/multibody solve to be in dv space 2019-08-24 14:58:11 -07:00
Xuchen Han 8b38076376 update license 2019-08-24 12:44:58 -07:00
Xuchen Han b0a91bb306 float->btScalar 2019-08-24 11:55:34 -07:00
Xuchen Han bb4a554e68 bug fix in multibody interpolation world transform: update cached rotation and vector 2019-08-24 11:51:33 -07:00
Xuchen Han f2d8ed71ac float->btScalar 2019-08-23 20:06:41 -07:00
Xuchen Han 6beeac7065 refactor contact solve 2019-08-23 17:32:41 -07:00
Xuchen Han ccd8c3a47c fix scope override in btMultiBody and scalar type inconsistency in btDeformableBodySolver 2019-08-22 10:12:14 -07:00
Xuchen Han 3fbd7a7edd delete forces in exitPhysics 2019-08-21 23:00:18 -07:00
Xuchen Han b93c3c56ed delete preconditioner in destructor 2019-08-21 22:44:10 -07:00
Xuchen Han 750ff33f26 remove the std::istream version of vtkfileread 2019-08-21 22:39:07 -07:00
Xuchen Han 4df31305a8 remove iostream dependency 2019-08-21 22:31:30 -07:00
Xuchen Han 75d0cfaf69 restore default voxelsz and add option to change voxelsz 2019-08-21 22:29:53 -07:00
Xuchen Han 4e1c1a30a7 remove world dependency from btDeformableBodySolver,btDeformableBackwardEulerObjective, and btCGProjection; reduce invasion into multibody world, all chnages are cosmetic now 2019-08-21 22:17:46 -07:00
Xuchen Han f33532273a sync interpolationTransform for multibody in integrateTransform; revert changes to voxel size in sparseSDF 2019-08-21 16:03:54 -07:00
Xuchen Han 076c8b11df revert the changes to damping of multibody external forces 2019-08-20 18:13:38 -07:00
Xuchen Han fadf6aa612 prevent division by zero in mass spring 2019-08-20 16:26:19 -07:00
Xuchen Han 7e971d9f63 safe guard against NaN in dv after CG solve 2019-08-20 11:12:36 -07:00
Xuchen Han 76d37ec475 bug fix in updateDeformation 2019-08-20 10:37:25 -07:00
Xuchen Han 3bf3b66fb7 add method to remove softbody 2019-08-19 19:18:02 -07:00
Xuchen Han ef65d6422b remove CG printf outputs 2019-08-19 17:28:22 -07:00
Xuchen Han 5cdfbf3313 add CMakeLists 2019-08-19 13:09:14 -07:00
Xuchen Han 9f559af2a8 set m_contact_iterations to solverInfo.m_solverIterations 2019-08-19 13:07:26 -07:00
Xuchen Han 9af25430ac update examples to include NeoHookean Model and new damping model 2019-08-19 12:04:10 -07:00
Xuchen Han 44e7c4a96d add stable NeoHookean Model 2019-08-19 12:03:45 -07:00
Xuchen Han 04595961cd add velocity clamp to prevent deformable objects from going too fast 2019-08-19 12:02:57 -07:00
Xuchen Han 54bd93aad2 move deformation update to before explicit force calculation to prevent repetition of F calculation 2019-08-19 11:30:25 -07:00
Xuchen Han 74adce7322 bug fix in momentum conserving damping model for mass spring; update default damping model to momentum conserving one 2019-08-19 11:28:41 -07:00
Xuchen Han 6d4e93d3bf mods for compatibility with older compiler 2019-08-16 14:03:14 -07:00