Translate change of length to force in hanging chain problem

Click For Summary
SUMMARY

The discussion focuses on translating changes in length between nodes in a hanging chain simulation using Blender Python into force measurements. The user is attempting to calculate the normal force acting on nodes, particularly under the influence of gravity, which totals 900 Newtons for the entire chain. They seek to understand the distribution of this force and how it correlates with node movement, emphasizing the importance of vertical tension force components balancing gravity in static scenarios. The user also shares a code snippet that calculates forces based on link length and strength, indicating a need for clarity on summing forces across links.

PREREQUISITES
  • Understanding of Blender Python scripting
  • Knowledge of cloth simulation principles in Blender
  • Familiarity with basic physics concepts, particularly forces and tension
  • Experience with vector mathematics and operations
NEXT STEPS
  • Research "Blender Python scripting for cloth simulation"
  • Learn about "normal force calculations in physics"
  • Investigate "force summation techniques in particle simulations"
  • Explore "Blender's API for manipulating vertex coordinates"
USEFUL FOR

This discussion is beneficial for game developers, simulation engineers, and anyone interested in implementing realistic physics in Blender, particularly those working with cloth simulations and force calculations.

cm85
Messages
2
Reaction score
0
I'm trying to write a simple script in blender python in order to show load deflection in cloth simulation. My question is: Is it possible to translate the change of length (distance between two nodes), into a force? (Newton between those nodes)?

In addition you will find a minimal example. The chain is created with blender-cloth. Let's assume that each node is dragged down by gravity with 100 Newton. This are 900 Newton overall, right? How would the distribution of force look like? (I'm no structural engineer) There is a correlation between movement and force, even if we would assume same link-strength for everything, isn't it? I'm interested in normal-force only. I could also work with the velocity of links also.

Thank's in advance!
 

Attachments

  • chain.png
    chain.png
    41.2 KB · Views: 464
Physics news on Phys.org
cm85 said:
There is a correlation between movement and force
Acceleration and force.

cm85 said:
I'm interested in normal-force only.
What's normal force here? The vertical tension force components must balance gravity in the static case.
 
  • Like
Likes   Reactions: cm85
Thank you very much for your fast reply.

Maybe i have made a wrong approach from the beginning on. Here is another way from scratch based on various processing-sketechs. It's a simple particle simulation which is adding a value to the z-coordinate of each particle as well as the velocity of the next neighbors. It is based on a pseudo-code i have found and a lot of trial and error. I don't know if this is correct or not.

The import section is this one:

# force of links
v_1 = self.next_1.vertex.co - self.vertex.co
strength = (v_1.length - link_length) * link_strength
v_1 = v_1 * strength

v_2 = self.next_2.vertex.co - self.vertex.co
strength = (v_2.length - link_length) * link_strength
v_2 = v_2 * strength

self.vertex.co = self.vertex.co + v_1 + v_2

How could i sum up the forces in order to get the force of each link?
 

Attachments

Last edited:

Similar threads

Replies
3
Views
2K
Replies
3
Views
6K
  • · Replies 44 ·
2
Replies
44
Views
6K
Replies
2
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K