thermal

package module
v0.0.0-...-ee51fcb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 6 Imported by: 0

README

thermal

Determination of Heat Gain or Loss and the Surface Temperatures of Insulated Pipe based on C680

package thermal // import "github.com/Konstantin8105/thermal"


CONSTANTS

const (
	FlatVerticalSurface Orientation = 1
	FlatHeatFlowDown                = 2
	FlatHeatFlowUp                  = 3
	PipeVertical                    = 1
	PipeHorizontal                  = 2
)

FUNCTIONS

func Cylinder(o io.Writer, Tservice float64, layers []Layer, Tamb float64, es *ExternalSurface, ODpipe float64) (
	Q float64, T []float64, err error)
func Flat(o io.Writer, Tservice float64, layers []Layer, Tamb float64, es *ExternalSurface) (
	Q float64, T []float64, err error)

TYPES

type ExternalSurface struct {
	// Has unexported fields.
}
    ExternalSurface is property of thermal surface

func Emiss(Wind, Emiss float64, orient Orientation) *ExternalSurface

func Surf(Surf float64) *ExternalSurface

type Layer struct {
	Thk float64
	Mat Material
}
    Layer of insulation

type Material interface {
	ConductivityAvg(F1, F2 float64) float64
}
    Material is typical interface with thermal conductivity between 2
    temperatires

func NewMaterialExp(a, b float64) Material
    NewMaterialExp return material with exponents functions

func NewMaterialPolynominal(c ...float64) Material
    NewMaterialPolynominal return material with polynomial thermal conductivity
    property

func NewMaterialType3(
	a1, b1, TL float64,
	a2, b2, TU float64,
	a3, b3 float64,
) Material
    NewMaterialType3 return material type 3

type MaterialExp struct {
	// Has unexported fields.
}
    MaterialExp is material with exponents function thermal conductivity by:

        ln(k) = a + b * T

func (m MaterialExp) ConductivityAvg(F1, F2 float64) float64
    ConductivityAvg return thermal conductivity between 2 temperatires.
    Temperature unit: degree F.

type MaterialPolynomial struct {
	// Has unexported fields.
}
    MaterialPolynomial is material with polynomial thermal conductivity property
    by:

        f[0] + f[1]*T + f[2]*T*T + ...

type MaterialType3 struct {
	// Has unexported fields.
}
    MaterialType3 is material type 3

func (m MaterialType3) ConductivityAvg(F1, F2 float64) float64
    ConductivityAvg return thermal conductivity between 2 temperatires.
    Temperature unit: degree F.

type Orientation int8

Documentation

Index

Constants

View Source
const (
	FlatVerticalSurface Orientation = 1
	FlatHeatFlowDown                = 2
	FlatHeatFlowUp                  = 3
	PipeVertical                    = 1
	PipeHorizontal                  = 2
)

Variables

This section is empty.

Functions

func Cylinder

func Cylinder(o io.Writer, Tservice float64, layers []Layer, Tamb float64, es *ExternalSurface, ODpipe float64) (
	Q float64, T []float64, err error)

func Flat

func Flat(o io.Writer, Tservice float64, layers []Layer, Tamb float64, es *ExternalSurface) (
	Q float64, T []float64, err error)

Types

type ExternalSurface

type ExternalSurface struct {
	// contains filtered or unexported fields
}

ExternalSurface is property of thermal surface

func Emiss

func Emiss(Wind, Emiss float64, orient Orientation) *ExternalSurface

func Surf

func Surf(Surf float64) *ExternalSurface

type Layer

type Layer struct {
	Thk float64
	Mat Material
}

Layer of insulation

type Material

type Material interface {
	ConductivityAvg(F1, F2 float64) float64
}

Material is typical interface with thermal conductivity between 2 temperatires

func NewMaterialExp

func NewMaterialExp(a, b float64) Material

NewMaterialExp return material with exponents functions

func NewMaterialPolynomial

func NewMaterialPolynomial(c ...float64) Material

NewMaterialPolynominal return material with polynomial thermal conductivity property

func NewMaterialType3

func NewMaterialType3(
	a1, b1, TL float64,
	a2, b2, TU float64,
	a3, b3 float64,
) Material

NewMaterialType3 return material type 3

type MaterialExp

type MaterialExp struct {
	// contains filtered or unexported fields
}

MaterialExp is material with exponents function thermal conductivity by:

ln(k) = a + b * T

func (MaterialExp) ConductivityAvg

func (m MaterialExp) ConductivityAvg(F1, F2 float64) float64

ConductivityAvg return thermal conductivity between 2 temperatires. Temperature unit: degree F.

type MaterialPolynomial

type MaterialPolynomial struct {
	// contains filtered or unexported fields
}

MaterialPolynomial is material with polynomial thermal conductivity property by:

f[0] + f[1]*T + f[2]*T*T + ...

func (MaterialPolynomial) ConductivityAvg

func (m MaterialPolynomial) ConductivityAvg(F2, F1 float64) float64

ConductivityAvg return thermal conductivity between 2 temperatires. Temperature unit: degree F.

type MaterialType3

type MaterialType3 struct {
	TL float64
	TU float64
	// contains filtered or unexported fields
}

MaterialType3 is material type 3

func (MaterialType3) ConductivityAvg

func (m MaterialType3) ConductivityAvg(F1, F2 float64) float64

ConductivityAvg return thermal conductivity between 2 temperatires. Temperature unit: degree F.

type Orientation

type Orientation int8

Jump to

Keyboard shortcuts

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