using System; namespace Science.Physics.GeneralPhysics { /// /// Solid /// public class Solid { public Solid() { } private double Ef; public double FermiEnergy { get{return Ef;} set{Ef = value;} } public double FermiDiracDistributionFunction(Energy E, Temperature T) { return 1.0/(Math.Exp((E.J-Ef)/Constant.BolzmannConstant/T.K)+1.0); } private double ne; public double ElectronConcentration { get{return ne;} set{ne = value;} } public void FindFermiEnergy() { Ef = Constant.PlankConstant*Constant.PlankConstant /2.0/Constant.ElectronMass *Math.Pow(3.0*ne/8.0/Math.PI,2.0/3.0); } } }