Cosmetic changes only.

This commit is contained in:
Karthik 2021-07-11 06:03:27 +02:00
parent b3a6f61d75
commit 48463a9d0c

View File

@ -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