public CriticalityVariations(CriticalityVariations criticalityVariations) { characteristicValues = new structCharacteristicValues(criticalityVariations.CharacteristicValues.initial); foreach (CriticalityVariation v in criticalityVariations) { this.AddVariation(v); } }
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(); }
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(); }
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; }
public CriticalityVariationsPoints(CriticalityVariations criticalityVariations, CriticalityChartSize criticalityChartSize) : base(criticalityVariations) { chartSize = criticalityChartSize; CalculatePoints(); }
public ExperimentSerializedData(CriticalityVariations cvs, Precursors ps) { this.criticalityVariations = cvs; this.precursors = ps; }
public Reactor(CriticalityVariations cv, Precursors p) : this(cv, p, 1, 1, 0.0001) { }
public CriticalityVariationsEventArgs(CriticalityVariations e) { criticalityVariationsUpdated = e; }
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); }