eplate

package module
v0.0.0-...-2c70e85 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 12 Imported by: 0

README

eplate

calculate plate with ortho stiffiners by buckling, deformation, stress

Documentation

Overview

Example
d := Design{
	W:   1800,
	H:   1800,
	Thk: 12,
	Stiffiners: []Stiffiner{
		Stiffiner{
			W:            100,
			Thk:          10,
			Offset:       600,
			IsHorizontal: true,
		},
		Stiffiner{
			W:            100,
			Thk:          10,
			Offset:       1200,
			IsHorizontal: true,
		},
	},
}
l := Load{
	Sx:  1.0,
	Sy:  0.0,
	Tau: 0.0,
}
c := DefaultConfig()
c.MaxDistance = 100
fmt.Fprintf(os.Stdout, "%s\n%s\n", d, l)
buckle, Smax, Dmax := Calculate(d, l, c)

var buf bytes.Buffer
w := tabwriter.NewWriter(&buf, 0, 0, 1, ' ', tabwriter.TabIndent)
fmt.Fprintf(w, "|\tBuckling factor\t%8.2f\ttimes\t|\n", buckle)
fmt.Fprintf(w, "|\tMaximal stress\t%8.2f\tMPa\t|\n", Smax)
fmt.Fprintf(w, "|\tMaximal deformation\t%8.2f\tmm\t|\n", Dmax)
w.Flush()
fmt.Fprintf(os.Stdout, "%s\n", buf.String())
Output:

Base plate dimensions:
| Heigth:     1800 mm |
| Width:      1800 mm |
| Thickness:    12 mm |

Stiffiner position: 1
Stiffiner dimensions:
| Width:               100 mm |
| Thickness:            10 mm |
| Offset from plane:   600 mm |
| Horizontal:        true     |
Stiffiner position: 2
Stiffiner dimensions:
| Width:               100 mm |
| Thickness:            10 mm |
| Offset from plane:  1200 mm |
| Horizontal:        true     |

Loads:
| Sx:                  1.000 MPa |
| Sy:                  0.000 MPa |
| Tau:                 0.000 MPa |
| Lateral pressure:    0.000 MPa |

| Buckling factor       269.93 times |
| Maximal stress          1.05 MPa   |
| Maximal deformation     0.03 mm    |

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(d Design, l Load, c *Config) (buckle, Smax, Dmax float64)

Types

type Config

type Config struct {
	FET         FiniteElementType
	MaxDistance uint64
	Elasticity  float64 // MPa
	Ratio       float64 // dimensionless
}

func DefaultConfig

func DefaultConfig() (def *Config)

type Design

type Design struct {
	W, H, Thk  uint64 // mm
	Stiffiners []Stiffiner
}

func (Design) String

func (d Design) String() string

type FiniteElementType

type FiniteElementType string
const (
	S4 FiniteElementType = "S4"
)

type Load

type Load struct {
	Sx, Sy, Tau float64 // MPa
	Pressure    float64 // Lateral pressure, MPa
}

func (Load) String

func (l Load) String() string

type Stiffiner

type Stiffiner struct {
	W, Thk       uint64 // mm
	Offset       uint64 // distance from zero point
	IsHorizontal bool
}

func (Stiffiner) String

func (s Stiffiner) String() string

Jump to

Keyboard shortcuts

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