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

25 lines
780 B
Mathematica
Raw Normal View History

2024-06-17 12:14:15 +02:00
function [Params, Transf, psi,V,VDk] = runSimulation(this)
2024-06-12 20:05:27 +02:00
% --- Obtain simulation parameters ---
[Params] = this.setupParameters();
% --- 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 = [];
t_idx = 1; %Start at t = 0;
Observ.res_idx = 1;
% --- Job Settings ---
2024-06-17 12:14:15 +02:00
njob = 6;
mkdir(sprintf('./Data/Run_%03i',njob))
2024-06-12 20:05:27 +02:00
% --- Run Simulation ---
% [psi] = this.solver(psi,Params,Transf,VDk,V,njob,t_idx,Observ);
end