Difference between revisions of "Mesh crop.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Restore pre-bulk-edit wiki content) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:mesh_crop.m}} __NOTOC__ | {{DISPLAYTITLE:mesh_crop.m}} __NOTOC__ | ||
| − | |||
2D microfluidic mesh cropping. Updates the mesh object to remove anything outside the user-specified vertex coordinate ranges. | 2D microfluidic mesh cropping. Updates the mesh object to remove anything outside the user-specified vertex coordinate ranges. | ||
==Syntax== | ==Syntax== | ||
| − | + | spin_system=mesh_crop(spin_system,xrange,yrange) | |
==Arguments== | ==Arguments== | ||
| − | + | spin_system - Spinach data structure with | |
| − | + | a .mesh subfield present | |
| − | + | ||
| + | xrange - two-element vector specify- | ||
| + | ing X axis range, [min max] | ||
| + | |||
| + | yrange - two-element vector specify- | ||
| + | ing Y axis range, [min max] | ||
==Outputs== | ==Outputs== | ||
| − | + | spin_system - updated data structure | |
| − | |||
| − | |||
| − | |||
==See also== | ==See also== | ||
| − | |||
[[Import,_export,_and_visualisation#Microfluidic_mesh_import_and_plotting|Microfluidic mesh import and plotting]] | [[Import,_export,_and_visualisation#Microfluidic_mesh_import_and_plotting|Microfluidic mesh import and plotting]] | ||
''Version 2.8, authors: [[Anupama Acharya]], [[Ilya Kuprov]]'' | ''Version 2.8, authors: [[Anupama Acharya]], [[Ilya Kuprov]]'' | ||
Revision as of 14:49, 5 April 2026
2D microfluidic mesh cropping. Updates the mesh object to remove anything outside the user-specified vertex coordinate ranges.
Syntax
spin_system=mesh_crop(spin_system,xrange,yrange)
Arguments
spin_system - Spinach data structure with
a .mesh subfield present
xrange - two-element vector specify-
ing X axis range, [min max]
yrange - two-element vector specify-
ing Y axis range, [min max]
Outputs
spin_system - updated data structure
See also
Microfluidic mesh import and plotting
Version 2.8, authors: Anupama Acharya, Ilya Kuprov