Skip to main content

A package for micro/nanoflow

Project description

Single DLD Parallelized DLD
Image Image

mnFlow

Micro-nanoflow (mnFlow) library is aimed at providing the community with tools for design and modeling of micro-nanofluidic chips. The current focus of the project is on DLD structures. In particular, the DLD design automation (DDA) tool aims at automating the entire process of design and production of computer-aided design (CAD) files for DLD-based micro-nanofluidic chips. The produced CAD files can be used for computational modeling, optimization, and manufacturing of DLD devices.

Usage

Installation

To use mnFlow, first install it using pip (preferably in a virtual environment using venv):

python -m pip install mnflow

Getting Started

You can run a simulation from your terminal using the following syntax:

from mnflow.mfda.cad.dld.theme.block import DLD
dld = DLD(
    d_c=10.0,
    Np=10,
    rot_last=90,
    opt_save_image=True,
)

Output:

----------------------------------------
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': 1781004.4974180001,
 'bb': [(-3861.227, -113.554), (21.571, 345.137)],
 'count of 1D arrays of core.DLD': 1,
 'd_c': 9.999999999999998,
 'lx': 3882.798,
 'ly': 458.69100000000003,
 'performance': {'Flow rate @ 1 bar/area (micro-liter/min/mm-sq)': 715.9902222759154,
                 'die area (mm-sq)': 1.7810044974180002,
                 '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: Image

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.

How to contribute code

Follow these steps to submit your code contribution.

Step 1. Open an issue

Before making any changes, we recommend opening an issue (if one doesn't already exist) and discussing your proposed changes. This way, we can give you feedback and validate the proposed changes.

Step 2. Make code changes

To make code changes, you need to fork the repository.

Step 3. Create a pull request

Once the change is ready, open a pull request from your branch in your fork to the dev branch of this repository.

Step 4. Review

Work with reviewers to apply any changes that may be necessary.

Step 5. Merge

Once the change is approved, we will merge the changes into the repository.

Acknowledgments

This project utilizes the packages mentioned in the following. We gratefully acknowledge their contributions to this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mnflow-0.0.0.1a0.tar.gz (117.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnflow-0.0.0.1a0-py3-none-any.whl (111.2 kB view details)

Uploaded Python 3

File details

Details for the file mnflow-0.0.0.1a0.tar.gz.

File metadata

  • Download URL: mnflow-0.0.0.1a0.tar.gz
  • Upload date:
  • Size: 117.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mnflow-0.0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 f6c07bcf3f247cebfcb54b974bba4cf9f5c397a9e25a56b39e6e6f5c33fb83e2
MD5 2e09de199fca501e5c64042e4ff0091a
BLAKE2b-256 fb9b2bbda0ff7866b7efc718aa65439684e42393df9e47c73e4b925f4ce49caf

See more details on using hashes here.

File details

Details for the file mnflow-0.0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: mnflow-0.0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 111.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mnflow-0.0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 89d40ed7fee5984453a3f54423c2d15b3439d0fbd1ca00224bdc3f33cfe98d89
MD5 b68783495cc13a01f1c10bb67d409522
BLAKE2b-256 40818ee795f90aa84587baef80dcf25cbfde4efb66a67a496482fd3e5a24b8f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page