Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CubicEOS ¶
func CubicEOS(cfg EOSCfg) ([3]complex128, error)
CubicEOS solves the cubic equation and returns the volumes
func ResultPrinter ¶
func ResultPrinter(c [3]complex128)
ResultPrinter prints physically meaningfull solutions
func SolveCubic ¶
func SolveCubic(a, b, c, d float64) ([3]complex128, error)
SolveCubic solves ax^3 + bx^2 + cx + d = 0 Returns all 3 roots (possibly complex).
Types ¶
type EOSCfg ¶
type EOSCfg struct {
Type EOSType
T float64 //Absolute temp
P float64 //Pressure
Tc float64 //Critical temp (Absolute)
Pc float64 //Critical pressure
W float64 //Acentric factor (SRK and PR only)
R float64 //Universal gas constant
}
EOSCfg is a configuration struct for an equation of state
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
eos-cli
command
|
|
|
web-test
command
|
|
|
internal
|
|
|
web/components/icon
templui component icon - version: v0.97.0 installed by templui v0.97.0
|
templui component icon - version: v0.97.0 installed by templui v0.97.0 |
|
web/pages
templ: version: v0.3.943
|
templ: version: v0.3.943 |
|
web/utils
templui util templui.go - version: v0.97.0 installed by templui v0.97.0
|
templui util templui.go - version: v0.97.0 installed by templui v0.97.0 |
Click to show internal directories.
Click to hide internal directories.





