Calculations/Dipolar Gas Simulator/+Simulator/@DipolarGas/run.m

23 lines
783 B
Mathematica
Raw Normal View History

2024-06-17 20:24:00 +02:00
function [Params, Transf, psi,V,VDk] = run(this)
2024-06-12 20:05:27 +02:00
% --- Obtain simulation parameters ---
[Params] = this.setupParameters();
2024-06-17 20:24:00 +02:00
this.SimulationParameters = Params;
2024-06-12 20:05:27 +02:00
% --- Set up spatial grids and transforms ---
[Transf] = this.setupSpace(Params);
2024-06-13 02:02:44 +02:00
[TransfRad] = this.setupSpaceRadial(Params);
2024-06-12 20:05:27 +02:00
% --- Initialize ---
mkdir(sprintf(this.SaveDirectory))
2024-06-17 12:14:15 +02:00
[psi,V,VDk] = this.initialize(Params,Transf,TransfRad);
2024-06-12 20:05:27 +02:00
Observ.EVec = []; Observ.NormVec = []; Observ.PCVec = []; Observ.tVecPlot = []; Observ.mucVec = [];
2024-06-18 12:48:13 +02:00
t_idx = 1; % Start at t = 0;
2024-06-12 20:05:27 +02:00
Observ.res_idx = 1;
% --- Run Simulation ---
2024-06-18 12:48:13 +02:00
mkdir(sprintf('./Data/Run_%03i',Params.njob))
[psi] = this.propagateWavefunction(psi,Params,Transf,VDk,V,t_idx,Observ);
2024-06-12 20:05:27 +02:00
end