Difference between revisions of "Mesh crop.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:mesh_crop.m}} __NOTOC__ 2D microfluidic mesh cropping. Updates the mesh object to remove anything outside the user-specified vertex coordinate ranges. ==Syntax...")
 
(Sync syntax/arguments/outputs with current Spinach source)
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)
+
mesh=mesh_crop(mesh,ranges)
  
 
==Arguments==
 
==Arguments==
  
−
    spin_system - Spinach data structure with
+
mesh        - Spinach mesh object
−
                  a .mesh subfield present
+
 
−
+
     ranges     - {[xmin xmax],[ymin ymax]}
−
     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
+
mesh        - updated mesh object
 +
 
 +
a.acharya@soton.ac.uk
 +
ilya.kuprov@weizmann.ac.il
  
 
==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:03, 5 April 2026


2D microfluidic mesh cropping. Updates the mesh object to remove anything outside the user-specified vertex coordinate ranges.

Syntax

mesh=mesh_crop(mesh,ranges)

Arguments

mesh - Spinach mesh object

   ranges      - {[xmin xmax],[ymin ymax]}

Outputs

mesh - updated mesh object

a.acharya@soton.ac.uk
ilya.kuprov@weizmann.ac.il

See also

Microfluidic mesh import and plotting


Version 2.8, authors: Anupama Acharya, Ilya Kuprov