Carbon Fiber Material was Added
This commit is contained in:
@@ -17,7 +17,9 @@ namespace StructureHelperLogics.Models.Materials
|
||||
Concrete40,
|
||||
Reinforecement400,
|
||||
Reinforecement500,
|
||||
Elastic200
|
||||
Elastic200,
|
||||
Carbon4000,
|
||||
Glass1200
|
||||
}
|
||||
|
||||
public static class HeadMaterialFactory
|
||||
@@ -33,6 +35,8 @@ namespace StructureHelperLogics.Models.Materials
|
||||
if (type == HeadmaterialType.Reinforecement400) { return GetReinforcement400(); }
|
||||
if (type == HeadmaterialType.Reinforecement500) { return GetReinforcement500(); }
|
||||
if (type == HeadmaterialType.Elastic200) { return GetElastic200(); }
|
||||
if (type == HeadmaterialType.Carbon4000) { return GetCarbon4000(); }
|
||||
if (type == HeadmaterialType.Glass1200) { return GetGlass1200(); }
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown + nameof(type));
|
||||
}
|
||||
|
||||
@@ -53,6 +57,20 @@ namespace StructureHelperLogics.Models.Materials
|
||||
return material;
|
||||
}
|
||||
|
||||
private static IHeadMaterial GetCarbon4000()
|
||||
{
|
||||
var material = new HeadMaterial();
|
||||
material.HelperMaterial = new FRMaterial(MaterialTypes.CarbonFiber) { Modulus = 2e11d, CompressiveStrength = 4e9d, TensileStrength = 4e9d };
|
||||
return material;
|
||||
}
|
||||
|
||||
private static IHeadMaterial GetGlass1200()
|
||||
{
|
||||
var material = new HeadMaterial();
|
||||
material.HelperMaterial = new FRMaterial(MaterialTypes.GlassFiber) { Modulus = 8e10d, CompressiveStrength = 1.2e9d, TensileStrength = 1.2e9d };
|
||||
return material;
|
||||
}
|
||||
|
||||
private static IHeadMaterial GetReinforcement400()
|
||||
{
|
||||
var material = new HeadMaterial() { Name = "New reinforcement" };
|
||||
|
||||
@@ -14,11 +14,17 @@ namespace StructureHelperLogics.Models.Materials
|
||||
{
|
||||
public static List<IMaterialSafetyFactor> GetDefaultConcreteSafetyFactors(CodeTypes codeType)
|
||||
{
|
||||
if (codeType == CodeTypes.SP63_13330_2018) return GetConcreteFactorsSP63_2018();
|
||||
if (codeType == CodeTypes.SP63_2018) return GetConcreteFactorsSP63_2018();
|
||||
else if (codeType == CodeTypes.EuroCode_2_1990) return GetConcreteFactorsEC2_1990();
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown + ": " + codeType);
|
||||
}
|
||||
|
||||
public static List<IMaterialSafetyFactor> GetDefaultFRSafetyFactors(CodeTypes codeType, MaterialTypes materialType)
|
||||
{
|
||||
if (codeType == CodeTypes.SP164_2014) return GetFRFactorsSP164_2014(materialType);
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown + ": " + codeType);
|
||||
}
|
||||
|
||||
private static List<IMaterialSafetyFactor> GetConcreteFactorsEC2_1990()
|
||||
{
|
||||
List<IMaterialSafetyFactor> factors = new List<IMaterialSafetyFactor>();
|
||||
@@ -29,16 +35,56 @@ namespace StructureHelperLogics.Models.Materials
|
||||
{
|
||||
List<IMaterialSafetyFactor> factors = new List<IMaterialSafetyFactor>();
|
||||
IMaterialSafetyFactor coefficient;
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(FactorType.LongTermFactor);
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(ConcreteFactorType.LongTermFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(FactorType.PlainConcreteFactor);
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(ConcreteFactorType.PlainConcreteFactor);
|
||||
coefficient.Take = false;
|
||||
factors.Add(coefficient);
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(FactorType.BleedingFactor);
|
||||
coefficient = ConcreteFactorsFactory.GetFactor(ConcreteFactorType.BleedingFactor);
|
||||
coefficient.Take = false;
|
||||
factors.Add(coefficient);
|
||||
return factors;
|
||||
}
|
||||
private static List<IMaterialSafetyFactor> GetFRFactorsSP164_2014(MaterialTypes materialType)
|
||||
{
|
||||
List<IMaterialSafetyFactor> factors = new List<IMaterialSafetyFactor>();
|
||||
if (materialType == MaterialTypes.CarbonFiber)
|
||||
{
|
||||
GetCarbonFactors(factors);
|
||||
}
|
||||
else if (materialType == MaterialTypes.GlassFiber)
|
||||
{
|
||||
GetGlassFactors(factors);
|
||||
}
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown + ": " + materialType);
|
||||
return factors;
|
||||
}
|
||||
private static void GetCarbonFactors(List<IMaterialSafetyFactor> factors)
|
||||
{
|
||||
IMaterialSafetyFactor coefficient;
|
||||
coefficient = FRFactorsFactory.GetCarbonFactor(FRFactorType.ConditionFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
coefficient = FRFactorsFactory.GetCarbonFactor(FRFactorType.CohesionFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
coefficient = FRFactorsFactory.GetCarbonFactor(FRFactorType.LongTermFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
}
|
||||
private static void GetGlassFactors(List<IMaterialSafetyFactor> factors)
|
||||
{
|
||||
IMaterialSafetyFactor coefficient;
|
||||
coefficient = FRFactorsFactory.GetGlassFactor(FRFactorType.ConditionFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
coefficient = FRFactorsFactory.GetGlassFactor(FRFactorType.CohesionFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
coefficient = FRFactorsFactory.GetGlassFactor(FRFactorType.LongTermFactor);
|
||||
coefficient.Take = true;
|
||||
factors.Add(coefficient);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user