GithubHelp home page GithubHelp logo

xibem's Introduction

XIBEM

PhD code - eXtended Isogeometric Boundary Element Method

This code is a stripped down version of the code I wrote for my PhD research.

This version has had all visualisation code removed and is purely for obtaining data.

Please note that this is research code and not some refined code I ever intended for any other use. It is also poorly commented as it was intended for short-term use and not by anyone else. [Big slap on wrist]

Some parts (especially the meshes) are incredibly poorly written and untidy. The cause: priorities. They were always intended to be temporary but over the course of my PhD, I never found the time or reason to fix them.

Four different meshes (two 2D and two 3D) have been included as examples of problems that can be sovled.


For the NURBS and Bezier parts of these codes to work, the correct NURBSinC file must be placed in the BEM2D and BEM3D folders.

I have run some of the recursive functions in C because they are faster than running lots of for-loops inside Python. The functions can, of course, be run in Python if prefered.

Inside NURBSinC_files are the following files which may work for the following OS:

NURBSinC_linux32.so -- for 32-bit Linux (e.g. Ubuntu) NURBSinC_linux64.so -- for 64-bit Linux (e.g. Ubuntu) NURBSinC_mac64.so -- this should work for all Mac OSX NURBSinC_win32.pyd -- for 32-Windows (compiled in Windows 7)

The right file should be copied into the BEM2D and BEM3D folders and renamed NURBSinC.so or NURBSinC.pyd as appropriate.

If a new file is needed, the NURBSinC.pyx file can be converted into C code and compiled by running the following command in the terminal:

python setup.py build_ext --inplace

This will require the Cython package to be installed for Python. I have found that this rarely works first time and a folder of NumPy Fortran (.h) files will have to be copied into an 'include' folder somewhere. Where the files are and where they have to be copied to varies on OS and Python installation, though much of this can be determined from reading the logfiles.

xibem's People

Contributors

michaeljpeake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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