pipe.switch(pipe_name='cluster NS 2-site expanded')
relax_disp.select_model(model='NS 2-site expanded')
# Is this necessary since it should be contained in the previous pipe??
#value.copy(pipe_from='NS 2-site expanded', pipe_to='cluster NS 2-site expanded', param='pA')
#value.copy(pipe_from='NS 2-site expanded', pipe_to='cluster NS 2-site expanded', param='pB')
#value.copy(pipe_from='NS 2-site expanded', pipe_to='cluster NS 2-site expanded', param='dw')
#value.copy(pipe_from='NS 2-site expanded', pipe_to='cluster NS 2-site expanded', param='kex')
#value.copy(pipe_from='NS 2-site expanded', pipe_to='cluster NS 2-site expanded', param='tex')
minimise(min_algor='simplex', line_search=None, hessian_mod=None, hessian_type=None, func_tol=1e-25, grad_tol=None, max_iter=10000000, constraints=True, scaling=True, verbosity=1)
relax_disp.plot_disp_curves(dir=set_id, force=True)
value.write(param='pA', file='pA.out', dir=set_id, scaling=1.0, comment=None, bc=False, force=True)
value.write(param='pB', file='pB.out', dir=set_id, scaling=1.0, comment=None, bc=False, force=True)
grace.write(x_data_type='res_num', y_data_type='pA', spin_id=None, plot_data='value', file='pA.agr', dir=set_id, force=True, norm=False)
grace.write(x_data_type='res_num', y_data_type='pB', spin_id=None, plot_data='value', file='pB.agr', dir=set_id, force=True, norm=False)
value.write(param='dw', file='dw.out', dir=set_id, scaling=1.0, comment=None, bc=False, force=True)
grace.write(x_data_type='res_num', y_data_type='dw', spin_id=None, plot_data='value', file='dw.agr', dir=set_id, force=True, norm=False)
value.write(param='kex', file='kex.out', dir=set_id, scaling=1.0, comment=None, bc=False, force=True)
value.write(param='tex', file='tex.out', dir=set_id, scaling=1.0, comment=None, bc=False, force=True)
grace.write(x_data_type='res_num', y_data_type='kex', spin_id=None, plot_data='value', file='kex.agr', dir=set_id, force=True, norm=False)
grace.write(x_data_type='res_num', y_data_type='tex', spin_id=None, plot_data='value', file='tex.agr', dir=set_id, force=True, norm=False)
grace.write(x_data_type='res_num', y_data_type='chi2', spin_id=None, plot_data='value', file='chi2.agr', dir=set_id, force=True, norm=False)
results.write(file='results', dir=set_id, compress_type=1, force=True)
</source>