Table of Contents

Class Bar

Namespace
FemDesign.Bars
Assembly
FemDesign.Core.dll

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

edge Edge
type BarType
compositeSection CompositeSection
eccentricity Eccentricity

Analytical eccentricity, same at start/end. Eccentricity set to 0,0 if null.

connectivity Connectivity

Connectivity, same at start/end. Connectivity set to Rigid if null.

identifier string

Identifier

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

edge Edge
type BarType
compositeSection CompositeSection
startEccentricity Eccentricity

Analytical start eccentricity

endEccentricity Eccentricity

Analytical end eccentricity

startConnectivity Connectivity

Start connectivity

endConnectivity Connectivity

End connectivity

identifier string

Identifier

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

edge Edge
type BarType
material Material
section Section

Section, same at start/end.

startEccentricity Eccentricity

Analytical eccentricity at start. If null, eccentricity set to 0.

endEccentricity Eccentricity

Analytical eccentricity at end. If null, eccentricity set to 0.

startConnectivity Connectivity

Start connectivity.

endConnectivity Connectivity

End connectivity.

identifier string

Identifier

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

edge Edge
type BarType
material Material
startSection Section

Start section.

endSection Section

End section.

startEccentricity Eccentricity

Analytical eccentricity at start. If null, eccentricity set to 0.

endEccentricity Eccentricity

Analytical eccentricity at end. If null, eccentricity set to 0.

startConnectivity Connectivity

Start connectivity.

endConnectivity Connectivity

End connectivity.

identifier string

Identifier

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

edge Edge
type BarType
material Material
sections Section[]

List of sections, 1 (uniform) or 2 (start/end) items.

eccentricities Eccentricity[]

List of analytical eccentricities, 1 (uniform) or 2 (start/end) items.

connectivities Connectivity[]

List of connectivities, 1 (uniform) or 2 (start/end) items.

identifier string

Identifier

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

edge Edge
type BarType
material Material
sections Section[]

List of sections, 2 or more items.

positions double[]

List of parametric (0-1) section positions, 2 or more items.

eccentricities Eccentricity[]

List of analytical eccentricities, 2 or more items.

startConnectivity Connectivity

Start connectivity.

endConnectivity Connectivity

End connectivity.

identifier string

Identifier

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

edge Edge
material Material
section Section

Section, same at start/end.

type BarType
eccentricity Eccentricity

Analytical eccentricity, same at start and end. If null, eccentricity set to 0.

connectivity Connectivity

Connectivity, same at start/end. Connectivity set to Rigid if null.

identifier string

Identifier

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

edge Edge
material Material
section Section
identifier string
trussBehaviour Truss_chr_type

Exceptions

Exception

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

startPoint Point3d
endPoint Point3d
material Material
section Section

Section, same at start/end.

type BarType
localY Vector3d

Vector to orient the cross section. If null, localY will be set as a cross product between Z-Axis and the local X Axis./end

startEccentricity Eccentricity

Analytical eccentricity at start. If null, eccentricity set to 0.

endEccentricity Eccentricity

Analytical eccentricity at end. If null, eccentricity set to 0.

startConnectivity Connectivity

Connectivity. Connectivity set to Rigid if null.

endConnectivity Connectivity

Connectivity. Connectivity set to Rigid if null.

identifier string

Identifier

Fields

End

public string End

Field Value

string

Ptc

public List<Ptc> Ptc

Field Value

List<Ptc>

Reinforcement

public List<BarReinforcement> Reinforcement

Field Value

List<BarReinforcement>

ShellModel

public ShellModelType ShellModel

Field Value

ShellModelType

_barPart

public BarPart _barPart

Field Value

BarPart

_maxCompression

Truss only.

public double _maxCompression

Field Value

double

_maxTension

Truss only.

public double _maxTension

Field Value

double

Properties

BarPart

public BarPart BarPart { get; set; }

Property Value

BarPart

CompressionPlasticity

Truss only.

public bool CompressionPlasticity { get; set; }

Property Value

bool

Edge

public Edge Edge { get; }

Property Value

Edge

LongitudinalBars

public List<BarReinforcement> LongitudinalBars { get; }

Property Value

List<BarReinforcement>

MaxCompression

public double MaxCompression { get; set; }

Property Value

double

MaxTension

public double MaxTension { get; set; }

Property Value

double

StageId

public int StageId { get; set; }

Property Value

int

Stirrups

public List<BarReinforcement> Stirrups { get; }

Property Value

List<BarReinforcement>

TensionPlasticity

Truss only.

public bool TensionPlasticity { get; set; }

Property Value

bool

TrussBehaviour

public Truss_chr_type TrussBehaviour { get; set; }

Property Value

Truss_chr_type

Type

public BarType Type { get; set; }

Property Value

BarType

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

bool

IsSteel()

public bool IsSteel()

Returns

bool

IsTimber()

public bool IsTimber()

Returns

bool

ToShellModel(ShellModelType)

Change the analytical model of the bar into a shell model.

public void ToShellModel(ShellModelType type)

Parameters

type ShellModelType

Exceptions

ArgumentException

ToString()

public override string ToString()

Returns

string

Truss(Edge, Material, Section, string)

Construct a truss element.

public static Bar Truss(Edge edge, Material material, Section section, string identifier)

Parameters

edge Edge
material Material
section Section
identifier string

Returns

Bar

Exceptions

Exception

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

material Material

Exceptions

NotImplementedException

UpdateSection(Section)

public void UpdateSection(Section section)

Parameters

section Section

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

sections Section[]

Exceptions

ArgumentException
NotImplementedException