GithubHelp home page GithubHelp logo

igorborovik / radlib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from byuignite/radlib

0.0 0.0 0.0 37.6 MB

Radiation property library for combustion gases and soot

License: MIT License

Shell 0.03% C++ 84.67% Python 0.41% Fortran 6.03% CMake 5.19% Cython 3.66%

radlib's Introduction

Publication

This code is described in the following publication:

V.B. Stephens, S. Jensen, I. Wheeler, D.O. Lignell, “RadLib: a radiative heat transfer model library for CFD,” Computer Physics Communications, 272:108227, (2022).

A Code Ocean Capsule is also available.

A youtube video demonstrates building the code and running examples.


Building RadLib


Dependencies

The code is intended to be built on Linux and MacOS systems (or the Linux subsystem for Windows).

Required software:

  • CMake 3.15+

Optional software and Python packages for building the Python interface:

  • Python 3.x
  • Cython 0.29.21
  • distutils
  • numpy
  • glob

Optional Python packages for running the Python examples

  • matplotlib
  • numpy
  • Jupyter

Optional software for building documentation:

  • Doxygen
  • graphviz

Build instructions

  1. Create a directory build and navigate to it.
  2. Run CMake: cmake ..
  3. Build radlib: make
  4. Install radlib: make install
  5. (OPTIONAL) Build documentation: make docs
  6. (CLEANUP) Clean build files: run git clean -d -f -x from top-level directory

Notes

  • See the top of the root CMakeLists.txt file for build options.
  • The code defaults to building the Python and Fortran interfaces, along with the C++, Python, and Fortran examples. The documentation build is off by default. These options can be changed in the CMakeLists.txt file, or at the command line. For example,
    • cmake -DBUILD_PYTHON_INTERFACE=OFF ..

Default installation locations

  • C++
    • library: libradlib.a is located in installed/lib
    • header files: rad_planck_mean.h, rad_rcslw.h, rad_wsgg.h are located in installed/include
  • Fortran
    • library: libradlib_fortran.a is located in installed/lib
    • module file: rad_module.mod is located in installed/include
      • This is included is user code with the use rad_module statement.
  • Python
    • package pyrad.cpython-38-darwin.so is located in installed/lib/python3.8/site- packages. Note that the actual file names may differ depending on the machine and Python installation.
      • The Python package is included in user code with statements such as from pyrad import prad_rcslw
  • CMake
    • Relocatable package radlib.cmake is located in installed/cmake/radlib
    • Relocatable package radlib_fortran.cmake located in installed/cmake/radlib_fortran

radlib's People

Contributors

vbstephens avatar byuignite avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.