Class Bar
bar_type
Bar-element
public class Bar : NamedEntityBase, INamedEntity, IStructureElement, IFemDesignEntity, IStageElement, IBar
- Inheritance
-
Bar
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Bar()
Parameterless constructor for serialization.
protected Bar()
Bar(Edge, BarType, CompositeSection, Eccentricity, Connectivity, string)
Construct a composite beam or composite column with uniform section and uniform start/end conditions.
public Bar(Edge edge, BarType type, CompositeSection compositeSection, Eccentricity eccentricity = null, Connectivity connectivity = null, string identifier = "B")
Parameters
edgeEdgetypeBarTypecompositeSectionCompositeSectioneccentricityEccentricityAnalytical eccentricity, same at start/end. Eccentricity set to 0,0 if null.
connectivityConnectivityConnectivity, same at start/end. Connectivity set to Rigid if null.
identifierstringIdentifier
Bar(Edge, BarType, CompositeSection, Eccentricity, Eccentricity, Connectivity, Connectivity, string)
Construct composite beam or composite column with uniform section and different start/end conditions.
public Bar(Edge edge, BarType type, CompositeSection compositeSection, Eccentricity startEccentricity = null, Eccentricity endEccentricity = null, Connectivity startConnectivity = null, Connectivity endConnectivity = null, string identifier = "B")
Parameters
edgeEdgetypeBarTypecompositeSectionCompositeSectionstartEccentricityEccentricityAnalytical start eccentricity
endEccentricityEccentricityAnalytical end eccentricity
startConnectivityConnectivityStart connectivity
endConnectivityConnectivityEnd connectivity
identifierstringIdentifier
Bar(Edge, BarType, Material, Section, Eccentricity, Eccentricity, Connectivity, Connectivity, string)
Construct beam or column with uniform section and different start/end conditions
public Bar(Edge edge, BarType type, Material material, Section section, Eccentricity startEccentricity = null, Eccentricity endEccentricity = null, Connectivity startConnectivity = null, Connectivity endConnectivity = null, string identifier = "B")
Parameters
edgeEdgetypeBarTypematerialMaterialsectionSectionSection, same at start/end.
startEccentricityEccentricityAnalytical eccentricity at start. If null, eccentricity set to 0.
endEccentricityEccentricityAnalytical eccentricity at end. If null, eccentricity set to 0.
startConnectivityConnectivityStart connectivity.
endConnectivityConnectivityEnd connectivity.
identifierstringIdentifier
Bar(Edge, BarType, Material, Section, Section, Eccentricity, Eccentricity, Connectivity, Connectivity, string)
Construct beam or column with start/end section and different start/end conditions
public Bar(Edge edge, BarType type, Material material, Section startSection, Section endSection, Eccentricity startEccentricity, Eccentricity endEccentricity, Connectivity startConnectivity, Connectivity endConnectivity, string identifier)
Parameters
edgeEdgetypeBarTypematerialMaterialstartSectionSectionStart section.
endSectionSectionEnd section.
startEccentricityEccentricityAnalytical eccentricity at start. If null, eccentricity set to 0.
endEccentricityEccentricityAnalytical eccentricity at end. If null, eccentricity set to 0.
startConnectivityConnectivityStart connectivity.
endConnectivityConnectivityEnd connectivity.
identifierstringIdentifier
Bar(Edge, BarType, Material, Section[], Eccentricity[], Connectivity[], string)
Construct beam or column with start/end section and different start/end conditions
public Bar(Edge edge, BarType type, Material material, Section[] sections, Eccentricity[] eccentricities, Connectivity[] connectivities, string identifier)
Parameters
edgeEdgetypeBarTypematerialMaterialsectionsSection[]List of sections, 1 (uniform) or 2 (start/end) items.
eccentricitiesEccentricity[]List of analytical eccentricities, 1 (uniform) or 2 (start/end) items.
connectivitiesConnectivity[]List of connectivities, 1 (uniform) or 2 (start/end) items.
identifierstringIdentifier
Bar(Edge, BarType, Material, Section[], double[], Eccentricity[], Connectivity, Connectivity, string)
Construct beam or column with non-uniform section and different start/end conditions
public Bar(Edge edge, BarType type, Material material, Section[] sections, double[] positions, Eccentricity[] eccentricities, Connectivity startConnectivity, Connectivity endConnectivity, string identifier)
Parameters
edgeEdgetypeBarTypematerialMaterialsectionsSection[]List of sections, 2 or more items.
positionsdouble[]List of parametric (0-1) section positions, 2 or more items.
eccentricitiesEccentricity[]List of analytical eccentricities, 2 or more items.
startConnectivityConnectivityStart connectivity.
endConnectivityConnectivityEnd connectivity.
identifierstringIdentifier
Bar(Edge, Material, Section, BarType, Eccentricity, Connectivity, string)
Construct beam or column with uniform section and uniform start/end conditions
public Bar(Edge edge, Material material, Section section, BarType type, Eccentricity eccentricity = null, Connectivity connectivity = null, string identifier = "B")
Parameters
edgeEdgematerialMaterialsectionSectionSection, same at start/end.
typeBarTypeeccentricityEccentricityAnalytical eccentricity, same at start and end. If null, eccentricity set to 0.
connectivityConnectivityConnectivity, same at start/end. Connectivity set to Rigid if null.
identifierstringIdentifier
Bar(Edge, Material, Section, string, Truss_chr_type)
Construct a truss element.
public Bar(Edge edge, Material material, Section section, string identifier = "B", Truss_chr_type trussBehaviour = null)
Parameters
edgeEdgematerialMaterialsectionSectionidentifierstringtrussBehaviourTruss_chr_type
Exceptions
Bar(Point3d, Point3d, Material, Section, BarType, Vector3d, Eccentricity, Eccentricity, Connectivity, Connectivity, string)
Construct beam or column with uniform section and uniform start/end conditions
public Bar(Point3d startPoint, Point3d endPoint, Material material, Section section, BarType type, Vector3d localY = null, Eccentricity startEccentricity = null, Eccentricity endEccentricity = null, Connectivity startConnectivity = null, Connectivity endConnectivity = null, string identifier = "B")
Parameters
startPointPoint3dendPointPoint3dmaterialMaterialsectionSectionSection, same at start/end.
typeBarTypelocalYVector3dVector to orient the cross section. If null, localY will be set as a cross product between Z-Axis and the local X Axis./end
startEccentricityEccentricityAnalytical eccentricity at start. If null, eccentricity set to 0.
endEccentricityEccentricityAnalytical eccentricity at end. If null, eccentricity set to 0.
startConnectivityConnectivityConnectivity. Connectivity set to Rigid if null.
endConnectivityConnectivityConnectivity. Connectivity set to Rigid if null.
identifierstringIdentifier
Fields
End
public string End
Field Value
Ptc
public List<Ptc> Ptc
Field Value
Reinforcement
public List<BarReinforcement> Reinforcement
Field Value
ShellModel
public ShellModelType ShellModel
Field Value
_barPart
public BarPart _barPart
Field Value
_maxCompression
Truss only.
public double _maxCompression
Field Value
_maxTension
Truss only.
public double _maxTension
Field Value
Properties
BarPart
public BarPart BarPart { get; set; }
Property Value
CompressionPlasticity
Truss only.
public bool CompressionPlasticity { get; set; }
Property Value
Edge
public Edge Edge { get; }
Property Value
LongitudinalBars
public List<BarReinforcement> LongitudinalBars { get; }
Property Value
MaxCompression
public double MaxCompression { get; set; }
Property Value
MaxTension
public double MaxTension { get; set; }
Property Value
StageId
public int StageId { get; set; }
Property Value
Stirrups
public List<BarReinforcement> Stirrups { get; }
Property Value
TensionPlasticity
Truss only.
public bool TensionPlasticity { get; set; }
Property Value
TrussBehaviour
public Truss_chr_type TrussBehaviour { get; set; }
Property Value
Type
public BarType Type { get; set; }
Property Value
Methods
GetUniqueInstanceCount()
This value will be used to set number (like ".1") part of the entity name (like "B.1"). Typically this is a counter starting at 1 and incrementing for each new instance of this class that has been created.
protected override int GetUniqueInstanceCount()
Returns
- int
A unique number.
IsConcrete()
public bool IsConcrete()
Returns
IsSteel()
public bool IsSteel()
Returns
IsTimber()
public bool IsTimber()
Returns
ToShellModel(ShellModelType)
Change the analytical model of the bar into a shell model.
public void ToShellModel(ShellModelType type)
Parameters
typeShellModelType
Exceptions
ToString()
public override string ToString()
Returns
Truss(Edge, Material, Section, string)
Construct a truss element.
public static Bar Truss(Edge edge, Material material, Section section, string identifier)
Parameters
Returns
Exceptions
UpdateEntities()
public void UpdateEntities()
UpdateMaterial(Material)
Update Sections for a Bar Element. Material for Composite Section and Delta Beam are not implemented yet. Send us a request.
public void UpdateMaterial(Material material)
Parameters
materialMaterial
Exceptions
UpdateSection(Section)
public void UpdateSection(Section section)
Parameters
sectionSection
UpdateSection(Section[])
Update Sections for a Bar Element. Composite Section and Delta Beam are not implemented yet. Send us a request.
public void UpdateSection(Section[] sections)
Parameters
sectionsSection[]