DG1D

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

This section is empty.

Functions

func Gamma0

func Gamma0(alpha, beta float64) float64

func Gamma1

func Gamma1(alpha, beta float64) float64

func GeometricFactors1D

func GeometricFactors1D(Dr, X utils.Matrix) (J, Rx utils.Matrix)

func GradJacobiP

func GradJacobiP(r utils.Vector, alpha, beta float64, N int) (p []float64)

func GradVandermonde1D

func GradVandermonde1D(r utils.Vector, N int) (Vr utils.Matrix)

func JacobiGL

func JacobiGL(alpha, beta float64, N int) (R utils.Vector)

func JacobiGQ

func JacobiGQ(alpha, beta float64, N int) (X, W utils.Vector)

func JacobiP

func JacobiP(r utils.Vector, alpha, beta float64, N int) (p []float64)

func LagrangePolyAtJ

func LagrangePolyAtJ(r float64, R []float64, j int) (s float64)

func LegendreZeros

func LegendreZeros(N int, reverseO ...bool) (X []float64)

func Lift1D

func Lift1D(V utils.Matrix, Np, Nfaces, Nfp int) (LIFT utils.Matrix)

func Minmod

func Minmod(vecs ...utils.Vector) (R utils.Vector)

func MinmodB

func MinmodB(M, h float64, vecs ...utils.Vector) (R utils.Vector)

func Normals1D

func Normals1D(Nfaces, Nfp, K int) (NX utils.Matrix)

func SimpleMesh1D

func SimpleMesh1D(xmin, xmax float64, K int) (VX utils.Vector, EToV utils.Matrix)

func Vandermonde1D

func Vandermonde1D(N int, R utils.Vector) (V utils.Matrix)

Types

type Elements1D

type Elements1D struct {
	K, Np, Nfp, NFaces                int
	R, VX, FMask                      utils.Vector
	EToV, EToE, EToF                  utils.Matrix
	X, Dr, Rx, FScale, NX, LIFT       utils.Matrix
	V, Vinv                           utils.Matrix
	VmapM, VmapP, VmapB, VmapI, VmapO utils.Index
	MapB, MapI, MapO                  utils.Index
}

func NewElements1D

func NewElements1D(N int, VX utils.Vector, EToV utils.Matrix, ntA ...NODE_TYPE) (el *Elements1D)

func (*Elements1D) BuildMaps1D

func (el *Elements1D) BuildMaps1D()

func (*Elements1D) Connect1D

func (el *Elements1D) Connect1D()

func (*Elements1D) FaceMap

func (el *Elements1D) FaceMap() (VmapM, VmapP utils.Index)

func (*Elements1D) LagrangeInterpolant

func (el *Elements1D) LagrangeInterpolant(r float64) (Li utils.Matrix)

func (Elements1D) SlopeLimitLin

func (el Elements1D) SlopeLimitLin(ul, xl utils.Matrix, vm1, v0, vp1 utils.Vector) (ULim utils.Matrix)

func (Elements1D) SlopeLimitN

func (el Elements1D) SlopeLimitN(U utils.Matrix, M float64) (ULim utils.Matrix)

func (*Elements1D) Startup1D

func (el *Elements1D) Startup1D(nt NODE_TYPE)

type NODE_TYPE

type NODE_TYPE uint
const (
	GAUSS NODE_TYPE = iota
	GAUSS_LOBATO
)

Jump to

Keyboard shortcuts

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