Simulate movement

Hi everyone,

I’m currently working on a project involving the translation of a complex motion equation into Grasshopper code, and I’m facing a few challenges. I hope some of you could help me clarify these points.

The motion equation I’m trying to translate is m(x) + c(x) + k(x). My first issue lies in the uncertainty about the approach I should take for this translation. I would like to ensure that my method is appropriate and effective.

The second challenge I’m facing concerns the c(x) part, which is the damping coefficient of the two blocks in the equation.

Indeed, I have an idea of how to represent m(x), which is the variable mass of the two blocks, and k(x), which is the stiffness constant between the two blocks.

Any advice, suggestions, or code examples would be greatly appreciated.

Thank you very much! (11.9 KB)

I changed the category of your topic since this is clearly about Kangaroo but I have no clue what you want to simulate

1 Like

Thank you for your kindness. I’m trying to simulate the behavior of a brick wall under earthquake pressure.