At the start of a simulation all of the analysis that is to be performed is specified using the setup_analysis command. Each time you want the analysis performed a call to do_analysis should be made. One can then call print_averages to write results to file.
::mbtools::analysis::do_analysis
::mbtools::analysis::print_averages
Additionally, at each call of print_averages the complete size histogram is printed to a file with the formatted name sizehisto.[format %05d $time]
Note that this routine causes a crash if it detects a large hole in the bilayer
namespace eval ::mbtools::analysis::myanalysis {
variable av_myresult
variable av_myresult_i
variable f_tvsresult
variable verbose
namespace export setup_myanalysis
namespace export analyze_myanalysis
namespace export printav_myanalysis
namespace export resetav_myanalisis
}
Import your new file into the analysis package by adding a line like the following to the analysis.tcl file.
source [file join [file dirname [info script]] myanalysis.tcl]
You then need to implement the following essential functions within your new namespace.