CODE_BRIGHT is a Finite Element Method (FEM) program capable of performing coupled thermo-hydro-mechanical (THM) analysis in geological media. It has been developed at the Department of Civil and Environmental Engineering of the Polytechnic University of Catalonia (UPC), and works combined with the pre/post-processor GiD, developed by the International Center for Numerical Methods in Engineering (CIMNE).

The CODE_BRIGHT project is funded by a Consortium composed by SKB (Sweden), Posiva (Finland), GRS (Germany) and ANDRA (France). The members of the steering commitee of this consortium are Anders Sjöland (Chairman, SKB), Mika Niskanen (Posiva), Oliver Czaikowski (GRS) and Antoine Pasteau (ANDRA).



Installation of CODE_BRIGHT requires installation of GiD pre-post processor.
STEP 1) Installation of GID version:

Download the last GiD Windows 64 bits official version from: 
For the use of most CODE_BRIGHT tutorials there is no need for a GiD password. However, if needed, note that there is an option for one month free registration in:

STEP 2) Installation of the CODE_BRIGHT version:

Go to the downloads section and download the CODE_BRIGHT zip file with the program. After unzipping, copy the folder Code_bright_vn.gid into the folder /PROBLEMTYPES within the main folder of GiD (This subdirectory is by default C:\Program Files\GiD\GiDversion#\problemtypes for Windows english version and GiDversion# except if another destination folder was specified for GiD program during its installation).

Note that, because of a change in the compiler we use, you may have to install the following application in order for CODE_BRIGHT to work: w_ifort_runtime_p_2022.2.0.3790.exe

Now CODE_BRIGHT should be ready to use by selecting it in GiD Menu (Data --> Problem type).

User's Guide

Download the user's guide from the downloads section.


Some examples are included. Note that the name of the examples does not contain spaces.

    Plastic volumetric deformations in an earth dam during construction and impoundment, calculated with CODE_BRIGHT (finite element)
    Liquid pressure evolution in a clay barrier during hydration and heating, calculated with CODE_BRIGHT
    Volumetric deformation in a clay barrier during heating and hydration, calculated with CODE_BRIGHT


Download the tutorials from the downloads section.

Find some CODE_BRIGHT videotutorials in Youtube.


Please refer your questions to the CODE_BRIGHT Forum posting your topic.


Sebastià Olivella - Universitat Politècnica de Catalunya
Jean Vaunat - Universitat Politècnica de Catalunya
Alfonso Rodríguez Dono - Universitat Politècnica de Catalunya


Anna Ramon -  Universitat Politècnica de Catalunya; Daniel Ruiz Restrepo - Universitat Politècnica de Catalunya; Fei Song - Universitat Politècnica de Catalunya - CIMNE; Ivan Puig Damians - Universitat Politècnica de Catalunya - CIMNE; Maarten Saaltink - Universitat Politècnica de Catalunya; Maria de la Fuente Ruiz - Université libre de Bruxelles; Matías Alonso - Universitat Politècnica de Catalunya; Miguel Manica Malcom - Universitat Politècnica de Catalunya; Nuria Pinyol - Universitat Politècnica de Catalunya; Victor Vilarrasa - CSIC; Xavier Pintado - Mitta Oy; Yunfeng Zhou -  Universitat Politècnica de Catalunya; Yanyang Mo -  Universitat Politècnica de Catalunya