types

package
v0.0.0-...-88f8085 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BCNameMap = map[string]BCFLAG{
	"inflow":           BC_In,
	"in":               BC_In,
	"out":              BC_Out,
	"outflow":          BC_Out,
	"wall":             BC_Wall,
	"far":              BC_Far,
	"cyl":              BC_Cyl,
	"dirichlet":        BC_Dirichlet,
	"neuman":           BC_Neuman,
	"slip":             BC_Slip,
	"periodic":         BC_Periodic,
	"periodicreversed": BC_PeriodicReversed,
}

Functions

func GrowSlice

func GrowSlice(mysliceI interface{}, newCap int) (biggerSliceI interface{})

Types

type BCFLAG

type BCFLAG uint8
const (
	BC_None BCFLAG = iota
	BC_In
	BC_Dirichlet
	BC_Slip
	BC_Far
	BC_Wall
	BC_Cyl
	BC_Neuman
	BC_Out
	BC_IVortex
	BC_Periodic
	BC_PeriodicReversed
)

func (BCFLAG) String

func (i BCFLAG) String() string

type BCMAP

type BCMAP map[BCTAG][]EdgeInt // Map of BCs, key is BC tag name, e.g. "Periodic-1" or "Wall" or "Wall-top"

func (BCMAP) AddEdges

func (bm BCMAP) AddEdges(key BCTAG, edges []EdgeInt)

func (BCMAP) Print

func (bm BCMAP) Print()

type BCTAG

type BCTAG string // Tag used to name a BC consisting of a primary name ("Wall") with an optional label ("Wall-top")

func NewBCTAG

func NewBCTAG(label string) (bf BCTAG)

func (BCTAG) GetFLAG

func (bt BCTAG) GetFLAG() (bf BCFLAG)

func (BCTAG) GetLabel

func (bt BCTAG) GetLabel() (label string)

type Curve

type Curve []EdgeInt

func AssembleCurve

func AssembleCurve(bm bucketMap, start EdgeInt) (c Curve)

func (Curve) Print

func (c Curve) Print()

func (Curve) ReOrder

func (c Curve) ReOrder(reverse bool) (cc Curve, unordered bool)

type EdgeInt

type EdgeInt int64

An Edge stores the edge vertices in the original order of the vertices, so that it can be recovered with it's direction

func NewEdgeInt

func NewEdgeInt(verts [2]int) (packed EdgeInt)

func (EdgeInt) GetKey

func (e EdgeInt) GetKey() (ek EdgeKey)

func (EdgeInt) GetVertices

func (e EdgeInt) GetVertices() (verts [2]int)

type EdgeKey

type EdgeKey uint64

EdgeKey is an always positive number that stores an edge's vertices as indices in a way that can be compared An edge between vertices [4] and [0] will always be stored as [0,4], in the ascending order of the index values

func NewEdgeKey

func NewEdgeKey(verts [2]int) (packed EdgeKey)

func (EdgeKey) GetVertices

func (ek EdgeKey) GetVertices(rev bool) (verts [2]int)

Jump to

Keyboard shortcuts

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