Documentation ¶
Overview ¶
This package provides a front-end to drive the MuMax2 simulation engine. The front-end executes an input file written in a scripting language like python and makes it communicate with the engine.
Index ¶
- Constants
- func AddMethods(methods map[string]reflect.Value, receiver_ interface{})
- func ConvertCase(funcName string) string
- func GetLatestVersionNumber(url string) (version int)
- func GetOutputDir(inputFile string) string
- func Main()
- func RemoveDirContent(outputDir string) filepath.WalkFunc
- func ServeClient(inputfile string, ClientPath string)
- type Client
Constants ¶
View Source
const ( INFIFO = "in.fifo" // FIFO filename for mumax->subprocess text-based function calls. OUTFIFO = "out.fifo" // FIFO filename for mumax<-subprocess text-based function calls. HANDSHAKEFILE = "handshake" // Presence of this file indicates subprocess initialization OK. PORT = "0" SERVERADDR = "localhost" EOM = "<<< End of mumax message >>>" NOTRUNNING = 0 // CLIENT IS NOT RUNNING RUNNING = 1 // CLIENT IS RUNNING TERMINATE = 255 // CLIENT ASKS MUMAX2 TO TERMINATE ALL THE CLIENTS EXIT = 254 // CLIENT ASKS MUMAX2 TO EXIT, ENSURING THAT ALL OTHER JOBS HAVE BEEN DONE LOGFILENAME = "hotspin.log" )
View Source
const ( WELCOME = ` hotspin v0.1.0114α by Mykola Dvornik (DyNaMat, Ghent University, Belgium) ` LOGFILE = "hotspin.log" SENDMAIL = "\n------\nIf you believe this is a bug, please file an issue on https://github.com/godsic/hotspin/issues. Be sure to include the log file \"" + LOGFILE + "\n------\n" )
View Source
const BUFSIZE = 4096
IO buffer size
Variables ¶
This section is empty.
Functions ¶
func AddMethods ¶
Adds all public methods of receiver to map INTERNAL, but needed by package apigen
func ConvertCase ¶
converts a function name in Go-style casing to the case we want in the API
func GetLatestVersionNumber ¶
Read a text file on a webserver that should contain a single string representing an integer.
func RemoveDirContent ¶
func ServeClient ¶
Gets the response from the client and starts the slave server
Types ¶
Click to show internal directories.
Click to hide internal directories.