On the OMFIT modeling framework and the development of steady ...
On the OMFIT modeling framework and the development of steady ...
On the OMFIT modeling framework and the development of steady ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Python scripting empowers users with limitless capabilities<br />
<strong>and</strong> available libraires simplify users job<br />
Example: Easy to setup non-linear parameter optimization based on<br />
cost function approach:<br />
• Change SCALEPP EXT variable in EFIT to obtain βp = 0.4<br />
def cost_f(x):<br />
<strong>OMFIT</strong>['EFIT']['FILES']['rfile']['PROFILE_EXT’]['SCALEPP_EXT']=x[0]<br />
<strong>OMFIT</strong>['EFIT']['SCRIPTS']['EFITexec'].run()<br />
cost=(<strong>OMFIT</strong>['EFIT']['FILES']['aEQDSK']['betap']/0.4 - 1)**2<br />
return cost<br />
x=[1.0]<br />
res = scipy.optimize.fmin(cost_f, x)<br />
Cost function Vs SCALEPP_EXT per iteration<br />
2<br />
4<br />
6<br />
5<br />
7<br />
8<br />
3<br />
1