Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Varibles Data Types

Radhakrishna Sanka edited this page Nov 11, 2020 · 3 revisions

Variables

In order to describe the entire microfluidic architecture, it is necessary to have different types of variables in order to specify the relationships between the liquids.

Module Declaration Variables

  • Flow Input finput
  • Flow Output foutput
  • Control Lines control

Architecture Variables

  • Integers number
  • Real real
  • Storage storage
  • Flow elements flow
  • Control Elements control
  • Pump elements pump

Vector Declarations

LFR allows the user to create vectors of any type of variable. Vectors allow the users to easily scale the design complexity and describe parallel fluidic operations. The syntax for declaring a vector is given below:

<data_type> [<start_index>:<end_index>] <variable_name>;

An example would be:

flow [0:7] f1;

Concatenations

LFR allows the user to describe pseudo-vectors concatenations. Concatenations DO NOT create vectors but they allow the user group and operate on multiple variables as a single unit. Concatenations are declared as seen below:

{ <variable1>, <variable2>, ... <variable3> }

Data-Types

Type Description Example
finput Flow/Reagent Inputs
foutput Flow/Reagent Outputs
control Control Line
number Integer Number or Bit Vector
real Real Number
storage Storage Microfluidic Element
flow Flow Microfluidic Element
control Control Microfluidic Element
pump Pump Microfluidic Element