Cosmetic changes only.
This commit is contained in:
parent
b3a6f61d75
commit
48463a9d0c
@ -49,21 +49,21 @@ function plotPhaseSpaceWithAccelerationField(obj, MaximumVelocity, NumberOfBins,
|
|||||||
|
|
||||||
%-------------------------------------------------------------------------
|
%-------------------------------------------------------------------------
|
||||||
|
|
||||||
Y = linspace(0,MaximumVelocity,N);
|
Y = linspace(0,MaximumVelocity,N);
|
||||||
Trajectories = zeros(length(Y),int64(T/tau),9);
|
ParticleDynamicalQuantities = zeros(length(Y),int64(T/tau),6);
|
||||||
for i=1:length(Y)
|
for i=1:length(Y)
|
||||||
x =-L/2;
|
x =-L/2;
|
||||||
vx = Y(i)*cos(Theta);
|
vx = Y(i)*cos(Theta);
|
||||||
vz = Y(i)*sin(Theta);
|
vz = Y(i)*sin(Theta);
|
||||||
r = [x,0,z];
|
r = [x,0,z];
|
||||||
v = [vx,0,vz];
|
v = [vx,0,vz];
|
||||||
[Trajectories(i,:,:),~] = obj.solver(r, v);
|
ParticleDynamicalQuantities(i,:,:) = obj.solver(r, v);
|
||||||
end
|
end
|
||||||
|
|
||||||
hold on
|
hold on
|
||||||
|
|
||||||
for i=1:length(Y)
|
for i=1:length(Y)
|
||||||
plot(Trajectories(i,:,1),Trajectories(i,:,4),'w','linewidth',1.3)
|
plot(ParticleDynamicalQuantities(i,:,1),ParticleDynamicalQuantities(i,:,4),'w','linewidth',1.3)
|
||||||
end
|
end
|
||||||
|
|
||||||
hold off
|
hold off
|
||||||
|
Loading…
Reference in New Issue
Block a user