<< gf_precond_get SciGetFem gf_slice_get >>

SciGetFem >> SciGetFem > gf_slice

gf_slice

Creation of a mesh slice. Mesh slices are very similar to a P1-discontinuous mesh_fem on which interpolation is very fast. The slice is built from a mesh object, and a description of the slicing operation, for example:: sl = gf_slice({'planar',+1,[0;0],[1;0]}, m, 5); cuts the original mesh with the half space {y>0}. Each convex of the original mesh m is simplexified (for example a quadrangle is splitted into 2 triangles), and each simplex is refined 5 times. Slicing operations can be: * cutting with a plane, a sphere or a cylinder * intersection or union of slices * isovalues surfaces/volumes * "points", "streamlines" (see below) If the first argument is a mesh_fem mf instead of a mesh, and if it is followed by a mf-field u, then the deformation u will be applied to the mesh before the slicing operation. The first argument can also be a slice.

Calling Sequence

sl = gf_slice(sliceop, {slice sl|{mesh m| mesh_fem mf, vec U}, int refine}[, mat CVfids])
sl = gf_slice('streamlines', mesh_fem mf, mat U, mat S)
sl = gf_slice('points', mesh m, mat Pts)
sl = gf_slice('load', string filename[, mesh m])

Description

General constructor for slice objects.

Creation of a mesh slice. Mesh slices are very similar to a P1-discontinuous mesh_fem on which interpolation is very fast. The slice is built from a mesh object, and a description of the slicing operation, for example:: sl = gf_slice({'planar',+1,[0;0],[1;0]}, m, 5); cuts the original mesh with the half space {y>0}. Each convex of the original mesh m is simplexified (for example a quadrangle is splitted into 2 triangles), and each simplex is refined 5 times. Slicing operations can be: * cutting with a plane, a sphere or a cylinder * intersection or union of slices * isovalues surfaces/volumes * "points", "streamlines" (see below) If the first argument is a mesh_fem mf instead of a mesh, and if it is followed by a mf-field u, then the deformation u will be applied to the mesh before the slicing operation. The first argument can also be a slice.

Command list

See Also

Authors

Y. Collette


Report an issue
<< gf_precond_get SciGetFem gf_slice_get >>