Changeset 203 in PSPA


Ignore:
Timestamp:
Dec 18, 2012, 7:31:04 PM (12 years ago)
Author:
lemeur
Message:

correction dans bend

Location:
Interface_Web/trunk/pspaWT/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r202 r203  
    682682{
    683683  vector<bareParticle>& partic = beam->getParticleVector();
    684   new WText(nameOfCase_ + " : emittance parmela"+ " nb partic. "+ mixedTools::intToString(partic.size()), toto);
     684  new WText(nameOfCase_ + " : espace de phase x,x' "+ " nb partic. "+ mixedTools::intToString(partic.size()), toto);
    685685  WStandardItemModel *model = new WStandardItemModel(partic.size(), 3, toto);
    686686  //    model->setHeaderData(0, WString("X"));
     
    749749  //  WContainerWidget* toto = static_cast<WContainerWidget*>(leDessin_);
    750750  //  toto->clear();
    751   new WText(nameOfCase_ + " : emittance transport", toto);
     751  new WText(nameOfCase_ + " : emittance x,x' ", toto);
    752752  vector<double> xcor;
    753753  vector<double> ycor;
  • Interface_Web/trunk/pspaWT/src/elementBend.cc

    r202 r203  
    22#include "mixedTools.h"
    33#include "mathematicalConstants.h"
    4 
     4#include "PhysicalConstants.h"
    55elementBend::elementBend() :  abstractElement()
    66{
     
    7878  {
    7979    ostringstream sortie;
    80    
    81     sortie << "BEND /l=" << lenghtElem_ << "  / aper=" << aperture_ << "  / iout=1 / wr=" << momentum_ << " /alpha=" << angleDeg_ << " / beta1=" << beta1_;
     80    // il faut entrer l'energie cinetique
     81    double ecin = momentum_/ERESTMeV;
     82    ecin = ecin*ecin + 1.;
     83    ecin = ERESTMeV*(sqrt(ecin) - 1.0);
     84    sortie << "BEND /l=" << lenghtElem_ << "  / aper=" << aperture_ << "  / iout=1 / wr=" << ecin << " /alpha=" << angleDeg_ << " / beta1=" << beta1_;
    8285    sortie << " / beta2=" << beta1_;
    8386    return sortie.str();
Note: See TracChangeset for help on using the changeset viewer.