Giter Club home page Giter Club logo

igakit's Introduction

igakit: Toolkit for IsoGeometric Analysis (IGA)

Overview

This package implements many of the NURBS routines in Piegl's book using Fortran. It provides Python bindings for these functions using f2py. Finally we provide a NURBS class which uses this functionality for the simplified, manually creation of geometry for use in isogeometric analysis.

Installation

Quick installation:

$ pip install https://github.com/dalcinl/igakit/archive/refs/heads/master.zip

Alternatively, clone the repository hosted at Bitbucket:

$ git clone https://github.com/dalcinl/igakit

Enter the top level directory, next build and install the package using the standard distutils's setup.py script:

$ cd igakit
$ python setup.py install --user

Acknowledgments

This project was partially supported by the Extreme Computing Research Center (ECRC), Division of Computer, Electrical, and Mathematical Sciences & Engineering (CEMSE), King Abdullah University of Science and Technology (KAUST).

igakit's People

Contributors

dalcinl avatar nocollier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pyccel

igakit's Issues

Error when running order elevation

A minimum working example for order elevation:

import numpy as np
from igakit.nurbs import *
k = np.array([[0,0,0,0.5,1,1,1]])
C = NURBS(k)
C.elevate(0,1)

Will get the following error:

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    C.elevate(0,2)
  File "/home/usr/.local/lib/python3.8/site-packages/igakit/nurbs.py", line 1152, in elevate
    V, Qw = DegreeElevate(p, U, Pw, t)
igalib.error: (n>=1) failed for hidden n: DegreeElevate:n=-1

Unable to install with the instructions in readme

Getting:

note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for igakit
Failed to build igakit
ERROR: Could not build wheels for igakit, which is required to install pyproject.toml-based projects

python >=3.10.8 breaks plotting in igakit

Simple example from docs works perfectly in python <=3.10.6, but throws error in >=3.10.8. I don't have 3.10.7 so I can't test that.

from igakit.cad import circle
from numpy import pi 
c1 = circle(angle=(0,pi/2.))
print(c1.knots)
print(c1.control)
c2 = circle(radius=2,angle=(0,pi/2.))
from igakit.plot import plt
plt.curve(c1,color='b')
plt.curve(c2,color='g')
plt.show()

Error:

Traceback (most recent call last):
  File "/home/elbert5770/Documents/python/igakit_test.py", line 8, in <module>
    plt.curve(c1,color='b')
  File "/home/elbert5770/.local/lib/python3.10/site-packages/igakit/plot.py", line 213, in curve
    crv = self.backend.line3d(lines=lines, **options)
  File "/home/elbert5770/.local/lib/python3.10/site-packages/igakit/plot_mpl.py", line 67, in line3d
    ax = gca()
  File "/home/elbert5770/.local/lib/python3.10/site-packages/igakit/plot_mpl.py", line 19, in gca
    return gcf().gca(projection='3d', **kwargs)
TypeError: FigureBase.gca() got an unexpected keyword argument 'projection'

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.