Ignore:
Timestamp:
Dec 23, 2010, 12:49:22 AM (15 years ago)
Author:
ansari
Message:

ajout config double hexagon + programme calcul pknoise a partir du resultat de repicon.cc, Reza 22/12/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/interfconfigs.cc

    r3792 r3930  
    234234}
    235235
    236  cout << "CreateConfigB/Debug: -checkSize/lesx=" << lesx.size() << " -Check/lesy=" << lesy.size() << endl;
     236 cout << "CreateConfigD/Debug: -checkSize/lesx=" << lesx.size() << " -Check/lesy=" << lesy.size() << endl;
    237237 
    238238 vector<Dish> vd;
     
    265265  return vd;
    266266}
     267
     268/* --Fonction -- */
     269vector<Dish> CreateDoubleHexagonConfig(double Ddish, double radius1, double radius2, double Eta)
     270{
     271  vector<Dish>  vd;
     272  int cnt=0;
     273  double ang=0.;
     274  for(int i=0; i<6; i++) {
     275    double x=cos(ang)*radius1;
     276    double y=sin(ang)*radius1;
     277    cnt++;
     278    vd.push_back(Dish(cnt, x, y, Eta*Ddish));
     279    ang += M_PI/3.;
     280  }
     281  ang=M_PI/6.;
     282  for(int i=0; i<6; i++) {
     283    double x=cos(ang)*radius2;
     284    double y=sin(ang)*radius2;
     285    cnt++;
     286    vd.push_back(Dish(cnt, x, y, Eta*Ddish));
     287    ang += M_PI/3.;
     288  }
     289 cout << ">>>CreateDoubleHexagonConfig(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl;
     290 return vd;
     291}
Note: See TracChangeset for help on using the changeset viewer.