How can I use Matlab to plot forces and velocities from level sets?

  • Thread starter Thread starter EsmeraldaRuiz
  • Start date Start date
  • Tags Tags
    Forces Sets
Click For Summary
SUMMARY

The discussion focuses on using MATLAB to plot forces and velocities derived from level set calculations. The user seeks assistance in verifying their implementation of force calculations, specifically how to derive velocities from forces. The key equations mentioned include v = F/m for calculating velocities in both x and y directions, where F is the force vector and m is the mass of the object. MATLAB's plot function is recommended for visualizing these forces and velocities.

PREREQUISITES
  • Understanding of Newton's second law (F = ma).
  • Familiarity with MATLAB programming and its plotting functions.
  • Basic knowledge of vector components in physics.
  • Concept of level sets in computational physics.
NEXT STEPS
  • Learn how to implement vector calculations in MATLAB.
  • Explore MATLAB's plotting functions for visualizing 2D data.
  • Study the relationship between force, mass, and acceleration in physics.
  • Investigate the application of level sets in fluid dynamics simulations.
USEFUL FOR

Students and professionals in physics, engineering, and computational modeling who are working with MATLAB to analyze forces and velocities in simulations.

EsmeraldaRuiz
Messages
2
Reaction score
0

Homework Statement



Hi, someone could help to draw the forces or the velocities in
matlab to check if they are properly calculated?.



Homework Equations



I am adding the forces like that phi0 = phi0+dt.*force;
so I do not know how to get the velocity.

but I would like to get the velocities from the force
in vx and vy to be able to plot the forces just to
verify my implementation. Thank you

The Attempt at a Solution

 
Physics news on Phys.org
You can use the equation: v = F/m, where m is the mass of the object. Then, you can use the equation for velocity to calculate the velocities in x and y directions. For example, if your force is given as a vector F with components Fx and Fy, then the velocity in x direction will be vx = Fx/m, and the velocity in y direction will be vy = Fy/m. Once you have calculated the velocities, you can use Matlab's plot function to plot the forces and velocities.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K