generated from MagmaWorks/Template-Repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from MagmaWorks/feature/concrete-properties
Concrete sectionproperties
- Loading branch information
Showing
34 changed files
with
1,398 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using OasysUnits; | ||
|
||
namespace MagmaWorks.Taxonomy.Sections.SectionProperties | ||
{ | ||
public interface IConcreteSectionProperties : ISectionProperties | ||
{ | ||
Area TotalReinforcementArea { get; } | ||
Area ConcreteArea { get; } | ||
Ratio GeometricReinforcementRatio { get; } | ||
Area CrossSectionalShearReinforcementArea { get; } | ||
AreaMomentOfInertia ReinforcementSecondMomentOfAreaYy { get; } | ||
AreaMomentOfInertia ReinforcementSecondMomentOfAreaZz { get; } | ||
Length ReinforcementRadiusOfGyrationYy { get; } | ||
Length ReinforcementRadiusOfGyrationZz { get; } | ||
Length EffectiveDepth(SectionFace face); | ||
Area ReinforcementArea(SectionFace face); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
namespace MagmaWorks.Taxonomy.Sections.SectionProperties | ||
using MagmaWorks.Geometry; | ||
using OasysUnits; | ||
|
||
namespace MagmaWorks.Taxonomy.Sections.SectionProperties | ||
{ | ||
public interface ISectionProperties | ||
{ | ||
IGeometricalProperties GeometricalProperties { get; } | ||
ILocalDomain2d Extends { get; } | ||
ILocalPoint2d Centroid { get; } | ||
Length Perimeter { get; } | ||
Area Area { get; } | ||
SectionModulus ElasticSectionModulusYy { get; } | ||
SectionModulus ElasticSectionModulusZz { get; } | ||
AreaMomentOfInertia MomentOfInertiaYy { get; } | ||
AreaMomentOfInertia MomentOfInertiaZz { get; } | ||
Length RadiusOfGyrationYy { get; } | ||
Length RadiusOfGyrationZz { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using MagmaWorks.Taxonomy.Sections.SectionProperties.Utility; | ||
using OasysUnits; | ||
using OasysUnits.Units; | ||
using Area = OasysUnits.Area; | ||
|
||
namespace MagmaWorks.Taxonomy.Sections.SectionProperties | ||
{ | ||
public class ConcreteSectionProperties : SectionProperties, IConcreteSectionProperties | ||
{ | ||
public Area TotalReinforcementArea => _reinforcementArea ??= Rebar.CalculateArea(_section.Rebars); | ||
public Area ConcreteArea => base.Area - TotalReinforcementArea; | ||
public Ratio GeometricReinforcementRatio => | ||
new Ratio(TotalReinforcementArea.SquareMeters / ConcreteArea.SquareMeters, RatioUnit.DecimalFraction); | ||
public Area CrossSectionalShearReinforcementArea => Rebar.CalculateArea(_section.Link) * 2; | ||
public AreaMomentOfInertia ReinforcementSecondMomentOfAreaYy => | ||
_reinforcementSecondMomentOfAreaYy ??= Rebar.CalculateInertiaYy(_section); | ||
public AreaMomentOfInertia ReinforcementSecondMomentOfAreaZz => | ||
_reinforcementSecondMomentOfAreaZz ??= Rebar.CalculateInertiaZz(_section); | ||
public Length ReinforcementRadiusOfGyrationYy => | ||
_reinforcementRadiusOfGyrationYy ??= Rebar.CalculateRadiusOfGyrationYy(_section); | ||
public Length ReinforcementRadiusOfGyrationZz => | ||
_reinforcementRadiusOfGyrationZz ??= Rebar.CalculateRadiusOfGyrationZz(_section); | ||
|
||
private Area? _reinforcementArea; | ||
private AreaMomentOfInertia? _reinforcementSecondMomentOfAreaYy; | ||
private AreaMomentOfInertia? _reinforcementSecondMomentOfAreaZz; | ||
private Length? _reinforcementRadiusOfGyrationYy; | ||
private Length? _reinforcementRadiusOfGyrationZz; | ||
private readonly IConcreteSection _section; | ||
|
||
public ConcreteSectionProperties(IConcreteSection section) : base(section.Profile) | ||
{ | ||
_section = section; | ||
} | ||
|
||
public Length EffectiveDepth(SectionFace face) | ||
=> Rebar.CalculateEffectiveDepth(_section, face); | ||
public Area ReinforcementArea(SectionFace face) | ||
=> Rebar.CalculateArea(_section, face); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.