Difference between revisions of "Comsol import.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(sync with Spinach main f053e432: comsol.inactivate is a row vector) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:comsol_import.m}} __NOTOC__ | {{DISPLAYTITLE:comsol_import.m}} __NOTOC__ | ||
| − | |||
COMSOL 2D mesh data import, cropping and preprocessing for Spinach. | COMSOL 2D mesh data import, cropping and preprocessing for Spinach. | ||
==Syntax== | ==Syntax== | ||
| − | mesh=comsol_import(comsol) | + | mesh=comsol_import(comsol) |
| − | == | + | ==Parameters== |
| − | comsol.mesh_file - name of an ASCII file with | + | comsol.mesh_file - name of an ASCII file with vertex coordinates and edge index produced by COMSOL |
| − | + | ||
| − | + | comsol.velo_file - name of an ASCII file with vertex-centred flow velocities produced by COMSOL | |
| − | + | ||
| − | comsol.velo_file - name of an ASCII file with | + | comsol.crop - {[xmin xmax],[ymin ymax]} region of the mesh to retain |
| − | + | ||
| − | + | comsol.inactivate - a row vector with mesh vertex indices to deactivate | |
| − | |||
| − | comsol.crop - {[xmin xmax],[ymin ymax]} | ||
| − | |||
| − | |||
| − | comsol.inactivate - a vector with mesh vertex | ||
| − | |||
==Outputs== | ==Outputs== | ||
| − | mesh – Spinach mesh object with | + | mesh – Spinach mesh object with |
▸ geometry (.x, .y, .idx) | ▸ geometry (.x, .y, .idx) | ||
| Line 33: | Line 26: | ||
==Notes== | ==Notes== | ||
| − | |||
Internally this routine is a convenience wrapper that calls: | Internally this routine is a convenience wrapper that calls: | ||
| Line 43: | Line 35: | ||
==See also== | ==See also== | ||
| − | + | [[comsol_conc.m]], [[comsol_mesh.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]] | |
| − | [[Import,_export,_and_visualisation | ||
| − | |||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 06:34, 30 August 2026
COMSOL 2D mesh data import, cropping and preprocessing for Spinach.
Syntax
mesh=comsol_import(comsol)
Parameters
comsol.mesh_file - name of an ASCII file with vertex coordinates and edge index produced by COMSOL
comsol.velo_file - name of an ASCII file with vertex-centred flow velocities produced by COMSOL
comsol.crop - {[xmin xmax],[ymin ymax]} region of the mesh to retain
comsol.inactivate - a row vector with mesh vertex indices to deactivate
Outputs
mesh – Spinach mesh object with
▸ geometry (.x, .y, .idx)
▸ flow velocities (.u, .v)
▸ Voronoi tessellation (.vor)
▸ fast-plot auxiliaries (.plot)
Notes
Internally this routine is a convenience wrapper that calls:
▸ comsol_mesh() – mesh import ▸ comsol_velo() – velocity import ▸ mesh_crop() – region trimming ▸ mesh_vorn() – Voronoi tessellation ▸ mesh_preplot() – plotting accelerators
See also
comsol_conc.m, comsol_mesh.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.11, authors: Ilya Kuprov