Code Monkey home page Code Monkey logo

feellgood's Introduction

FeeLLGood – A micromagnetic solver Build Status

FEELLGOOD is a micromagnetic solver using finite element technique to integrate Landau Lifshitz Gilbert equation. It computes the demagnetizing field using the so-called fast multipole algorithm.

It is developped by JC Toussaint & al. The code is being modified without any warranty it works. A dedicated website can be found here

Dependencies

License

Copyright (C) 2012-2023 Jean-Christophe Toussaint, with contributions by F. Alouges, D. Gusakova, S. Jamet, M. Struma, C. Thirion and E. Bonet.

FeeLLGood is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Additional permission under GNU GPL version 3 section 7: If you modify this Program, or any covered work, by linking or combining it with the Intel® MKL library (or a modified version of that library), containing parts covered by the terms of Intel Simplified Software License, the licensors of this Program grant you additional permission to convey the resulting work.

The libraries used by feeLLGood are distributed under different licenses, and this is documented in their respective Web sites.

feellgood's People

Contributors

christophe-thirion avatar edgar-bonet avatar shrirajhegde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

feellgood's Issues

Unit tests fail randomly

The unit tests ut_tetra.cpp, ut_node.cpp and ut_pt3D.cpp sometimes fail with errors above the tolerance. The statistics of the errors suggest they are rounding errors. Here is a graph, collected after a large number of runs of make test (I did not count how many), showing the empirical tail distribution (complementary cumulative distribution function):

  • the abscissa is the reported error
  • the ordinate is the rank of the error, sorted from largest (rank = 1) to smallest

Tail distribution of errors

For ut_tetra.cpp and ut_node.cpp, the issue can be solved by rising the tolerance. The case of ut_pt3D.cpp seems more worrisome, as its errors can get quite large. This test, unlike the other two, measures a relative error. As shown in the figure below, the relative error is large only when the numbers being compared are very small:

Relative error vs numbers being compared

A possible solution could be to switch to measuring an absolute error. Alternatively, we could try to figure out how the rounding errors are supposed to scale.

This test is comparing triple products. It can be expected for the error to scale like the product of the norms of the vectors involved. The following graph shows that, when the errors are divided by this scaling factor, they indeed remain below a few DBL_EPSILON. This graph and the next one are based on another series of tests (106 tests total).

Scaled error vs scale

This scaling makes the tail distribution better behaved:

Tail distribution of scaled errors

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.