Coder Social home page Coder Social logo

ahbarnett / fmmlib2d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zgimbutas/fmmlib2d

0.0 0.0 0.0 4.57 MB

Fast Multipole Method (FMM) library in R^2

License: BSD 3-Clause "New" or "Revised" License

Shell 0.09% C++ 11.36% C 21.93% Fortran 52.69% MATLAB 7.90% TeX 2.58% Makefile 0.94% HTML 1.11% Yacc 0.82% Lex 0.55% NASL 0.05%

fmmlib2d's Introduction

Helmholtz and Laplace FMM library in R^2.

Date: March 7, 2021

Version 1.2.3

The FMMLIB2D suite permits the evaluation of potential fields due to particle sources, governed by either the Laplace or Helmholtz equation in free space. The codes are easy to use and reasonably well optimized for performance. A rudimentary manual is provided in the FMM2D/doc directory.

FMMLIB2D contains both Fortran source code and versions compiled for MATLAB under Mac OS X (64 bit), Windows (64 bit), and Linux (64 bit), and Octave until Linux.

License

Copyright (C) 2010-2012: Leslie Greengard and Zydrunas Gimbutas
Contact: [email protected]

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: 

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer. 

2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holders nor the names of its
   contributors may be used to endorse or promote products derived
   from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Contents

src/ - Fortran source code
examples/ - Fortran testing drivers and makefiles
matlab/ - matlab scripts and mex files 
contrib/mwrap-0.33.3/ - mwrap source code
INSTALL.md - installation and testing instructions

To test the library, please type make test, and when prompted to ENTER n type something sensible like 10000. You should see text output with small errors listed. Warnings about floating-point exceptions are normal and to be ignored. See INSTALL.md for more details.

Fortran

Particle FMM routines.

hfmm2dpartself - Helmholtz particle FMM in R^2.
lfmm2dpartself - Laplace particle FMM in R^2 (complex).
rfmm2dpartself - Laplace particle FMM in R^2 (real).
zfmm2dpartself - Laplace particle FMM in R^2 (Cauchy sums).
cfmm2dpartself - Laplace particle FMM in R^2 (generalized Cauchy sums).

hfmm2dparttarg - Helmholtz particle target FMM in R^2.
lfmm2dparttarg - Laplace particle target FMM in R^2 (complex).
rfmm2dparttarg - Laplace particle target FMM in R^2 (real).
zfmm2dparttarg - Laplace particle target FMM in R^2 (Cauchy sums).
cfmm2dparttarg - Laplace particle target FMM in R^2 (generalized Cauchy sums).

Direct evaluation routines.

h2dpartdirect - Helmholtz particle target interactions in R^2.
l2dpartdirect - Laplace particle target interactions in R^2 (complex).
r2dpartdirect - Laplace particle target interactions in R^2 (real).
z2dpartdirect - Laplace particle target interactions in R^2 (Cauchy).
c2dpartdirect - Laplace particle target interactions in R^2 (g. Cauchy).

MATLAB / Octave

% Helmholtz and Laplace FMMs in R^2.
%
% Particle FMM routines.
%   hfmm2dpart      - Helmholtz particle FMM in R^2.
%   lfmm2dpart      - Laplace particle FMM in R^2 (complex).
%   rfmm2dpart      - Laplace particle FMM in R^2 (real).
%   zfmm2dpart      - Laplace particle FMM in R^2 (Cauchy sums).
%   cfmm2dpart      - Laplace particle FMM in R^2 (g. Cauchy sums).
%
% Direct evaluation routines.
%   h2dpartdirect - Helmholtz particle target interactions in R^2.
%   l2dpartdirect - Laplace particle target interactions in R^2 (complex).
%   r2dpartdirect - Laplace particle target interactions in R^2 (real).
%   z2dpartdirect - Laplace particle target interactions in R^2 (Cauchy).
%   c2dpartdirect - Laplace particle target interactions in R^2 (g. Cauchy).
%

Acknowledgments

This work was supported in part by the Department of Energy and in part by the Air Force Office of Scientific Research under MURI grant FA9550-06-1-0337 and NSSEFF Program Award FA9550-10-0180, in part by the NSF under grant DMS09-34733, and in part by Meyer Sound Laboratories, Inc.

fmmlib2d's People

Contributors

zgimbutas avatar ahbarnett 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.