Exemplo n.º 1
0
 /// <summary>
 /// Define new material properties
 /// </summary>
 /// <param name="spec">The material name or designation</param>
 /// <param name="density">Mass Density in (lbs/in^3)</param>
 /// <param name="youngsModulus">Young's Modulus in (psi)</param>
 /// <param name="thermalCoef">Coefficient of Thermal Expansion (1/°F)</param>
 /// <param name="ultimateStrength">Ultimate strength (psi)</param>
 /// <param name="yieldStrength">Tensile strength (psi)</param>
 public Material(MaterialSpec spec, double density, double youngsModulus, double thermalCoef)
 {
     this.Spec               = spec;
     this.Elasticity         = youngsModulus;
     this.Density            = density;
     this.ThermalCoefficient = thermalCoef;
 }
Exemplo n.º 2
0
        public static Material Standard(MaterialSpec spec)
        {
            switch (spec)
            {
            case MaterialSpec.ALUMINUM:
                return(Aluminum);

            case MaterialSpec.STEEL:
                return(Steel);

            case MaterialSpec.COPPER:
                return(Copper);

            case MaterialSpec.AW:
                return(AluminumCladSteel);
            }
            throw new NotSupportedException();
        }
Exemplo n.º 3
0
 public Alloy(MaterialSpec spec, string name, double ultimateStrength, double yieldStrength)
     : this(Materials.Standard(spec), name, ultimateStrength, yieldStrength)
 {
 }