Phase class¶
Code author: Niklaus Johner <niklaus.johner@a3.epfl.ch>
This file contains the Phase object which represents a simulation phase.
- 
class 
Phase(window, phase_name, phase_type, parent_phase=None)¶ This class is at the bottom of the hierarchical structure used in SiPMF. Every class:Window can have several
Phasecorresponding to successive simulations.Parameters: - 
AddDataToWindow(n_skip=0, n_tot=-1, new_only=True)¶ Add the data of this phase to the data file of the window. n_tot=-1 means there is no maximal number of data points added.
Parameters: 
- 
GetDataCount()¶ Get the number of data points accumulated for this phase (number of lines in its datafile).
- 
Initialize()¶ Initialize the phase by creating its output directory, and setting up the simulation
Job, i.e. preparing the MD input file.
- 
UpdateDataCount()¶ Count how much data has been accumulated in this phase (number of lines in its datafile).
-