Difference between revisions of "Comsol mesh.m"
(Normalise sequential blank lines) |
(sync with Spinach main f053e432: output fields are added to the mesh object, not spin_system; layout fix) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:comsol_mesh.m}} __NOTOC__ | {{DISPLAYTITLE:comsol_mesh.m}} __NOTOC__ | ||
| − | |||
Imports ASCII 2D mesh files produced by COMSOL. | Imports ASCII 2D mesh files produced by COMSOL. | ||
==Syntax== | ==Syntax== | ||
| − | mesh=comsol_mesh(file_name) | + | mesh=comsol_mesh(file_name) |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ==Parameters== | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | file_name - a character string | |
| − | |||
==Outputs== | ==Outputs== | ||
| − | The following fields are added to | + | The following fields are added to the mesh object |
mesh.x, mesh.y - column vectors with vertex | mesh.x, mesh.y - column vectors with vertex | ||
| Line 46: | Line 28: | ||
==See also== | ==See also== | ||
| − | [[Import,_export,_and_visualisation | + | [[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]]'' | ||
Latest revision as of 05:37, 30 August 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 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