SyFi 0.3
fem_sympy::ReferenceSimplex Class Reference

List of all members.

Public Member Functions

def __init__
def integrate

Public Attributes

 nsd
 coords

Detailed Description

Definition at line 7 of file fem_sympy.py.


Constructor & Destructor Documentation

def fem_sympy::ReferenceSimplex::__init__ (   self,
  nsd 
)

Definition at line 8 of file fem_sympy.py.

00008                            : 
00009         self.nsd = nsd
00010         coords = []
00011         if nsd <= 3: 
00012             coords = symbols('xyz')[:nsd]
00013         else: 
00014             coords = []
00015             for d in range(0,nsd): 
00016                 coords.append(Symbol("x_%d" % d))
00017         self.coords = coords
00018 

Member Function Documentation

def fem_sympy::ReferenceSimplex::integrate (   self,
  f 
)

Definition at line 19 of file fem_sympy.py.

00019                          : 
00020         coords = self.coords
00021         nsd = self.nsd
00022 
00023         limit = 1 
00024         for p in coords:  
00025             limit -= p
00026 
00027         intf = f 
00028         for d in range(0,nsd): 
00029             p = coords[d]
00030             limit += p
00031             intf = integrate(intf, (p, 0, limit))  
00032         return intf
00033 

Member Data Documentation

Definition at line 8 of file fem_sympy.py.

Definition at line 8 of file fem_sympy.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines