Quick start
Here is a quick test to ensure everything works well.
Let us design a DLD structure with critical diameter of d_c=10.0 (microns) and periodicity of Np=10.
The channel is vertical by default.
In this example, we pass rot_last=90 to apply a 90-degree rotation to form a horizontal channel (for better arrangement in this document).
Finally, we pass opt_save_image=True to save an image of the layout.
Here, is the final script:
from mnflow.mfda.cad.dld.theme.block import DLD
dld = DLD(
d_c=10.0,
Np=10,
rot_last=90,
opt_save_image=True,
)
----------------------------------------
core.DLD___Np:10_Nw:8_gap_w:21.571_pitch_w:43.142_gap_a:21.571_pitch_a:43.142_height:86.284_boundary_treatment:pow_3
block.DLD___num_unit:9_opt_mirror:False_array_counts:[1, 1]_opt_mirror_before_array:[False, False]
----------------------------------------
{'Np': 10,
'Nw': 8,
'area': 1802282.230458,
'bb': [(-3861.227, -113.554), (21.571, 350.617)],
'count of 1D arrays of core.DLD': 1,
'd_c': 9.999999999999998,
'lx': 3882.798,
'ly': 464.17100000000005,
'performance': {'Flow rate @ 1 bar/area (micro-liter/min/mm-sq)': 707.5372460708702,
'die area (mm-sq)': 1.802282230458,
'gap over crit. dia.': 2.1571083717157262,
'volumetric flow rate at 1 bar (micro-liter/min)': 1275.1818059807188},
'resistance (Pa.sec/m^3)': 4705211423076.657,
'volumetric flow rate at 1 bar (m^3/sec)': 2.1253030099678647e-08,
'volumetric flow rate at 1 bar (milli-liter/hr)': 76.51090835884312}
Output layout:

At this point, you should have a few files created in your working directory automatically: layout files in gds and png formats.
If that is the case, and if the layout is similar to the output layout presented above, and if the log you see after executing the script matches that shown above, the package should have been installed properly.