"; $pythonicon=""; $resultsicon=""; $diricon=""; $rightarrowicon=""; $dbpath="http://golem.fjfi.cvut.cz/dbase"; $psqlicon=""; function printf_psql_shots_request ($request, $format) { global $shot_no; echo exec ('export PGPASSWORD=\'rabijosille\';echo "SELECT \"'.$request.'\" FROM shots WHERE shot_no='.$shot_no.';"|psql -qAt -U golem golem_database|xargs printf \''.$format.'\';'); } function psql_shots_request ($request) { global $shot_no; echo exec ('export PGPASSWORD=\'rabijosille\';echo "SELECT \"'.$request.'\" FROM shots WHERE shot_no='.$shot_no.';"|psql -qAt -U golem golem_database;'); } function bare_psql_shots_request ($request) { global $shot_no; return exec ('export PGPASSWORD=\'rabijosille\';echo "SELECT \"'.$request.'\" FROM shots WHERE shot_no='.$shot_no.';"|psql -qAt -U golem golem_database;'); } function psql_physical_quantities_request ($column,$identifier) { echo exec ('export PGPASSWORD=\'rabijosille\';echo "SELECT '.$column.' FROM physicalquantities WHERE identifier=\''.$identifier.'\';"|psql -qAt -U golem golem_database'); } function printf_quantity_item ($request,$format) { echo ""; psql_physical_quantities_request ('description',$request); echo ""; printf_psql_shots_request ($request,$format).''; } function quantity_item ($request) { echo ""; psql_physical_quantities_request ('description',$request); echo ""; psql_shots_request ($request).''; } function href_quantity_item ($request,$href) { echo ""; echo ""; psql_physical_quantities_request ('description',$request); echo ""; psql_shots_request ($request).''; } function printf_parameters_quantity_item ($request,$format) { echo "
  • "; psql_physical_quantities_request ('description',$request); echo ": "; printf_express_quantity ($request,$format); echo "
  • "; } function printf_express_quantity ($request,$format) { echo "\(";psql_physical_quantities_request ('latex',$request);echo "\)="; printf_psql_shots_request ($request,$format); echo " "; psql_physical_quantities_request ('unit',$request); } function printf_href_express_quantity ($address,$request,$format) { echo "\(";psql_physical_quantities_request ('latex',$request);echo "\)="; printf_psql_shots_request ($request,$format); echo " "; psql_physical_quantities_request ('unit',$request); echo ""; } ?> Golem No: <?php echo ($shot_no);?> - the only fully opensource tokamak

    Tokamak GOLEM - Shot Database - #

    '.$psqlicon.''; echo ' [Shot logbook]'; echo ""; quantity_item ('session_id'); echo ' '.$psqlicon.''; quantity_item ('pre_comment'); href_quantity_item ('X_discharge_command','Production/Parameters/'); ?>
    The session mission"; echo ""; psql_shots_request ('session_setup'); echo " --> "; psql_shots_request ('session_mission'); echo "

         Technological parameters

      Working Gas: "; printf_href_express_quantity('Devices/RASPs/Chamber','p_chamber_pressure_before_discharge','%3.2f'); echo "; "; printf_href_express_quantity('Devices/RASPs/Chamber','p_chamber_pressure_predischarge','%3.2f'); echo " ("; printf_href_express_quantity('Devices/RASPs/Chamber','p_working_gas_discharge_request','%3.0f'); echo "@"; printf_href_express_quantity('Devices/RASPs/Chamber','X_working_gas_discharge_request','%s'); echo ")"; echo ""; echo "
    • Toroidal magnetic field: "; printf_href_express_quantity('Devices/RASPs/Charger','U_bt_discharge_request','%3.0f'); echo "@"; printf_href_express_quantity('Devices/RASPs/Discharge','t_bt_discharge_request','%3.1f'); echo "
    • "; echo "
    • Current drive field: "; printf_href_express_quantity('Devices/RASPs/Charger','U_cd_discharge_request','%3.0f'); echo "@"; printf_href_express_quantity('Devices/RASPs/Discharge','t_cd_discharge_request','%3.1f'); echo "
    • "; // parameters_quantity_item ('preionization_request'); ?>
        Plasma: ".$pythonicon." ".$rightarrowicon." ".$resultsicon." ".$diricon.""; echo "
      "; echo "
    • Plasma: yes or no: ☑
    • "; echo "
    • Time parameters:"; printf_href_express_quantity ('Diagnostics/BasicDiagnostics/Results','t_plasma_duration','%3.2f'); echo " (from:"; printf_href_express_quantity ('Diagnostics/BasicDiagnostics/Results','t_plasma_start','%3.2f'); echo ",to:"; printf_href_express_quantity ('Diagnostics/BasicDiagnostics/Results','t_plasma_end','%3.2f'); echo ")
    "; echo"

        Plasma parameters:".$pythonicon." ".$rightarrowicon." ".$resultsicon." ".$diricon." "; echo "

      "; echo "
    • Loop voltage:"; echo "\(\overline{U\sub{loop}}\)"; # Hnusny workarround, fakt nevim, co se deje ... printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','U_loop_mean','%3.2f'); echo "; "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','U_loop_max','%3.2f'); echo "; "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','U_loop_breakdown','%3.2f'); echo "
    • "; echo "
    • Toroidal magnetic field: "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','Bt_mean','%3.2f'); echo "; "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','Bt_max','%3.2f'); echo "
    • "; echo "
    • Plasma current: "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','Ip_mean','%3.2f'); echo "; "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','Ip_max','%3.2f'); echo "; "; printf_href_express_quantity('Diagnostics/BasicDiagnostics/Results','t_Ip_max','%3.2f'); echo "
    "; //parameters_quantity_item ('power_balance'); //parameters_quantity_item ('safety_factor'); //parameters_quantity_item ('electron_temperature'); //parameters_quantity_item ('electron_density_mean'); } else { echo "

        "; echo"No Plasma: ".$pythonicon." ".$rightarrowicon." ".$resultsicon.""; } ?>

    Data flowmeasurement →digitization →analysis → NameExperiment setupData acquistition systemRaw dataAnalysis results'; $tableend=''; ?> Basic Diagnostics "; echo ""; // echo "$tablehead"; // $output=shell_exec('cat ../../Diagnostics/BasicDiagnostics/diagrow.html'); // echo "$output"; // echo "$tableend"; // } ?>

    On stage diagnostics

    Other diagnostics

    Analysis"; system ("for i in `cat ../../Production/Analysis`; do cat ../../`dirname \$i`/diagrow.html;done"); echo "
    NameAnalysis results
    "; } ?> Scan issues $gitlabicon$diricon"; echo "for "; echo file_get_contents('../../Production/Parameters/ScanDefinition', true); echo " + "; echo file_get_contents('../../shot_no', true); echo "

    "; echo ""; echo ""; $file = file_get_contents('Scan/diags.html', true); echo $file; } ?>

    Infrastructure

    Acknowledgement


    Thanks to the specific help

    The tokamak GOLEM controll SW @

    Diagnostics

    Other

    Navigation