Getting started and documentation - arnaud-reveillere/SAMBA GitHub Wiki
Overview
SAMBA is a collection of Python functions grouped into the 3 modules:
- BrineProperties_1_0.py This module gives the density and viscosity of brine for a given temperature, pressure and salinity. It is taken from the CAMELOT code, and based on correlations included in the TOUGH2 numerical simulator.
- BrinePropertiesLinearized_1_0.py This module gathers several other functions dedicated to the computation of brine properties.
- LeakageModels_1_0.py This includes the semi-analytic resolution of the problems.
An optional module may also be usefull for comparing results from SAMBA and TOUGH2 simulation results: TOUGH2PreAndPostProcessing.py.
Getting started
These functions are known to run with Python-2.7.1, numpy-1.6.0, scipy-0.9.0, and Matplotlib-1.0.1 (for the plots in the Examples only).
Once these are installed, the innit.py should be placed in a repository along with the 3 (or 4) other modules. The input file describing the problem loads the innit and calls the functions with the appropriate parameters, similarly to what is done in the Examples.
User documentation
Input parameters of the functions available in SAMBA can be found in:
- In SAMBA v1.0 manual
- In Camelotpy manual for the BrineProperties_1_0.py module