analysis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OP int = iota
	TRAN
	AC
	DC
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACAnalysis

type ACAnalysis struct {
	BaseAnalysis
	// contains filtered or unexported fields
}

func NewAC

func NewAC(fStart, fStop float64, nPoints int, pType string) *ACAnalysis

func (*ACAnalysis) Execute

func (ac *ACAnalysis) Execute() error

func (*ACAnalysis) Setup

func (ac *ACAnalysis) Setup(ckt *circuit.Circuit) error

type Analysis

type Analysis interface {
	Setup(ckt *circuit.Circuit) error
	Execute() error
	GetResults() map[string][]float64
}

type BaseAnalysis

type BaseAnalysis struct {
	Circuit *circuit.Circuit
	// contains filtered or unexported fields
}

func NewBaseAnalysis

func NewBaseAnalysis() *BaseAnalysis

func (*BaseAnalysis) CheckConvergence

func (a *BaseAnalysis) CheckConvergence(oldSol, newSol []float64) bool

func (*BaseAnalysis) GetResults

func (a *BaseAnalysis) GetResults() map[string][]float64

func (*BaseAnalysis) StoreACResult

func (a *BaseAnalysis) StoreACResult(freq float64, solution map[string]complex128)

func (*BaseAnalysis) StoreTimeResult

func (a *BaseAnalysis) StoreTimeResult(time float64, solution map[string]float64)

type DCSweep

type DCSweep struct {
	BaseAnalysis
	// contains filtered or unexported fields
}

func NewDCSweep

func NewDCSweep(sources []string, starts, stops []float64, numSteps []float64) *DCSweep

func (*DCSweep) Execute

func (dc *DCSweep) Execute() error

func (*DCSweep) Setup

func (dc *DCSweep) Setup(ckt *circuit.Circuit) error

func (*DCSweep) StoreNestedResult

func (dc *DCSweep) StoreNestedResult(val1, val2 float64, solution map[string]float64)

func (*DCSweep) StoreResult

func (dc *DCSweep) StoreResult(sweepVal float64, solution map[string]float64)

type OperatingPoint

type OperatingPoint struct{ BaseAnalysis }

func NewOP

func NewOP() *OperatingPoint

func (*OperatingPoint) Execute

func (op *OperatingPoint) Execute() error

func (*OperatingPoint) Setup

func (op *OperatingPoint) Setup(ckt *circuit.Circuit) error

type Transient

type Transient struct {
	BaseAnalysis
	// contains filtered or unexported fields
}

func NewTransient

func NewTransient(tStart, tStop, tStep, tMax float64, uic bool) *Transient

func (*Transient) Execute

func (tr *Transient) Execute() error

func (*Transient) Setup

func (tr *Transient) Setup(ckt *circuit.Circuit) error

Jump to

Keyboard shortcuts

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