本文整理汇总了C#中ICalcLog类的典型用法代码示例。如果您正苦于以下问题:C# ICalcLog类的具体用法?C# ICalcLog怎么用?C# ICalcLog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICalcLog类属于命名空间,在下文中一共展示了ICalcLog类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetIshape
public ISteelCompressionMember GetIshape(ISteelSection Section, bool IsRolled, double L_x, double L_y, double L_z, ICalcLog CalcLog)
{
ISteelCompressionMember column = null;
IShapeCompactness compactnessTop = new ShapeCompactness.IShapeMember(Section, IsRolled, Common.Section.Interfaces.FlexuralCompressionFiberPosition.Top);
IShapeCompactness compactnessBot = new ShapeCompactness.IShapeMember(Section, IsRolled, Common.Section.Interfaces.FlexuralCompressionFiberPosition.Bottom);
ICalcLog Log = new CalcLog();
CompactnessClassAxialCompression flangeCompactnessTop = compactnessTop.GetFlangeCompactnessCompression();
CompactnessClassAxialCompression flangeCompactnessBot = compactnessTop.GetFlangeCompactnessCompression();
CompactnessClassAxialCompression webCompactness = compactnessTop.GetWebCompactnessCompression();
if (flangeCompactnessTop == CompactnessClassAxialCompression.NonSlender && webCompactness == CompactnessClassAxialCompression.NonSlender
&& flangeCompactnessBot == CompactnessClassAxialCompression.NonSlender)
{
column = new IShapeCompact(Section, IsRolled, L_x, L_y, L_z, Log);
//if (IShape.b_fBot == IShape.b_fTop && IShape.t_fBot == IShape.t_fTop)
//{
// return new IShapeCompact(SectionI, IsRolledShape, L_ex, L_ey, L_ez, log);
//}
//else
//{
// throw new NotImplementedException();
//}
}
else
{
column = new IShapeSlenderElements(Section, IsRolled, L_x, L_y, L_z, Log);
}
return column;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:32,代码来源:IShapeFactory.cs
示例2: base
//Basic calculation
public TensionLapSplice
(
IConcreteMaterial Concrete,
Rebar Bar1,
Rebar Bar2,
bool MeetsRebarSpacingAndEdgeDistance,
bool HasMinimumTransverseReinforcement,
bool IsTopRebar,
TensionLapSpliceClass SpliceClass,
ICalcLog log
)
: base(log)
{
this.Concrete = Concrete;
this.Bar1 = Bar1;
this.Bar2 = Bar2;
this.MeetsRebarSpacingAndEdgeDistance=MeetsRebarSpacingAndEdgeDistance;
this.HasMinimumTransverseReinforcement=HasMinimumTransverseReinforcement;
this.SpliceClass = SpliceClass;
this.IsTopRebar = IsTopRebar;
this.A_tr = A_tr;
this.s_tr = s_tr;
this.n = n;
CalculateValuesBasic();
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:29,代码来源:TensionLapSplice.cs
示例3: WindLocation
public WindLocation(ICalcLog CalcLog, double Latitude, double Longitude, string County=null)
: base(CalcLog)
{
this.Latitude = Latitude;
this.Longitude = Longitude;
this.County = County;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:WindLocation.cs
示例4: CreateBeamInstance
public IAnalysisBeam CreateBeamInstance(string BeamCaseId, LoadBeam load, ICalcLog Log)
{
double L = d.L;
double LoadDimension_a = d.a_load;
Beam bm = null;
if (BeamCaseId.StartsWith("C1") == true)
{
bm = new BeamSimple(d.L, load, Log);
}
else if (BeamCaseId.StartsWith("C2") == true)
{
bm = new BeamSimpleWithOverhang(L, LoadDimension_a, load, Log);
}
else if (BeamCaseId.StartsWith("C3") == true)
{
bm = new BeamPinnedFixed(L,load, Log);
}
else if (BeamCaseId.StartsWith("C4") == true)
{
bm = new BeamFixedFixed(L, load, Log);
}
else //else if (BeamCaseId.StartsWith("C5") == true)
{
bm = new BeamCantilever(L, load, Log);
}
bm.ModulusOfElasticity = d.E;
bm.MomentOfInertia = d.I;
return bm;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:32,代码来源:BeamInstanceFactory.cs
示例5: BeamSimpleWithOverhang
public BeamSimpleWithOverhang(double Length, double OverhangLength, LoadBeam load, ICalcLog CalcLog)
: base(Length, load, CalcLog, new BeamSimpleWithOverhangFactory())
{
this.OverhangLength = OverhangLength;
TotalLength = Length + OverhangLength;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:BeamSimpleWithOverhang.cs
示例6: HssToPlateConnection
public HssToPlateConnection(bool IsTensionMember,
double P_uHss, double M_uHss, ICalcLog CalcLog)
{
this.IsTensionHss = IsTensionMember;
this.P_uHss = P_uHss;
this.M_uHss = M_uHss;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:HssToPlateConnection.cs
示例7: ConcreteMaterialBase
public ConcreteMaterialBase(double SpecifiedConcreteStrength,
ConcreteTypeByWeight ConcreteType, double Density, ICalcLog log): base(log)
{
this.fc = SpecifiedConcreteStrength;
this.typeByWeight = ConcreteType;
this.wc = Density;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:ConcreteMaterialBase.cs
示例8: SinglySymmetricIBeam
public SinglySymmetricIBeam(ISteelSection section, bool IsRolledMember, FlexuralCompressionFiberPosition compressionFiberPosition, ICalcLog CalcLog)
{
this.section = section;
this.IsRolledMember = IsRolledMember;
this.CalcLog = CalcLog;
this.compressionFiberPosition = compressionFiberPosition;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:SinglySymmetricIBeamMajorAxis.cs
示例9: BeamSimple
public BeamSimple(double Length, LoadBeam Loads, ICalcLog CalcLog)
: base(Length, Loads, CalcLog, new BeamSimpleFactory())
{
//LoadCases = new List<ISingleLoadCaseBeam>();
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:BeamSimple.cs
示例10: ChsTransversePlate
public ChsTransversePlate(SteelChsSection Hss, SteelPlateSection Plate, ICalcLog CalcLog, bool IsTensionHss,
double P_uHss, double M_uHss)
: base(Hss, Plate, CalcLog, IsTensionHss, P_uHss, M_uHss)
{
//assume 90 degrees for plate angle
Angle = 90.0;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:ChsTransversePlate.cs
示例11: WoodSolidMaterial
public WoodSolidMaterial( string Species, string CommercialGrade, string SizeClass, ICalcLog CalcLog)
: base(CalcLog)
{
this.Species = Species;
this.CommercialGrade = CommercialGrade;
this.SizeClass = SizeClass;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:WoodSolidMaterial.cs
示例12: AciConcreteShearTestsBase
public AciConcreteShearTestsBase()
{
//ICalcLogEntry entryStub = mocks.Stub<ICalcLogEntry>();
MockRepository mocks = new MockRepository();
log = mocks.Stub<ICalcLog>();
tolerance = 0.02; //2% can differ from rounding
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:ShearTestsCommon.cs
示例13: ConcreteMaterial
public ConcreteMaterial(double SpecifiedConcreteStrength,
ConcreteTypeByWeight ConcreteType, TypeOfLightweightConcrete LightWeightConcreteType, ICalcLog log)
: base(SpecifiedConcreteStrength, ConcreteType, log)
{
this.LightWeightConcreteType = LightWeightConcreteType;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:Concrete.cs
示例14: AciFlexureRectangularBeamTests
public AciFlexureRectangularBeamTests()
{
//ICalcLogEntry entryStub = mocks.Stub<ICalcLogEntry>();
MockRepository mocks = new MockRepository();
log = mocks.Stub<ICalcLog>();
tolerance = 0.02; //2% can differ from rounding
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:FlexuralTestsCommon.cs
示例15: BuildingDirectionalProcedureElement
public BuildingDirectionalProcedureElement(double Width, double Length, double Height, double WindSpeed, WindExposureCategory windExposureType,
WindEnclosureType EnclosureClass,
WindStructureDynamicResponseType StructureDynamicClass, double Damping, ICalcLog CalcLog)
: base(Width, Length, Height, WindSpeed, windExposureType, EnclosureClass, StructureDynamicClass, Damping, CalcLog)
{
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:7,代码来源:BuildingDirectionalProcedureElement.cs
示例16: AffectedElementInFlexure
public AffectedElementInFlexure(SectionRectangular Section, ISteelMaterial Material, ICalcLog CalcLog, bool IsRolled=false)
: base(Section, Material, CalcLog)
{
this.HasHolesInTensionFlange = false;
this.A_fg = 0;
this.A_fn = 0;
this.IsRolled = IsRolled;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:8,代码来源:AffectedElementInFlexure.cs
示例17: SeismicLocation
public SeismicLocation(double Latitude, double Longitude, List<MapDataInfo> LoadedMapsInfo, ICalcLog Log)
:base(Log)
{
this.Latitude = Latitude;
this.Longitude = Longitude;
this.LoadedMapsInfo = LoadedMapsInfo;
IsDirty = true;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:8,代码来源:MappedParametersExtractor.cs
示例18: BeamRectangularHss
public BeamRectangularHss(ISteelSection section, FlexuralCompressionFiberPosition compressionFiberPosition, MomentAxis MomentAxis, ICalcLog CalcLog)
: base(section, CalcLog)
{
GetSectionValues();
this.MomentAxis = MomentAxis;
FlangeCompactnessClass = GetFlangeCompactness(compressionFiberPosition, MomentAxis);
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:8,代码来源:F7-RectangularHss.cs
示例19: BoltBearingThreadedGeneral
public BoltBearingThreadedGeneral(double Diameter, BoltThreadCase ThreadType, IBoltMaterial material,
ICalcLog log=null)
: base(Diameter, ThreadType, log)
{
this.material = material;
nominalTensileStress = material.GetNominalTensileStress(ThreadType);
nominalShearStress = material.GetNominalShearStress(ThreadType);
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:9,代码来源:BoltBearingThreadedGeneral.cs
示例20: WoodColumn
public WoodColumn(double Emin, double CM, double Ct, double CT, double Ci, double Cr, ICalcLog CalcLog): base(CalcLog)
{
this.Emin=Emin;
this.CM= CM;
this.Ct= Ct;
this.CT= CT;
this.Ci= Ci;
this.Cr= Cr;
}
开发者ID:Wosad,项目名称:Wosad.Design,代码行数:9,代码来源:WoodColumn.cs
注:本文中的ICalcLog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论