Code Monkey home page Code Monkey logo

thermal's Introduction

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

thermal's People

Contributors

konstantin8105 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.