Navigation

Operators and Keywords

Function List:

C++ API

Function File: [mesh] = msh2m_mesh_along_spline(xc,yc,Nnx,Nny,sigma)

Generate a structured mesh in a thin layer of size sigma sitting on a natural Catmull-Rom type cubic spline with control points xc, yc.

If Nnx and Nny are scalars, the mesh has Nnx nodes in the direction along the spline and Nny in the normal direction.

If Nnx and Nny are vectors they indicate the curvilinear coordinates of the mesh nodes.

The returned value mesh is a PDE-tool like mesh structure.

Be aware that if sigma is not much smaller than the curvature of the line the resulting mesh may be invalid.

See also: msh2m_structured_mesh, msh2m_gmsh, msh3m_structured_mesh.

Package: msh