comsol_mesh.m

From Spinach Documentation Wiki
Jump to: navigation, search

Imports ASCII 2D mesh files produced by COMSOL.

Syntax

    mesh=comsol_mesh(file_name)

Parameters

    file_name    - a character string

Outputs

The following fields are added to the mesh object

      mesh.x, mesh.y      - column vectors with vertex
                            coordinates

      mesh.idx.edges      - two-column array of integers
                            containing edge index

      mesh.idx.triangles  - three-column array of integers
                            containing triangle index

      mesh.idx.rectangles - four-column array of integers
                            containing rectangle index

See also

comsol_conc.m, comsol_import.m, comsol_velo.m, conc_plot.m, mesh_crop.m, mesh_inact.m, mesh_plot.m, mesh_preplot.m, mesh_vorn.m, Import,_export,_and_visualisation

Version 2.8, authors: Anupama Acharya, Ilya Kuprov