arb multiphysics finite volume solver

New version 0.60 uploaded (9/4/19) that includes some extended vector/tensor capabilities.

What is arb?

arb is a software package designed to solve arbitrary partial differential equations on unstructured meshes using an implicit finite volume method. The primary strengths of arb are:

  • All equations and variables are defined using 'maths-type' expressions written by the user, and hence can be easily tailored to each application;
  • All equations are solved simultaneously using a Newton-Raphson method, so implicitly discretised equations can be solved efficiently; and
  • The unstructured mesh over which the equations are solved can be composed of all sorts of convex polygons/polyhedrons. One, two and three dimensional domains can be used (simultaneously).

arb is open-source software that is released under the GNU General Public Licence (GPL). arb was originally created by Dalton Harvie, but is now a collaborative project.

A temperature field resulting from a conduction problem
Above: Diffusion within a rectangle that contains an elliptical hole.

Some examples

A diffusion problem:

The image (right) shows the solution to the following diffusion problem solved over a 2D domain:

Diffusion equations

This set of equations is represented by the following in arb:

CELL_UNKNOWN <T> [K] "1.d0" ON <allcells>
CELL_EQUATION <T transport>
   "-celldiv(<D>*facegrad(<T>))" ON <domain>
   "-<D>*facegrad(<T>)-<hole flux>" ON <hole>
FACE_EQUATION <T walls> "<T>-1.0d0" ON <walls>

Four main variables are defined in this example: the unknown temperature field (with optional units Kelvin), and three equation variables. Each variable is associated with a region. The temperature (<T>) is defined over all cells (<allcells>), while the equations are specific to either all of the domain cells (<domain>) or as boundary conditions on particular boundary (face) regions (<hole> and <walls>). The equations are satisfied when the equation variable values are zero: Within arb the Newton-Raphson method is used to change the unknown variable values until this is achieved. Hence the core constraint in an arb simulation is that the total number of unknown variable values equals the total number of equation values. In this particular example this is satisfied as the number of elements within the <allcells> region equals the sum of elements within the <domain>, <hole> and <walls> regions.

Other variable types include DERIVED, CONSTANT, TRANSIENT, NEWTIENT, LOCAL, OUTPUT and CONDITION. Other variable centrings are NODE and NONE. Variables can also be identified as a component of a vector (eg <u[l=1]>) or tensor (eg <tau[l=2,3]>). They can also associated with a particular relative timestep for transient simulations (eg <t[r=1]> representing the time at the previous timestep).

Operators are used to express equations using the finite volume method: For example, celldiv performs a divergence around a cell element while facegrad calculates the gradient of a quantity relative to a face element. Other operators allow sums to be performed over regions (eg cellsum), linking between different regions and computational domains (eg facetocelllink) and conditional statements (eg nodeif). Some elementary vector algebra is also implemented (eg dot and double dot products).

This problem is included with the arb distribution as tutorial 1. You can browse the arb input file here. Note that anything following a '#' symbol is a comment.

Steady-state flow around a cylinder:

The two-dimensional flow around a cylinder is a CFD benchmark test problem. Here the Reynolds number based on the cylinder diameter and maximum velocity is 20, producing steady-state results.
The pressure field around a cylinder The pressure field around a cylinder The pressure field around a cylinder
Above: The steady-state flow around a cylinder at Re=20. The cell-centred pressure field, cell-centred velocity vectors (superimposed on the pressure field) and face-centred stress (Von-Mises) are shown.

This problem is also included with the arb distribution as tutorial 3. You can browse the arb input file here.

Other problems:

Many more example problems are included as input and geometry files with the arb distribution. Browsing these is at present the best way to learn the syntax and understand the capabilities of arb. Examples include transient problems, multi-dimensional (0D-3D) problems, systems of ODEs (eg, multi-component chemical equations) and multiphase (eg, Volume of Fluid) flows. You can find these files here.


An online manual is under development here.

What is needed to run arb?

In terms of coding content arb consists mainly of fortran (2003), perl and shell scripts. arb requires a UNIX type environment to run, and is maintained on both the Apple OsX and ubuntu linux platforms. We have also used it on Red-Hat linux and Windows Subsystem for Linux (WSL).

arb depends on certain third party programs and libraries, including:

By combining gfortran with the UMFPACK sparse linear solver, arb can be run using freely available GPL licensed software.

Try it out

Getting up and running is relatively straightforward, and primarily consists of installing the software and packages on which arb depends.

Download the arb code

Firstly you need to download the arb code working directory and place it somewhere where it can stay. A tar file containing the latest master arb source is here. Older versions can be found in this directory. Alternatively you can grab the install files from github. These versions haven't been updated for a while for licencing reasons, so contact me if you want a more recent version.

Install dependencies

On recent versions of ubuntu (tested on LTS 10.04, 12.04, 14.04, 16.04, 18.04 and 20.04) you can run the ubuntu install script (found in the install directory) which will use apt-get to install the required packages. This doesn't take long. There is also an install script for red hat in the same directory, although this is not as well tested.

If you want to install arb on Windows, this is now possible using the Windows Subsystem for Linux (WSL) on Windows 10. WSL basically installs a recent ubuntu version within a user's directory. Once you have this working (you'll have to find instructions on how to do this) then just follow the ubuntu arb install instructions. WSL is actually quite easy.

Installation on OsX is usually straightforward, being based on macports (which needs to be installed first). However, macports generally compiles software, so it will take some time to install all the dependencies from scratch (maybe an hour?). The install script for OsX is the macports install script also in the install directory.

Add arb to your path

For all platforms, once the code is downloaded and the dependencies are installed then run the script (also in the install directory) to place the executables in your path. Then restart your terminal, and you should be ready to start simulating. Try tutorial problem 1 from the examples directory to check that all is working fine. More details about this problem are given in the second screencast below


The following screencast deals with installing arb and running a trial simulation. Unfortunately this first screencast was produced using v0.56 which required a separate arb working directory for each simulation. From v0.57 and onwards arb is installed globally, so there will be slight differences in the arb directory structure and installation method (refer to the above scripts for installation).

This next monster screencast covers the basics of arb use, including the arb directory structure, altering mesh files and basic arb coding. Again note that this screencast was produced using v0.56, in which simulations were conducted in separate arb working directories. Most of the content is still relevant however.


To actively contribute to this project, email Dalton for a username on our gitlab development server. Feel like writing some documentation? Don't hold back.


If you use arb to conduct research, please cite it using the publication (Dalton J.E. Harvie, ANZIAM J. 52, 2012) given below. I am keen to hear of your experiences using arb and also of any feature requests that you have and bugs that you find - drop me an email with 'arb' in the subject line.

Where is arb going?

arb is under active development, although updates to this website have sometimes not occurred regularly. Previously the major focus was on developing the language feature set - application of arb to different types of problems (in particular multiphase and non-Newtonian flows) is now the development focus, as well as improving installation ease and overall documentation. At some stage I will be organising a few hour familiarisation session - drop me an email if you are interested in attending this.


[45] Electrokinetic development length of electroviscous flow through a contraction (; and ), In ANZIAM J. (CTAC2010) (McLean, W.; Roberts, A. J., eds.), volume 52, . [bibtex] [url]
[44] Multi-scale volume of fluid modelling of droplet coalescence (; and ), In Ninth International Conference on CFD in the Minerals and Process Industries, . [bibtex] [pdf]
[43]Electroviscous flow through microfluidic contractions, bends and junctions (; ; ; ; ; ; and ), . [bibtex]
[42] Electroviscous flow through a microfluidic T-junction (; and ), In Ninth International Conference on CFD in the Minerals and Process Industries, . [bibtex] [pdf]
[41]Steady-state oxygen consumption profiles in the cornea ( and ), . [bibtex]
[40] An implicit finite volume method for arbitrary transport equations (), In ANZIAM J. (CTAC2010) (McLean, W.; Roberts, A. J., eds.), volume 52, . [bibtex] [url]
[39]Modelling of interfacial mass transfer in microfluidic solvent extraction: Part II Heterogeneous transport with chemical reaction (; ; ; and ), In Microfluidics and Nanofluidics, Springer, volume 14, . [bibtex] [doi]
[38]Modelling of interfacial mass transfer in microfluidic solvent extraction: Part I Heterogenous transport (; ; ; and ), In Microfluidics and Nanofluidics, Springer, volume 14, . [bibtex] [doi]
[37]DNA focusing in nanofluidic channels (; ; ; ; and ), In The 17th International Conference on Miniaturized Systems for Chemistry and Life Sciences The 17th International Conference on The 17th International Conference on Miniaturized Systems for Chemistry and Life Sciences (MicroTAS 2013), . [bibtex]
[36]Ink-jetting combined with phase separation to produce highly porous microspheres for bioactive molecule delivery (; ; and ), . [bibtex]
[35] Electrokinetic flow in parallel channels: Circuit modelling for microfluidics and membranes (; and ), In Colloids and Surfaces A: Physicochemical and Engineering Aspects, volume 440, . [bibtex] [url] [doi]
[34]Extraction kinetics of Fe (III) by di-(2-ethylhexyl) phosphoric acid using a Y-Y shaped microfluidic device (; ; ; and ), In Chemical Engineering Research and Design, Elsevier, volume 92, . [bibtex] [doi]
[33] Stationary chemical gradients for concentration gradient-based separation and focusing in nanofluidic channels (; ; ; ; ; and ), In Langmuir, volume 30, . [bibtex] [url] [doi]
[32] Concentration gradient focusing and separation in a silica nanofluidic channel with a non-uniform electroosmotic flow (; ; ; ; and ), In Lab Chip, The Royal Society of Chemistry, volume 14, . [bibtex] [url] [doi]
[31] Isoelectric focusing in a silica nanofluidic channel: Effects of electromigration and electroosmosis (; ; ; ; and ), In Analytical Chemistry, volume 86, . [bibtex] [url] [doi]
[30] Subgrid CFD film-drainage modelling: Application to buoyancy-driven droplet-wall collisions in emulsions (; and ), In 19th Australasian Fluid Mechanics Conference, . [bibtex] [pdf]
[29]Multi-Physics Lab-on-a-Chip Simulations (), (Zhu, Dr Jonggang; Gu, Prof. Min, eds.), . [bibtex]
[28] A simple, scalable process for the production of porous polymer microspheres by ink-jetting combined with thermally induced phase separation (; ; ; and ), In Particle and Particle Systems Characterization, volume 31, . [bibtex] [url] [doi]
[27] Electroviscous flow through nanofluidic junctions (; and ), In Applied Mathematical Modelling, volume 38, . [bibtex] [url] [doi]
[26] Electroviscous resistance of nanofluidic bends (; ; ; ; and ), In Phys. Rev. E, American Physical Society, volume 90, . [bibtex] [url] [doi]
[25] Electrokinetics of the silica and aqueous electrolyte solution interface: Viscoelectric effects (; ; ; and ), In Advances in Colloid and Interface Science, . [bibtex] [url] [doi]
[24]A multiphase ion-transport analysis of the electrostatic disjoining pressure: implications for binary droplet coalescence (; ; and ), volume 61, . [bibtex]
[23]Trabecular bone anisotropic permeability based on micro-ct imaging and upscaling of porescale fluid flow (; ; ; ; ; and ), . [bibtex]
[22]Steady-state corneal oxygen consumption profiles during contact lens wear ( and ), . [bibtex]
[21] Viscoelectric Effects in Nanochannel Electrokinetics (; ; ; ; and ), In The Journal of Physical Chemistry C, volume 121, . [bibtex] [url] [doi]
[20]Mechanical and Fluid Dynamical Characterization of 3d Porous Ceramic Material – Application to Baghdadite Scaffolds for Large Segmental Bone Defects (; ; ; ; and ), . [bibtex]
[19] Estimation of anisotropic permeability in trabecular bone based on microCT imaging and pore-scale fluid dynamics simulations (; ; ; ; ; and ), In Bone Reports, volume 6, . [bibtex] [url] [doi]
[18]Lift forces on a sphere in bounded and wall-bounded flows (; ; ; ; and ), . [bibtex]
[17]Simulating the behaviour of skim-milk during ultrafiltration Simulating the behaviour of skim-milk during ultrafiltration Simulating the behaviour of skim-milk during ultrafiltration (), PhD thesis, Dept of Chemical Engineering, University of Melbourne, . [bibtex]
[16]CFD study of buoyancy driven droplet coalescence (; ; ; and ), . [bibtex]
[15]Forces Acting on a Particle Moving Near a Wall at Low Re Numbers (; ; ; ; and ), . [bibtex]
[14]Lift and Drag forces on a particle near a wall at low Reynolds numbers (; ; ; ; and ), In 21st Australasian Fluid Mechanics Conference, . [bibtex]
[13]Particle Distributions in shear flows: consequences for blood clotting (; ; ; and ), . [bibtex]
[12] Numerical calculation of permeability of periodic porous materials: Application to periodic arrays of spheres and 3D scaffold microstructures (; ; ; and ), In International Journal for Numerical Methods in Engineering, volume 118, . [bibtex] [url] [doi]
[11]Simulations of diffusion-mediated factor Xa generation by surface bound tissue factor (; ; and ), . [bibtex]
[10]Numerical Models of Blood Flow and Thrombosis (), volume Platelet Function & Interactions, . [bibtex]
[9]Simulating cross-stream platelet migration within a rectangular microchannel (; ; ; ; and ), . [bibtex]
[8]Lift and drag forces acting on a particle moving with zero slip velocity near a wall (; ; ; ; ; and ), . [bibtex]
[7]Lift and drag forces acting on a particle moving with zero slip in a linear shear flow near a wall (; ; ; ; ; and ), In Journal of Fluid Mechanics, Cambridge University Press, volume 904, . [bibtex] [doi]
[6]Lift and drag forces acting on a particle moving in the presence of slip and shear near a wall (; and ), . [bibtex]
[5] Modeling Thrombin Generation in Plasma under Diffusion and Flow (; ; and ), In Biophysical Journal, . [bibtex] [url] [doi]
[4] Simulating the ultrafiltration of whey proteins isolate using a mixture model (; ; ; and ), In Journal of Membrane Science, volume 613, . [bibtex] [url] [doi]
[3]Lift and drag forces acting on a particle moving in the presence of slip and shear near a wall (; and ), In Journal of Fluid Mechanics, Cambridge University Press, . [bibtex]
[2]Two-fluid modelling of mineral tailing sedimentation and consolidation (), . [bibtex]
[1]Flow effects on bradykinin generation in hereditary angioedema (HAE) (; ; ; ; and ), . [bibtex]