Documentation ¶
Overview ¶
package oommf provides the OVF data format as used by OOMMF.
Index ¶
- Constants
- func MustReadFile(fname string) (*data.Slice, data.Meta)
- func Read(in io.Reader) (s *data.Slice, meta data.Meta, err error)
- func ReadFile(fname string) (*data.Slice, data.Meta, error)
- func WriteOVF1(out io.Writer, q *data.Slice, meta data.Meta, dataformat string)
- func WriteOVF2(out io.Writer, q *data.Slice, meta data.Meta, dataformat string)
- type Info
Constants ¶
View Source
const ( X = 0 Y = 1 Z = 2 )
View Source
const OVF_CONTROL_NUMBER_4 = 1234567.0 // The omf format requires the first encoded number in the binary data section to be this control number
View Source
const OVF_CONTROL_NUMBER_8 = 123456789012345.0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { Desc map[string]interface{} Title string NComp int Size [3]int ValueMultiplier float32 ValueUnit string Format string // binary or text OVF int TotalTime float64 StageTime float64 SizeofFloat int // 4/8 StepSize [3]float64 MeshUnit string }
omf.Info represents the header part of an omf file. TODO: add Err to return error status Perhaps CheckErr() func
Click to show internal directories.
Click to hide internal directories.