##!/usr/bin/python2 ## -*- coding: utf-8 -*- <%page args="shot, page, default_path"/> <% from pygolem_lite import Shot, loadconst from pygolem_lite.config import TororoidalMagneticFieldTrigger, TororoidalMagneticFieldCapacitor, CurrentDriveElectricFieldCapacitor, StabilizationCapacitor, BreakDownElectricFieldCapacitor import datetime, cStringIO from pygolem_lite.web import cat, emph, get_page_paths, make_zoom_image, wiki, source_link from pygolem_lite.modules import cData page_path, base_path, page = get_page_paths(shot, page, default_path) get = cData.get_nice %>

[Source - basic_diagn.py ] [Source - main.py ]

##

${source_link( page_path, get('code_revision'),default_path, 'basic_diagn.py', 'Source - basic_diagn.py' )} ##${source_link( page_path, get('code_revision'),default_path, 'main.py', 'Source - main.py')}

    Basic parameters: (compare)

##compare
    %try:
  • Gas pressure pch:${ emph( get('pressure_initial', '%.2f'))}->${ emph( get('pressure', '%.2f'))} mPa (request: ${ get('pressure_request', '%i')} mPa) ${wiki("/predecessor-CASTOR/Vacuum/vacuum")}
  • Working gas: %try: %if int(get('gas_filling')): ${emph(get('working_gas'))} %else: None %endif %except: None %endtry
  • Preionization: ${ "ON" if int(get('preionization')) else "OFF"}
  • Chamber temperature: ${get('chamber_temperature', '%.2f')} C
  • CBt capacitors changed to: ${emph(get('Ub', '%i V'))}, \ triggered ${emph(get('Tb', '%.1f ms', 1e3))} ${wiki("/Infrastructure/Capacitors/ToroidalMagneticFieldLine/generation_toroidal")}
  • CBD capacitors changed to: ${emph(get('Ubd', '%i V'))}, triggered \ ${emph(get('Tbd', '%.1f ms', 1e3))} ${wiki("/Tokamak/Coils/TransformerPrimary-BreakdownElectricField/generation_transformer")}
  • CCD capacitors changed to: ${emph(get('Ucd', '%i V'))}, triggered \ ${emph(get('Tcd', '%.1f ms', 1e3))} ${wiki("/Tokamak/Transformer/coils_transformer") }
  • CST capacitors changed to: ${emph(get('Ust', '%i V'))}, triggered \ ${ emph(get('Tst','%.1f ms', 1e3))} ${wiki("/Tokamak/Coils/Stabilization/coils_stabilisation")}
  • %try: ${ ( "
  • Max saturation of iron core transformator: " + get('transformator_saturation', '%i%%', 100) + " " + wiki("/Tokamak/Transformer/coils_transformer") + "
  • " ) if float(get('transformator_saturation')) > 0.8 else "" } ${ ( "
  • Level of noise (dBt) in room: " + get('noise_level', '%0.3f V') + "
  • " ) if float(get('noise_level')) > 0.03 else "" } %except: %endtry
  • Probability of breakdown: ${get('breakdown_probability', '%i%%')} ${wiki("/Education/ExperimentMenu/BreakdownStudies/Breakdownstudies")}
  • Time since session beginning: ${str(datetime.timedelta(seconds=int(get('session_length'))))} h
  • %except Exception, e:

    Parameters loading failed: ${str(e)}

    %endtry
%try: % if get("plasma") == 1:

    Plasma parameters:

  • Plasma life time ${get('plasma_life', '%.1f', 1e3)} [ms] (from ${ get('plasma_start', '%.1f', 1e3)} to ${get('plasma_end', '%.1f', 1e3)})
  • Mean toroidal magnetic field Bt: ${get('toroidal_field_mean', '%.2f')} T ${wiki("/Diagnostics/Basic/ToroidalMagneticField/index")}
  • Mean plasma current: ${ get('plasma_current_mean', '%.2f', 1e-3)} kA ${wiki("/Diagnostics/Magnetic/RogowskiCoilArroundChamber/Theory/diagnostics_rogowski")}
  • Mean Uloop: ${get('loop_voltage_mean', '%.2f')} V ${wiki("/Diagnostics/Basic/Uloop/index")}
  • Break down voltage: ${get('breakdown_voltage', '%.1f') } V ${wiki("/Education/ExperimentMenu/BreakdownStudies/Breakdownstudies")}
  • Ohmic heating power: ${get('input_power_mean', '%.2f', 1e-3)} kW
  • Q edge: ${get('safety_factor_mean', '%.1f')} ${wiki("http://fusionwiki.ciemat.es/wiki/Rotational_transform")}
  • Electron temperature: ${ emph( get('temperature_mean', '%.1f'))} eV ${wiki("/Diagnostics/Basic/Uloop/index#theory")}
  • Line electron density: ${ emph(get('electron_density_mean', "%.2f" , 1e-17) ) } [10^17.m^-2] ${wiki("/Diagnostics/Basic/Interferometry/index")}
%endif %except Exception, e:

Plasma parameters loading failed: ${str(e)}

%endtry
${make_zoom_image( '/'+base_path + 'basicdiagn/graphpres' , "", "_home")} ${make_zoom_image( '/'+base_path + 'basicdiagn/graphpresb' , "", "_home")} ${make_zoom_image( '/'+base_path + 'basicdiagn/graphpresi' , "", "_home")} ${make_zoom_image( '/'+base_path + 'basicdiagn/graphpresfull' , "", "_home")}

Diagnostics:

Basic discharge parameters:

${Shot(shot).get_pygolem_list( ['loop_voltage', 'toroidal_field', 'rogowski_current', 'plasma_current', 'chamber_current', 'photodiode', 'photodiode_alpha', 'plasma', 'wwwcomment', 'input_power', 'input_power_total', 'plasma_start', 'plasma_end', 'plasma_life', ])}