Documentation ¶
Overview ¶
Package section - created for calculate typically property of section
Example ¶
This a simple example
s := Ibeam{H: 0.1, B: 0.1, Tf: 0.005, Tw: 0.002} fmt.Printf("Moment inertia of I-beam by axe X is %.4e m^-4", s.Jx())
Output: Moment inertia of I-beam by axe X is 2.3798e-06 m^-4
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coord ¶
type Coord struct {
X, Z float64 // coordinates // meter
}
Coord - coordinate of point in plane XOZ used for triangle points
type Ibeam ¶
type Ibeam struct { H float64 // height of section // meter B float64 // width of flange // meter Tw float64 // thickness of web // meter Tf float64 // thickness of flange // meter }
Ibeam - section like IPE, HEB
Tf ========== --- || /\ || | Tw|| | H || | || V ========== --- | | |<--B--->|
type Plate ¶
type Plate struct { Height float64 // height of plate // meter Thickness float64 // thickness of plate // meter }
Plate - typical section of plate Geomerty of plate
/\Z | +|+ | | | |--> X | | | | +-+
Example ¶
This is a simple example
plate := Plate{Height: 0.080 /* meter */, Thickness: 0.008 /* meter */} fmt.Printf("Area of plate is %.1e m^2\n", plate.Area())
Output: Area of plate is 6.4e-04 m^2
type Rectangle ¶
type Rectangle struct {
XCenter, ZCenter float64 // coordinate of center // meter
Height, Width float64 // size of rectangle // meter
}
Rectangle - elementary rectangle element for section design
type RectangleSection ¶
type RectangleSection struct {
Parts []Rectangle // Slice of section rectangle
}
RectangleSection - section created only with rectangle
func (RectangleSection) Check ¶
func (s RectangleSection) Check() error
Check - Check property of section
func (RectangleSection) Jmin ¶
func (s RectangleSection) Jmin() float64
Jmin - Minimal moment inertia
type Section ¶
type Section interface { Area() float64 // Cross-section area Jx() float64 // Moment inertia of axe X Jz() float64 // Moment inertia of axe Z Jmin() float64 // Minimal moment inertia Wx() float64 // Section modulus of axe X Wz() float64 // Section modulus of axe Z Check() error // Check property of section }
Section - interface with typically property of section
type Triangle ¶
type Triangle struct {
P [3]Coord // 3 coordinate of points
}
Triangle - elementary triangle element for design section and have 3 coordinate of points.
type TriangleSection ¶
type TriangleSection struct {
Elements []Triangle // Slice of triangles
}
TriangleSection - section created by triangles. It is a universal type of section
func (TriangleSection) Area ¶
func (s TriangleSection) Area() (area float64)
Area - cross-section area
func (TriangleSection) Check ¶
func (s TriangleSection) Check() error
Check - check property of section
func (TriangleSection) Jmin ¶
func (s TriangleSection) Jmin() (j float64)
Jmin - Minimal moment inertia