GithubHelp home page GithubHelp logo

ipc-sim / codim-ipc Goto Github PK

View Code? Open in Web Editor NEW
188.0 11.0 35.0 206.64 MB

Source Codes for Codimensional Incremental Potential Contact (C-IPC)

Home Page: https://ipc-sim.github.io/C-IPC/

License: Apache License 2.0

CMake 3.44% C++ 89.99% Python 6.57%
computer-graphics physically-based-animation optimization strain-limiting continuous-collision-detection cloth-simulation discrete-elastic-rod hair-simulation discrete-shell contact

codim-ipc's People

Contributors

liminchen avatar littlemine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codim-ipc's Issues

Process Mesh with Texture

Hi, thank you for sharing the code! I wonder if there is a way to process and output mesh with texture. If no, how do you render the result with texture? Thank you!

About simulation time

Great job! I'm curious, how long will the code take to run? I've been running the garment simulation code for about half a day, and it's still going!

Run paper examples on GPU

Hello! I'd like to say that what you've accomplish is amazing and this work looks very promising!
Is there a way to run the examples simulation on GPU (cuda)? I use ubuntu and have Nvidia card. Is CPU the only way? Is there a way to speed up things a little bit?

Help with running the simulation

Hi I'm trying to run the simulation, I'm able to run python batch.py, but it does not open a viewer, is that expected?
can you provide more documentation on how to run it with the example projects you provided?

Thank you

cannot download mkl-include and mkl-static

Hello,

Thanks for the great work. It seems, that the mkl-include and mkl-static packages are no longer available at the old urls. Could you update or let me know how to fix this? Thank you very much!

error: downloading 'https://anaconda.org/intel/mkl-include/2021.3.0/download/linux-64/mkl-include-2021.3.0-intel_520.tar.bz2' failed status_code: 22 status_string: "HTTP response code said error"

Meaning of muComp

I was wondering about the meaning of muComp variable. If I understand correctly, mu is used as the coefficient of friction between all objects in the simulation. I don't yet understand what happens when both mu and muComp are set.

For example 6_cloth_on_rotating_sphere.py mu and muComp are set like so:

sim.mu = 0.4
sim.muComp = StdVectorXd([0, 0, sim.mu,  0, 0, sim.mu,  sim.mu, sim.mu, 0.1])

What does the muComp vector mean here and how can we use it?

Infinite loop when 2 shells are contacting?

Hi, here is a test case where I put a card 0.001 meter above a table, with 0 friction and normal gravity. The simulation seems to be stuck after frame 6 in loops of searching for an alpha value. The other simulations parameters and meshes used are the same as those in 8_precision_card_shuffle.py example file. This example can be run in the same way running the original Codim-IPC exmaples.
one_card_above_table.zip

Stacked cards do not stay still when friction is 0?

Hi, I have built 4 test cases of stacked cards. But when the friction is set to 0, they do not work as expected. Without any forces other than gravity, the cards slide or even rotate. Besides, when the gravity is set to 0, the simulations of these test cases do not terminate and keep looping on searching alpha value. Also, the 3D meshes used in my test cases are the same as the meshes used in the file 8_precision_card_shuffle.py, and I am running the latest source code.

I wonder if my test cases are incorrect, there is a bug in the source code, the friction model is not appropriate, or anything else is wrong?

In all my test cases, I set the shells (cards and tables) apart by their thickness plus a 1e-5 offset; so, they are barely touching each other. The 4 test cases are designed as:

  1. one_card_on_table.py: one card on a fixed table. Also, in this case, the simulation seems to be stuck in the loops of searching alpha value after frame 47.
  2. three_cards_on_table.py: 3-card stack on a fixed table.
  3. two_card_stack.py: 2-card stack, the bottom card is fixed.
  4. three_card_stack.py: 3-card stack, the bottom card is fixed.

The code of my test cases is in the attached zip file. They can be run using the same way to run the C-IPC examples.
stacked_cards_tests.zip

Export physical parameters like contact forces

Thank you for this amazing piece of software and for open sourcing it.

I'm planning to use your software in an engineering research context. After playing around with it for a bit I was wondering if there is any way to get contact forces and other values like torques, internal foces, positions and velocities resulting from the simulation with the python bindings. I guess latter two can be calculated from the resulting obj files.

how to visualize simulation process?

Dear author, thank you for opensourcing your excellent work.
How can I visualize the simulation? I see initialize_gui() function in SimulationBase.py. But I am not clear how to show gui. Thank you very much

Illegal instruction (core dumped)

Hi~ when I just ran the "python3 batch.py" in the directory which was ".../Projects/FEMShell". My terminal show me that "Illegal instruction (core dumped)".
QQ20230317-160400

Rod bending question

First, thank you for making this incredible work available publicly. In playing with this a bit to see if it might be useful for a specific application related to our research, it appears that the code assumes that the initial configuration of any rod is straight. For example, if a rod with a curved geometry is imported, a bending stiffness multiplier greater than zero will cause the rod to want to assume a straight orientation. Thus, for an example of a curled hair, there doesn't appear to be a way to define its curled reference configuration as a zero stress state. In other words, you could not deform that hair with a non-zero bending stiffness, release that boundary condition, and then have the hair return to its curled state. It would be wonderful if you could let me know if this a limitation of the current version of this code or am I missing something? Again, thanks for your outstanding contributions to the field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.