示例#1
0
文件: exp.go 项目: bpowers/boosd
func (s *simMain) calcFlows(c runtime.Coordinator, dt float64) {
	s.Curr["rate"] = c.Data(s, "rate")
	s.Curr["in"] = ((s.Curr["rate"]) * (s.Curr["accum"]))
}
示例#2
0
文件: exp.go 项目: bpowers/boosd
func (s *simMain) calcInitial(c runtime.Coordinator, dt float64) {
	s.Curr["accum"] = c.Data(s, "accum")
	s.Curr["rate"] = c.Data(s, "rate")
}