How Can MATLAB Simulate Particle Motion in a 3D Vector Field?

Click For Summary
The discussion focuses on simulating particle motion within a 3D vector field representing wind vectors. The goal is to model a particle's trajectory as it interacts with the forces in this vector field, starting from a specific point. The user is developing MATLAB code to calculate the forces acting on the particle and establish a resultant force vector for its movement. Key equations include a system of ordinary differential equations (ODEs) that describe the particle's position and velocity, incorporating factors like air resistance and gravitational acceleration. Suggestions emphasize the need for numerical solutions in MATLAB and potential interpolation methods to determine wind velocities at specific points.
PropulsionMan
Messages
3
Reaction score
0
So, this is going to be pretty hard for me to explain, or try to detail out since I only think I know what I'm asking, but I could be asking it with bad wording, so please bear with me and ask questions if need-be.

Currently I have a 3D vector field that's being plotted which corresponds to 40 levels of wind vectors in a 3D space (obviously). These are plotted in 3D levels and then stacked on top of each other using a dummy altitude for now (we're debating how to go about pressure altitude conversion most accurately--not to worry here). The goal is to start at a point within the vector space, modeling that point as a particle that can experience physics, and iteratively go through the vector field reacting to the forces, thus creating a trajectory of sorts through the vector field.

Currently what I'm trying to do is whip up code that would allow me to to start a point within this field and calculate the forces that the particle would feel at that point and then establish a resultant force vector that would indicate the next path of movement throughout the vector space.

Right now I'm stuck in the theoretical aspects of the code, as I'm trying to think through how the particle would feel vectors at a distance.

Any suggestions on ways to attack this problem within MatLab or relevant equations to use?

pqN7j.jpg
 
Physics news on Phys.org
I would solve a 6-dimensional system of ODEs for the position \vec x(t) of the particle (which accounts for three of the dimensions) and its velocity \vec v(t) (which accounts for the other three dimensions). By definition we have
<br /> \frac{d \vec x}{dt} = \vec v<br />
and the equation of motion is then
<br /> m\frac{d \vec v}{dt} = -k(\vec x)\left\|\vec v - \vec u(\vec x)\right\|\left(\vec v - \vec u(\vec x)\right) + m \vec g<br />
where m is the particle's mass, k &gt; 0 a coefficient which will depend on the size and shape of the particle and conceivably also on air pressure and thus altitude, \vec u the wind velocity and \vec g = g(0,0,-1) is the gravitational acceleration.

The idea is that air resistance should be proportional to the square of the velocity of the particle relative to the air, and in the direction opposite to the relative velocity.

MATLAB should be fully capable of solving this system numerically given the initial position and velocity of the particle. You may end up having to interpolate to find the wind velocity at \vec x from your data.
 
  • Like
Likes 1 person
Thread 'Correct statement about size of wire to produce larger extension'
The answer is (B) but I don't really understand why. Based on formula of Young Modulus: $$x=\frac{FL}{AE}$$ The second wire made of the same material so it means they have same Young Modulus. Larger extension means larger value of ##x## so to get larger value of ##x## we can increase ##F## and ##L## and decrease ##A## I am not sure whether there is change in ##F## for first and second wire so I will just assume ##F## does not change. It leaves (B) and (C) as possible options so why is (C)...

Similar threads

Replies
13
Views
2K
Replies
9
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
16
Views
1K
Replies
3
Views
1K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 73 ·
3
Replies
73
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K