private void SetUpSRXPropertirs()
 {
     SRXProperties = new SRXProperties()
     {
         EnergyDistributionType = ChooseEnergyDistributionType(),
         NucleationDistribution = ChooseNucleationAmount(),
         GrainEnergy            = Converters.StringToInt(GrainEnergyTextBox.Text),
         BoundaryEnergy         = Converters.StringToInt(BoundaryEnergyTextBox.Text),
         Nucleons = Converters.StringToInt(SRXNucleonsTextBox.Text),
         States   = Converters.StringToInt(SRXStatesTextBox.Text),
         Steps    = Converters.StringToInt(SRXStepsTextBox.Text)
     };
 }
Example #2
0
        public SRX(Random random, SRXProperties SRXProperties, Scope scope, bool growth)
        {
            this.random     = random;
            this.properties = SRXProperties;
            this.scope      = scope;

            SetUpEnergyColors();

            if (growth)
            {
                ItertionsPerformed   = 0;
                states               = PrepareAvaliableStates();
                nucleonsPreIteration = CalculateNucleonsPerIteration();
            }
        }