Difference between revisions of "Comsol mesh.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
Line 5: Line 5:
 
==Syntax==
 
==Syntax==
  
−
mesh=comsol_mesh(file_name)
+
    mesh=comsol_mesh(file_name)
  
 
==Arguments==
 
==Arguments==
  
−
file_name    - a character string
+
    file_name    - a character string
−
 
 
−
Ouputs:
 
−
 
 
−
      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
 
−
 
 
  
 
==Outputs==
 
==Outputs==

Revision as of 16:37, 5 June 2026


Imports ASCII 2D mesh files produced by COMSOL.

Syntax

    mesh=comsol_mesh(file_name)

Arguments

    file_name    - a character string

Outputs

The following fields are added to spin_system 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

Microfluidic mesh import and plotting

Version 2.8, authors: Anupama Acharya, Ilya Kuprov