Skip to content

igfuw/parcel

Repository files navigation

parcel

The parcel model represents an idealised scenario of a 0-dimensional air parcel rising adiabatically with a constant vertical velocity.

The representation of microphysical and chemical processes in the parcel model is done using the particle-based scheme from the libcloudph++ library of cloud microphysics schemes. For more information on the libcloudph++ library, its' dependencies, installation and source code please check the project repository and the project documentation.

The parcel model is written in Python 2.7.

installation

The .travis.yml file shipped with the parcel model contains a complete set of commands needed to execute all test programs shipped with the model on fresh Ubuntu and OSX installations - it may contain useful information on obtaining the dependencies.

testing

The parcel model is shipped with a set of tests for the particle-based scheme from the libcloudph++ library. For test automation py.test Python package is used.

To run all the tests please type in terminal

$ py.test unit_test/

$ py.test unit_test_debug/

$ py.test long_test/

Some tests generate plots. These plots are saved in /plots/outputs folder. Some tests may fail when libcloudph++ is compiled with -Ofast flag (it was tested that they work with -O3 flag). Untill this problem is solved they are moved to unit_test_debug folder and will be tested on Travis only in debug mode (without -Ofast flag).

documentation

The documentation of the project, including some usage examples, is available in the doc folder and is generated using LaTex. To obtain a pdf file with the current documentation please type in terminal

$ cd doc/

$ ./make.sh