wiki:WikiStart

Lemma is an Electromagnetics Modelling API

Overview

  • Lemma has an expressive API
  • Lemma employs a modern test-driven development
  • Lemma is 100% C++, currently we require a C++-11 compliant compiler
  • Lemma has bindings and integration with VTK
  • Lemma provides excellent multi-core performance
  • Lemma objects employ class serialisation using YAML.

Getting the code

Lemma uses git. The project is hosted here on own website. If you prefer to use GitHub, Lemma is mirrored there as well, pull requests can be managed though GitHub too https://github.com/LemmaSoftware/Lemma.

git clone https://git.lemmasoftware.org/Lemma.git
git clone https://git.github.com/LemmaSoftware/Lemma.git

Read only anonymous access is permitted at either site. If you would like to contribute and obtain write access please email info for a username and password.

Modules

Lemma is modular, compile and bundle only what you need. There are several modules provided with the main project.

  1. LemmaCore (required) - Provides base classes which all Lemma objects inherit from
  2. FDEM1D (optional) - Frequency domain 1D forward modelling of Maxwell's equations
  3. Several other modules are being ported over from prior versions of Lemma.

Lemma is extensible, in addition to the main modules, you can easily plugin additional modules.

  1. EMSchur3D - 3D solution of Maxwell's equations.
  2. Merlin - Merlin provides surface NMR functionality to Lemma including 1D inversion
  3. FEM4EllipticPDE - This is a finite element solver of general elliptic PDE problems.
https://svn.lemmasoftware.org/modules

Documentation

  • Doxygen generated man pages are available index

Benchmarks

Lemma compares well with existing FORTRAN 77 codes and also scales well on multi-processor machines. Benchmarks will be uploaded shortly.

Testing

Test framework results are posted using CDash

Requirements

The only hard dependencies are a C++ compiler, the Eigen 3 C++ library, and Python 2.X. Eigen is freely available under the Mozilla Public License.

  • C++ Compiler - we currently test with gcc, and clang. Support for icc (Intel C) is planned.
  • git - a distributed version control software needed for the build process
  • CMake - v3 or higher, CMake is a cross-platform platform for building software

Bundled dependencies

Several additional dependencies are bundled with Lemma, all have liberal licenses and should place minimal restrictions on any use of Lemma.

  • Eigen 3 C++ linear algebra (header) library
  • matio
  • tinyxml2
  • matplot_vtk
  • yaml-cpp

As an optional dependency VTK is needed for visualisation. VTK is released under a BSD license.

Compiler support

We actively test against GCC versions 5.2 to 5.3 and Intel 13.0.1. Clang++ is also tested and supported (clang does not yet support OpenMP). Microsoft compilers are less frequently tested, but are officially supported. Stable releases will support all of these compilers. If you are using a different C++ compiler, please let us know your experience.

Platform support

Lemma has been successfully compiled on Linux (our primary platform) Windows ( XP, Vista, 7, and 8), as well as Max OS X.

Linux

Most Linux package managers handle all the dependencies for Lemma, and the Lemma install process should proceed smoothly in a UNIX/Un*x environment.

Mac OSX

Compilation on Mac OSX using clang++ is relatively straightforward.

Windows

The preferred compilation approach is shown in AnacondaWindowsNotes which relies on the Anaconda Python Distribution as a means to install third-party software including git, CMake, and VTK. This approach uses the Microsoft Visual C++ compiler.

License

Lemma is available under the Mozilla Public License, v. 2.0. MPL Much of the code is covered by

  • Copyright (C) 2009--2018 Trevor Irons
  • Copyright (C) 2010, 2011, 2012 Colorado School of Mines.
  • Copyright (C) 2010--2013 M. Andy Kass.

Support

Email questions to support.

Bug reports

File a ticket using this website.

Credits

Lemma has been built in collaboration with the department of Geophysics at the Colorado School of Mines, specifically CGEM the United States Geological Survey http://crustal.usgs.gov and the University of Utah https://egi.utah.edu.

Our primary authors are Trevor Irons and M. Andy Kass.

Lemma has extended public domain code from Walt Anderson, Alan Chave, and Ki Ha Lee. In all cases original FORTRAN 77 codes were ported and reworked into our modern framework. We are grateful for their fine contributions to the public domain. Please keep in mind use of their code does not imply endorsement.

Contributing

Interested in contributing? Great. Whether you are interested in extending Lemma, improving some aspect, or just making the documentation better, we welcome contributions. Some links that might be useful

Citing Lemma

An example BibTeX entry is provided below. If you are using a module with different primary authors, it may be appropriate to modify this entry.

@MISC{LemmaWeb,
  author = {Trevor Irons and M. Andrew Kass and others},
  title = {Lemma v1},
  howpublished = {https://lemmasoftware.org},
  year = {2012}
 }
Last modified 3 months ago Last modified on Jul 29, 2018 12:20:13 AM