Fitting points from a straight line segment onto a circular segment

Click For Summary
The discussion revolves around simulating the bending of a nanotube segment in 3D space to form a toroidal shape. The user seeks guidance on how to manipulate a set of points representing the nanotube to achieve this bending effect. They inquire whether this process is straightforward and if there are specific operations to apply to each point to simulate the bending accurately.Participants suggest connecting the points using Hooke's law springs, which would allow for the calculation of forces acting on the atoms during the bending process. The user has already developed a simulation that incorporates these principles but is looking to visualize the bending by arranging the carbon atoms along a circular path and determining the resultant forces on each atom. The conversation emphasizes understanding the physics involved and the constraints of the simulation, with a focus on achieving the desired visual outcome rather than adhering strictly to conventional physics simulation practices.
Signifier
Messages
75
Reaction score
0
Hello, I have a problem I need to solve quickly... basically, I have a set of points in 3D space that make up a straight segment of a nanotube, and I want to "bend" the points along a circle (to simulate what happens if you bend a nanotube into a torus). I basically want to do to all of my nanotube segment points what I've indicated in the attached image of points along one straight line.

The problem: I don't know what to do! Is this a relatively simple procedure, or would it be quite a task? Is there a simple operation I can apply to each point (that is say, some distance R from some fixed point and some distance K from some fixed line) that would result in this sort of "central bending" like in the picture?

Any help anyone could provide would be GREATLY, GREATLY appreciated. Thank you!
 

Attachments

  • bending.jpg
    bending.jpg
    3.4 KB · Views: 450
Technology news on Phys.org
What are the forces involved in the bending?

It seems that the points should be connected by hookes law springs. Then it is a matter of solving the diff eq according to the boundary conditions!

I would be happy to help you, using mathematica, if you can better define the goal of the simulation.
 
Sorry for not giving enough info. I have already written a simulation that connects the points by Hooke's law springs (sort of, there's a few more terms in there); now I just want to wrap the vertices of the nanotube around a circle and show the forces acting on certain atoms that result from this bending. I'm using C++ and OpenGL.

I know what I'm doing is physics simulation faux pas, but I just want to see what will happen. (My simul is not animated, either, it just colors each carbon based on the total force acting on the carbon).
 
I know what I'm doing is physics simulation faux pas, but I just want to see what will happen. (My simul is not animated, either, it just colors each carbon based on the total force acting on the carbon).

Not a faux pas, just a constraint!

If I understand correctly, you want to setup the position of the carbons to lie on a circle, and then calculate the net force on each carbon?

But doesn't your hooke-like system of equations give you the force on each carbon as a function of its relative position with all others?
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
17
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 98 ·
4
Replies
98
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K