Skip to content

Commit

Permalink
rename finity -> nutils
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjanvanzwieten committed Oct 28, 2013
1 parent 3f6bd4f commit bc0ddf4
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 80 deletions.
27 changes: 14 additions & 13 deletions README.md
@@ -1,21 +1,22 @@
The Nutils Project
==================

The nutils project is a collaborative programming effort aimed at the creation
of a general purpose python programming library for setting up finite element
computations. Identifying features are a heavily object oriented design, strict
separation of topology and geometry, and CAS-like function arithmatic such as
found in maple and mathematica. Primary design goals are:
The nutils project is a collaborative programming effort aimed at the
creation of a general purpose python programming library for setting up finite
element computations. Identifying features are a heavily object oriented
design, strict separation of topology and geometry, and CAS-like function
arithmetic such as found in maple and mathematica. Primary design goals
are:

* __Readability__. Finite element scripts built on top of finity should focus
on workflow and maths, unobscured by finite element infrastructure.
* __Flexibility__. Finity is a toolbox; it does not enforce how its tools are
to be used. Missing components can be added locally without loosing
* __Readability__. Finite element scripts built on top of nutils should focus
on work flow and maths, unobscured by finite element infrastructure.
* __Flexibility__. The nutils are tools; they do not enforce a strict work
flow. Missing components can be added locally without loosing
interoperability.
* __Compatibility__. Exposed objects are of native python type or allow for
easy conversion to leverage third party tools.
* __Speed__. Finity components are self-optimizing and support parallel
computation. Typical scripting inefficiencies are discouraged by design.
* __Speed__. Nutils are self-optimizing and support parallel computation.
Typical scripting inefficiencies are discouraged by design.

The nutils are under active development, and are presently in use by PhD and
MSc students for research on a variety of topics.
The nutils are under active development, and are presently in use for
academic research by Phd and MSc students.
106 changes: 53 additions & 53 deletions nutils/_log/viewer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nutils/function.py
Expand Up @@ -3065,7 +3065,7 @@ def blocks( arg ):
def pointdata ( topo, ischeme, func=None, shape=None, value=None ):
'point data'

from finity import topology
from . import topology
assert isinstance(topo,topology.Topology)

if func is not None:
Expand Down Expand Up @@ -3186,7 +3186,7 @@ def _cfunc( args, body ):
class CBuilder( object ):
'cbuilder'

def __init__( self, cachedir='/tmp/finity' ):
def __init__( self, cachedir='/tmp/nutils' ):
from cffi import FFI
self.ffi = FFI()
self.codebase = {}
Expand Down
2 changes: 1 addition & 1 deletion nutils/numeric.py
Expand Up @@ -6,7 +6,7 @@
warnings.warn( '''Failed to load _numeric module.
Falling back on equivalent python implementation. THIS
MAY SEVERELY IMPACT PERFORMANCE! Pleace compile the C
extensions by running 'make' in the finity directory.''', stacklevel=2 )
extensions by running 'make' in the nutils directory.''', stacklevel=2 )
class _numeric:
@staticmethod
def contract( A, B, axes ):
Expand Down
2 changes: 1 addition & 1 deletion nutils/plot.py
Expand Up @@ -575,7 +575,7 @@ def __exit__( self, exc, msg, tb ):
log.path( os.path.basename(imgpath) )

class PylabAxis( object ):
'matplotlib axis augmented with finity-specific functions'
'matplotlib axis augmented with nutils-specific functions'

def __init__( self, ax, title ):
'constructor'
Expand Down
6 changes: 3 additions & 3 deletions nutils/util.py
Expand Up @@ -355,11 +355,11 @@ def run( *functions ):
'dot': False,
}
try:
execfile( os.path.expanduser( '~/.finityrc' ), {}, properties )
execfile( os.path.expanduser( '~/.nutilsrc' ), {}, properties )
except IOError:
pass # file does not exist
except:
print 'Error in .finityrc (skipping)'
print 'Error in .nutilsrc (skipping)'
print traceback.format_exc()

if '-h' in sys.argv[1:] or '--help' in sys.argv[1:]:
Expand Down Expand Up @@ -462,7 +462,7 @@ def run( *functions ):

commandline = [ ' '.join([ scriptname, funcname ]) ] + [ ' --%s=%s' % item for item in kwargs.items() ]

log.info( 'finity v2.00+dev' )
log.info( 'nutils v0.1+dev' )
log.info()
log.info( ' \\\n'.join( commandline ) + '\n' )
log.info( 'start %s\n' % time.ctime() )
Expand Down
2 changes: 1 addition & 1 deletion tests/test_doubleint.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from finity import *
from nutils import *
import numpy, warnings
almostEquals = lambda val, places=7: numpy.abs( val ) < 10.**(-places)
infnorm = lambda f: numpy.linalg.norm( f, numpy.inf )
Expand Down
2 changes: 1 addition & 1 deletion tests/test_finitecell.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from finity import *
from nutils import *
import numpy

class FiniteCellTestBase( object ):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_function.py
@@ -1,4 +1,4 @@
from finity import *
from nutils import *


class FuncTest( object ):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pointdata.py
@@ -1,4 +1,4 @@
from finity import *
from nutils import *
import numpy

grid = numpy.linspace( 0., 1., 5 )
Expand Down
4 changes: 2 additions & 2 deletions tests/test_quadrature.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from finity import *
from nutils import *
import numpy, re
from math import gamma

Expand Down Expand Up @@ -155,7 +155,7 @@ def test_transformations( self ):
points_ref = numpy.empty( points.shape )
points_ref[:,:2] = transform( points[:,:2], t1 )
points_ref[:,2:] = transform( points[:,2:], t2 )
points_test = elem.singular_ischeme_quad( ischeme )[0]
points_test = elem.singular_ischeme_quad( orientation=elem.orientation, ischeme=ischeme )[0]
assert numpy.linalg.norm( points_ref-points_test ) < 1.e-14

# See if inverse transformation brings back to points[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_topology.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from finity import *
from nutils import *
import numpy

grid = numpy.linspace( 0., 1., 4 )
Expand Down

0 comments on commit bc0ddf4

Please sign in to comment.