示例#1
0
 public CriticalityVariations(CriticalityVariations criticalityVariations)
 {
     characteristicValues = new structCharacteristicValues(criticalityVariations.CharacteristicValues.initial);
     foreach (CriticalityVariation v in criticalityVariations)
     {
         this.AddVariation(v);
     }
 }
示例#2
0
 void criticalityPanel1_OnCriticalityChange(object sender, CriticalityVariationsEventArgs e)
 {
     criticalityVariations = e.CriticalityVariationsUpdated;
     if (buttonCalculatePopulations.Visible)
     {
         precursors = readPrecursorsGrid();
     }
     reactor = new Reactor(criticalityVariations, precursors);
     Display();
     buttonCalculatePopulations.Visible = false;
     saved = false;
     //throw new NotImplementedException();
 }
示例#3
0
 public Reactor(CriticalityVariations cv, Precursors p, Double n, Double s, Double lStar)
 {
     this.cv         = cv;
     this.precursors = p;
     this.balancedPrecursorAtStartup = true;
     this.initialNeutronPop          = n;
     this.timeSpan              = cv.TimeSpan;
     this.source                = s;
     this.lStar                 = lStar;
     this.timeSteps             = new List <DataPoint>();
     this.populationAtEveryStep = new List <DataPoint>();
     this.populationAtEveryStep.Add(new DataPoint(0, n)); //initialise ne nombre de neutrons à n à l'instant 0 secondes
     calculatePopulations();
 }
示例#4
0
        private void openFile(string fileName)
        {
            Stream                   stream    = new FileStream(fileName, FileMode.Open);
            BinaryFormatter          formatter = new BinaryFormatter();
            ExperimentSerializedData esd       = (ExperimentSerializedData)formatter.Deserialize(stream);

            criticalityVariations = new CriticalityVariations(esd.criticalityVariations);
            precursors            = new Precursors(esd.precursors);
            stream.Close();
            stream.Dispose();
            reactor = new Reactor(criticalityVariations, precursors);
            UpdateDataGridViewPrecursors(precursors);
            Display();
            buttonCalculatePopulations.Visible = false;
        }
示例#5
0
 public CriticalityVariationsPoints(CriticalityVariations criticalityVariations, CriticalityChartSize criticalityChartSize)
     : base(criticalityVariations)
 {
     chartSize = criticalityChartSize;
     CalculatePoints();
 }
 public ExperimentSerializedData(CriticalityVariations cvs, Precursors ps)
 {
     this.criticalityVariations = cvs;
     this.precursors            = ps;
 }
示例#7
0
 public Reactor(CriticalityVariations cv, Precursors p) : this(cv, p, 1, 1, 0.0001)
 {
 }
 public CriticalityVariationsEventArgs(CriticalityVariations e)
 {
     criticalityVariationsUpdated = e;
 }
示例#9
0
 public void LoadCriticality(CriticalityVariations criticalityVariations, Point xAxis)
 {
     chartSize = new CriticalityChartSize(new Size(this.Width, this.Height),
                                          new Point(xAxis.X, 10), new Point(this.Width - xAxis.Y, 30));
     criticalityVariationsPoints = new CriticalityVariationsPoints(criticalityVariations, chartSize);
 }