コード例 #1
0
 public Element(int atomicNumber, double valence, double molarAbundance = 1, XrayLine line = XrayLine.Ka, double count = 0, double countTime = 1)
 {
     Z              = atomicNumber;
     AtomicName     = AtomStatic.AtomicName(Z);
     MolarAbundance = molarAbundance;
     Valence        = valence;
     // Isotopes = AtomConstants.IsotopeAbundance[Z];
     MolarWeight = AtomStatic.AtomicWeight(Z);
 }
コード例 #2
0
 /// <summary>
 /// 単原子分子のコンストラクタ
 /// </summary>
 /// <param name="z">原子番号</param>
 /// <param name="valence">価数</param>
 /// <param name="weightRatio">重量比</param>
 public Molecule(int z, double valence = 0, double weightRatio = 0, double molarAbundance = 0)
 {
     if (z != 0)
     {
         Element e = new Element(z, 0);
         Elements = new List <Element>();
         Elements.Add(e);
         e.MolarAbundance = 1;
         MolarWeight      = e.MolarWeight;
         Valence          = valence;
         WeightRatio      = weightRatio;
         MolarAbundance   = molarAbundance;
         Formula          = AtomStatic.AtomicName(z);
     }
 }