section

package
v0.0.0-...-97346e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 3 Imported by: 1

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--->|

func (Ibeam) Area

func (s Ibeam) Area() float64

Area - cross-section Area

func (Ibeam) Check

func (s Ibeam) Check() error

Check - Check property of section

func (Ibeam) Jmin

func (s Ibeam) Jmin() float64

Jmin - Minimal moment inertia

func (Ibeam) Jx

func (s Ibeam) Jx() float64

Jx - Moment inertia of axe X

func (Ibeam) Jz

func (s Ibeam) Jz() float64

Jz - Moment inertia of axe Z

func (Ibeam) Wx

func (s Ibeam) Wx() float64

Wx - Section modulus of axe X

func (Ibeam) Wz

func (s Ibeam) Wz() float64

Wz - Section modulus of axe Z

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

func (Plate) Area

func (s Plate) Area() float64

Area - cross-section Area

func (Plate) Check

func (s Plate) Check() error

Check - Check property of section

func (Plate) Jmin

func (s Plate) Jmin() float64

Jmin - Minimal moment inertia

func (Plate) Jx

func (s Plate) Jx() float64

Jx - Moment inertia of axe X

func (Plate) Jz

func (s Plate) Jz() float64

Jz - Moment inertia of axe Z

func (Plate) Wx

func (s Plate) Wx() float64

Wx - Section modulus of axe X

func (Plate) Wz

func (s Plate) Wz() float64

Wz - Section modulus of axe Z

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) Area

func (s RectangleSection) Area() float64

Area - cross-section Area

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

func (RectangleSection) Jx

func (s RectangleSection) Jx() float64

Jx - Moment inertia of axe X

func (RectangleSection) Jz

func (s RectangleSection) Jz() float64

Jz - Moment inertia of axe Z

func (RectangleSection) Wx

func (s RectangleSection) Wx() float64

Wx - Section modulus of axe X

func (RectangleSection) Wz

func (s RectangleSection) Wz() float64

Wz - Section modulus of axe Z

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

func (TriangleSection) Jx

func (s TriangleSection) Jx() (j float64)

Jx - Moment inertia of axe X

func (TriangleSection) Jz

func (s TriangleSection) Jz() (j float64)

Jz - Moment inertia of axe Z

func (TriangleSection) Wx

func (s TriangleSection) Wx() (j float64)

Wx - Section modulus of axe X

func (TriangleSection) Wz

func (s TriangleSection) Wz() (j float64)

Wz - Section modulus of axe Z

type Tube

type Tube struct {
	OD  float64 // outside diameter// meter
	Thk float64 // thickness // meter
}

Tube - section of tube by outside diameter and thickness

func (Tube) Area

func (s Tube) Area() float64

Area - cross-section area

func (Tube) Check

func (s Tube) Check() error

Check - check property of section

func (Tube) Jmin

func (s Tube) Jmin() float64

Jmin - Minimal moment inertia

func (Tube) Jx

func (s Tube) Jx() float64

Jx - Moment inertia of axe X

func (Tube) Jz

func (s Tube) Jz() float64

Jz - Moment inertia of axe Z

func (Tube) Wx

func (s Tube) Wx() float64

Wx - Section modulus of axe X

func (Tube) Wz

func (s Tube) Wz() float64

Wz - Section modulus of axe Z

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL