Documentation ¶
Index ¶
- Constants
- func D3plotIndexForID(id uint64, IDs []uint64) uint64
- func KeyFileParse(fileName string, parseConfig KeyFileParseConfig) (Keywords, *KeyFileWarning, error)
- type Binout
- func (bin_file Binout) Close()
- func (bin_file Binout) GetChildren(path string) []string
- func (bin_file Binout) GetNumTimesteps(path string) (uint64, error)
- func (bin_file Binout) GetTypeID(path string) uint64
- func (bin_file Binout) ReadFloat32(path string) ([]float32, error)
- func (bin_file Binout) ReadFloat64(path string) ([]float64, error)
- func (bin_file Binout) ReadInt16(path string) ([]int16, error)
- func (bin_file Binout) ReadInt32(path string) ([]int32, error)
- func (bin_file Binout) ReadInt64(path string) ([]int64, error)
- func (bin_file Binout) ReadInt8(path string) ([]int8, error)
- func (bin_file Binout) ReadString(path string) (string, error)
- func (bin_file Binout) ReadTimedFloat32(path string) ([][]float32, error)
- func (bin_file Binout) ReadTimedFloat64(path string) ([][]float64, error)
- func (bin_file Binout) ReadUint16(path string) ([]uint16, error)
- func (bin_file Binout) ReadUint32(path string) ([]uint32, error)
- func (bin_file Binout) ReadUint64(path string) ([]uint64, error)
- func (bin_file Binout) ReadUint8(path string) ([]uint8, error)
- func (bin_file Binout) SimplePathToReal(simple string) (string, int, bool, error)
- func (bin_file Binout) VariableExists(path string) bool
- type Card
- func (c *Card) ParseBegin(valueWidth int)
- func (c Card) ParseDone() bool
- func (c Card) ParseFloat32() (float32, error)
- func (c Card) ParseFloat32Width(valueWidth int) (float32, error)
- func (c Card) ParseFloat64() (float64, error)
- func (c Card) ParseFloat64Width(valueWidth int) (float64, error)
- func (c Card) ParseGetType() int
- func (c Card) ParseGetTypeWidth(valueWidth int) int
- func (c Card) ParseInt() (int, error)
- func (c Card) ParseIntWidth(valueWidth int) (int, error)
- func (c *Card) ParseNext()
- func (c *Card) ParseNextWidth(valueWidth int)
- func (c Card) ParseString() string
- func (c Card) ParseStringNoTrim() string
- func (c Card) ParseStringWidth(valueWidth int) string
- func (c Card) ParseStringWidthNoTrim(valueWidth int) string
- func (c Card) ParseWhole() string
- func (c Card) ParseWholeNoTrim() string
- type D3plot
- func (plotFile D3plot) Close()
- func (plotFile D3plot) NumTimeSteps() uint64
- func (plotFile D3plot) ReadAllElementIDs() ([]uint64, error)
- func (plotFile D3plot) ReadAllNodeAcceleration() ([][][3]float64, error)
- func (plotFile D3plot) ReadAllNodeCoordinates() ([][][3]float64, error)
- func (plotFile D3plot) ReadAllNodeVelocity() ([][][3]float64, error)
- func (plotFile D3plot) ReadAllTime() ([]float64, error)
- func (plotFile D3plot) ReadBeamElementIDs() ([]uint64, error)
- func (plotFile D3plot) ReadBeamElements() ([]C.d3plot_beam_con, error)
- func (plotFile D3plot) ReadBeamsState(state uint64) ([]C.d3plot_beam, error)
- func (plotFile D3plot) ReadNodeAcceleration(state uint64) ([][3]float64, error)
- func (plotFile D3plot) ReadNodeCoordinates(state uint64) ([][3]float64, error)
- func (plotFile D3plot) ReadNodeIDs() ([]uint64, error)
- func (plotFile D3plot) ReadNodeVelocity(state uint64) ([][3]float64, error)
- func (plotFile D3plot) ReadPart(partIndex uint64) (D3plotPart, error)
- func (plotFile D3plot) ReadPartByID(partID uint64, partIDs []uint64) (D3plotPart, error)
- func (plotFile D3plot) ReadPartIDs() ([]uint64, error)
- func (plotFile D3plot) ReadPartTitles() ([]string, error)
- func (plotFile D3plot) ReadRunTime() (time.Time, error)
- func (plotFile D3plot) ReadShellElementIDs() ([]uint64, error)
- func (plotFile D3plot) ReadShellElements() ([]C.d3plot_shell_con, error)
- func (plotFile D3plot) ReadShellsState(state uint64) ([]C.d3plot_shell, error)
- func (plotFile D3plot) ReadSolidElementIDs() ([]uint64, error)
- func (plotFile D3plot) ReadSolidElements() ([]C.d3plot_solid_con, error)
- func (plotFile D3plot) ReadSolidsState(state uint64) ([]C.d3plot_solid, error)
- func (plotFile D3plot) ReadThickShellElementIDs() ([]uint64, error)
- func (plotFile D3plot) ReadThickShellElements() ([]C.d3plot_thick_shell_con, error)
- func (plotFile D3plot) ReadThickShellsState(state uint64) ([]C.d3plot_thick_shell, error)
- func (plotFile D3plot) ReadTime(state uint64) (float64, error)
- func (plotFile D3plot) ReadTitle() (string, error)
- type D3plotPart
- func (part D3plotPart) BeamID(index int) uint64
- func (part D3plotPart) Free()
- func (part D3plotPart) GetNodeIDs(plotFile D3plot) ([]uint64, error)
- func (part D3plotPart) GetNodeIndices(plotFile D3plot) ([]uint64, error)
- func (part D3plotPart) GetNumNodes(plotFile D3plot) (int, error)
- func (part D3plotPart) LenBeamIDs() int
- func (part D3plotPart) LenShellIDs() int
- func (part D3plotPart) LenSolidIDs() int
- func (part D3plotPart) LenThickShellIDs() int
- func (part D3plotPart) ShellID(index int) uint64
- func (part D3plotPart) SolidID(index int) uint64
- func (part D3plotPart) ThickShellID(index int) uint64
- type KeyFileParseCallback
- type KeyFileParseConfig
- type KeyFileWarning
- type Keyword
- type Keywords
Constants ¶
View Source
const ( BinoutTypeInt8 = 1 BinoutTypeInt16 = 2 BinoutTypeInt32 = 3 BinoutTypeInt64 = 4 BinoutTypeUint8 = 5 BinoutTypeUint16 = 6 BinoutTypeUint32 = 7 BinoutTypeUint64 = 8 BinoutTypeFloat32 = 9 BinoutTypeFloat64 = 10 BinoutTypeInvalid = math.MaxUint64 )
View Source
const ( CardParseInt = C.CARD_PARSE_INT CardParseFloat = C.CARD_PARSE_FLOAT CardParseString = C.CARD_PARSE_STRING DefaultValueWidth = 10 )
Variables ¶
This section is empty.
Functions ¶
func D3plotIndexForID ¶
func KeyFileParse ¶
func KeyFileParse(fileName string, parseConfig KeyFileParseConfig) (Keywords, *KeyFileWarning, error)
Types ¶
type Binout ¶
type Binout struct {
// contains filtered or unexported fields
}
func BinoutOpen ¶
func (Binout) GetChildren ¶
func (Binout) ReadTimedFloat32 ¶
func (Binout) ReadTimedFloat64 ¶
func (Binout) SimplePathToReal ¶
func (Binout) VariableExists ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
func (*Card) ParseBegin ¶
func (Card) ParseFloat32 ¶
func (Card) ParseFloat64 ¶
func (Card) ParseGetType ¶
func (Card) ParseGetTypeWidth ¶
func (*Card) ParseNextWidth ¶
func (Card) ParseString ¶
func (Card) ParseStringNoTrim ¶
func (Card) ParseStringWidth ¶
func (Card) ParseStringWidthNoTrim ¶
func (Card) ParseWhole ¶
func (Card) ParseWholeNoTrim ¶
type D3plot ¶
type D3plot struct {
// contains filtered or unexported fields
}
func D3plotOpen ¶
func (D3plot) NumTimeSteps ¶
func (D3plot) ReadAllElementIDs ¶
func (D3plot) ReadAllNodeAcceleration ¶
func (D3plot) ReadAllNodeCoordinates ¶
func (D3plot) ReadAllNodeVelocity ¶
func (D3plot) ReadAllTime ¶
func (D3plot) ReadBeamElementIDs ¶
func (D3plot) ReadBeamElements ¶
func (plotFile D3plot) ReadBeamElements() ([]C.d3plot_beam_con, error)
func (D3plot) ReadBeamsState ¶
func (plotFile D3plot) ReadBeamsState(state uint64) ([]C.d3plot_beam, error)
func (D3plot) ReadNodeAcceleration ¶
func (D3plot) ReadNodeCoordinates ¶
TODO: Implement bindings for the 32-Bit variants
func (D3plot) ReadNodeIDs ¶
func (D3plot) ReadNodeVelocity ¶
func (D3plot) ReadPartByID ¶
func (plotFile D3plot) ReadPartByID(partID uint64, partIDs []uint64) (D3plotPart, error)
func (D3plot) ReadPartIDs ¶
func (D3plot) ReadPartTitles ¶
func (D3plot) ReadShellElementIDs ¶
func (D3plot) ReadShellElements ¶
func (plotFile D3plot) ReadShellElements() ([]C.d3plot_shell_con, error)
func (D3plot) ReadShellsState ¶
func (plotFile D3plot) ReadShellsState(state uint64) ([]C.d3plot_shell, error)
TODO: Make separate struct to wrap around c type so that history variables can be read
func (D3plot) ReadSolidElementIDs ¶
func (D3plot) ReadSolidElements ¶
func (plotFile D3plot) ReadSolidElements() ([]C.d3plot_solid_con, error)
func (D3plot) ReadSolidsState ¶
func (plotFile D3plot) ReadSolidsState(state uint64) ([]C.d3plot_solid, error)
func (D3plot) ReadThickShellElementIDs ¶
func (D3plot) ReadThickShellElements ¶
func (plotFile D3plot) ReadThickShellElements() ([]C.d3plot_thick_shell_con, error)
func (D3plot) ReadThickShellsState ¶
func (plotFile D3plot) ReadThickShellsState(state uint64) ([]C.d3plot_thick_shell, error)
TODO: Make separate struct to wrap around c type so that history variables can be read
type D3plotPart ¶
type D3plotPart struct {
// contains filtered or unexported fields
}
func (D3plotPart) BeamID ¶
func (part D3plotPart) BeamID(index int) uint64
func (D3plotPart) Free ¶
func (part D3plotPart) Free()
func (D3plotPart) GetNodeIDs ¶
func (part D3plotPart) GetNodeIDs(plotFile D3plot) ([]uint64, error)
func (D3plotPart) GetNodeIndices ¶
func (part D3plotPart) GetNodeIndices(plotFile D3plot) ([]uint64, error)
func (D3plotPart) GetNumNodes ¶
func (part D3plotPart) GetNumNodes(plotFile D3plot) (int, error)
func (D3plotPart) LenBeamIDs ¶
func (part D3plotPart) LenBeamIDs() int
func (D3plotPart) LenShellIDs ¶
func (part D3plotPart) LenShellIDs() int
func (D3plotPart) LenSolidIDs ¶
func (part D3plotPart) LenSolidIDs() int
func (D3plotPart) LenThickShellIDs ¶
func (part D3plotPart) LenThickShellIDs() int
func (D3plotPart) ShellID ¶
func (part D3plotPart) ShellID(index int) uint64
func (D3plotPart) SolidID ¶
func (part D3plotPart) SolidID(index int) uint64
func (D3plotPart) ThickShellID ¶
func (part D3plotPart) ThickShellID(index int) uint64
type KeyFileParseConfig ¶
func DefaultKeyFileParseConfig ¶
func DefaultKeyFileParseConfig() KeyFileParseConfig
type KeyFileWarning ¶
type KeyFileWarning struct {
// contains filtered or unexported fields
}
func KeyFileParseWithCallback ¶
func KeyFileParseWithCallback(fileName string, callback KeyFileParseCallback, parseConfig KeyFileParseConfig) (*KeyFileWarning, error)
func (*KeyFileWarning) Error ¶
func (w *KeyFileWarning) Error() string
Click to show internal directories.
Click to hide internal directories.