Difference between revisions of "Comsol mesh.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Rename Arguments section heading to Parameters)
(Update function See also links and function index membership)
Line 29: Line 29:
 
==See also==
 
==See also==
  
−
[[Import,_export,_and_visualisation#Microfluidic_mesh_import_and_plotting|Microfluidic mesh import and plotting]]
+
[[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]]''
 
''Version 2.8, authors: [[Anupama Acharya]], [[Ilya Kuprov]]''

Revision as of 18:35, 6 June 2026


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 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

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