Documentation
¶
Overview ¶
The MSH file format version 2:
https://gmsh.info/doc/texinfo/gmsh.html#MSH-file-format-version-2-_0028Legacy_0029
$MeshFormat version-number file-type data-size $EndMeshFormat $PhysicalNames number-of-names physical-dimension physical-tag "physical-name" … $EndPhysicalNames $Nodes number-of-nodes node-number x-coord y-coord z-coord … $EndNodes $Elements number-of-elements elm-number elm-type number-of-tags < tag > … node-number-list … $EndElements
Index ¶
- Constants
- Variables
- func DefaultGmsh()
- func Generate(geoContent string) (mshContent string, err error)
- type Element
- type ElementType
- type Msh
- func (msh *Msh) AddMsh(source Msh) (err error)
- func (src Msh) Clone() Msh
- func (msh Msh) GetNode(Id int) (index int)
- func (msh *Msh) Index1() (err error)
- func (msh *Msh) MaxElementIndex() int
- func (msh *Msh) MaxNodeIndex() int
- func (msh *Msh) MergeNodes(minDistance float64)
- func (msh *Msh) RemoveElements(ets ...ElementType)
- func (msh *Msh) Sort(ets ...ElementType)
- func (msh Msh) String() string
- type Node
- type PhysicalName
Constants ¶
View Source
const ( Point ElementType = 15 Line = 1 Triangle = 2 Quadrangle = 3 Tetrahedron = 4 )
Variables ¶
View Source
var GmshApp = flag.String("gmsh", "", "Example:\n`gmsh` for Linux\n`gmsh.exe` for Windows")
Functions ¶
func DefaultGmsh ¶
func DefaultGmsh()
Types ¶
type ElementType ¶
type ElementType int
type Msh ¶
type Msh struct { PhysicalNames []PhysicalName Nodes []Node Elements []Element }
func (*Msh) MaxElementIndex ¶
func (*Msh) MaxNodeIndex ¶
func (*Msh) MergeNodes ¶
func (*Msh) RemoveElements ¶
func (msh *Msh) RemoveElements(ets ...ElementType)
func (*Msh) Sort ¶
func (msh *Msh) Sort(ets ...ElementType)
type PhysicalName ¶
Click to show internal directories.
Click to hide internal directories.