Simulating inter-connected springs/beams

  • Thread starter Alkatran
  • Start date
In summary, the conversation discusses a program that simulates a system of connected springs and nodes. The problem is that the current method of calculating forces leads to an overestimation of energy, which can be solved by dampening the springs. However, the main issue lies in the stepwise approach used in the simulation, which can cause errors and deviate from the actual behavior of the system. Possible solutions include reducing the step size or finding a more accurate midpoint value.
  • #1
Alkatran
Science Advisor
Homework Helper
959
0
I've been writing a simple program to simulate what is essentially a bunch of springs connected together at nodes. However, I'm having trouble.

Currently I just calculate instantaneous force for every spring/node, step ahead a fixed amount, and repeat. The problem is this tends to overestimate and I end up with a the whole system gaining a ton of energy unless I dampen the springs by a large factor.

What is the next step up for this type of thing?
 
Technology news on Phys.org
  • #2
It sounds like stepwise recalculations (possibly coupled with rounding errors on floating point numbers) are causing the problem. One kludge is to add up the total energy after each iteration and, if it has increased from the previous total, do a second pass to reduce all forces proportionately. This will solve the problem of creeping energy increase directly.

Of course the main problem is the stepwise approach used in the simulation. The errors introduced by these approximations will cause total energy to change and they will also cause the model's behavior to deviate from an actual device's. The simplest solution is to reduce the size of each step to minimize the "staircase approximation" of the curves that are being modeled. Another solution is to find a better, more accurate midpoint value at each iteration, but this is not a programmatic problem, it takes some analysis of your model to find out what is best.
 
  • #3


One potential solution to your problem could be to incorporate a damping factor into your simulation. Damping is a force that opposes the motion of the springs, and it can help to reduce the amount of energy that is gained in the system. You can also try adjusting the stiffness of the springs to see if that helps with the overestimation issue.

Another approach could be to use a more advanced simulation method, such as a numerical integration technique like Runge-Kutta or Verlet, which can be more accurate and stable for simulating interconnected systems. These methods take into account the acceleration and velocity of each spring/node, rather than just calculating instantaneous force.

Additionally, you may want to consider adding constraints to your simulation to mimic real-world conditions. For example, if your springs are connected to a fixed point, you can use a fixed constraint to prevent them from gaining excessive energy.

Overall, it may take some trial and error to find the best approach for your specific simulation, but incorporating damping, using a more advanced simulation method, and adding constraints can all help to improve the accuracy and stability of your simulation.
 

1. What is the purpose of simulating inter-connected springs/beams?

The purpose of simulating inter-connected springs/beams is to understand the behavior and dynamics of a system of interconnected springs and beams. This can help in the design and analysis of real-world structures, such as bridges and buildings, as well as in the development of new materials and technologies.

2. How are inter-connected springs/beams simulated?

Inter-connected springs/beams can be simulated using computer software, such as finite element analysis (FEA) programs. These programs use mathematical equations and algorithms to model the behavior of the system under different conditions and loads. The simulation results can then be visualized and analyzed to gain insights into the system's behavior.

3. What factors are considered in simulating inter-connected springs/beams?

Factors such as material properties, geometry, boundary conditions, and applied loads are considered in simulating inter-connected springs/beams. The stiffness, strength, and damping characteristics of the materials used, as well as the shape and size of the components, can greatly affect the behavior of the system.

4. What are the limitations of simulating inter-connected springs/beams?

Simulating inter-connected springs/beams can be a complex and time-consuming process, and the accuracy of the results depends on the assumptions and simplifications made in the simulation model. Additionally, simulation results may not always match real-world behavior due to factors such as material variability and unforeseen external influences.

5. How can the results of simulating inter-connected springs/beams be used?

The results of simulating inter-connected springs/beams can be used to optimize the design of structures and materials, identify potential failure points, and predict the behavior of the system under different conditions. This information can help engineers and scientists make informed decisions in the design and development process.

Similar threads

  • Programming and Computer Science
Replies
14
Views
3K
  • Mechanical Engineering
Replies
3
Views
2K
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
Replies
1
Views
2K
  • STEM Academic Advising
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
5K
Replies
4
Views
2K
Replies
1
Views
578
  • Mechanical Engineering
Replies
23
Views
36K
Back
Top