Extensions

PMesh

When using PMesh, VCDataSets defines the string literal mesh"..." for reading a PMesh.Mesh.

mesh = vcmesh"bunny"
mesh = vcmesh"bunny:3NT" # template PMesh.Types.MESH3NT === PMesh.mt"3NT"

The literal takes the data set name to file and an optional mesh template type (as for PMesh.mt"...") separated by :.

The invoked macro @vcmesh_str calls VCDataSets.mesh(...) which reads a mesh from VCDataSets.file using only the name keyword argument:

mesh = VCDataSets.mesh(:fandisk) :: PMesh.Types.MESH3
mesh = VCDataSets.mesh(:fandisk; template = PMesh.Types.MESH3N)

mesh = VCDataSets.mesh3(:fandisk) :: PMesh.Types.MESH3
mesh = VCDataSets.mesh3n(:fandisk) :: PMesh.Types.MESH3N
mesh = VCDataSets.mesh3nt(:fandisk) :: PMesh.Types.MESH3NT

See also PMesh, file