fem_sympy_core::ReferenceSimplex Class Reference

List of all members.

Public Member Functions

def __init__
def integrate

Public Attributes

 nsd
 coords


Detailed Description

Definition at line 12 of file fem_sympy_core.py.


Member Function Documentation

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

Definition at line 13 of file fem_sympy_core.py.

00013                            : 
00014         self.nsd = nsd
00015         coords = []
00016         if nsd <= 3: 
00017             coords = [x,y,z][:nsd]
00018         else: 
00019             coords = []
00020             for d in range(0,nsd): 
00021                 coords.append(Symbol("x_%d" % d))
00022         self.coords = coords
00023 

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

Definition at line 24 of file fem_sympy_core.py.

00024                          : 
00025         coords = self.coords
00026         nsd = self.nsd
00027 
00028         limit = 1 
00029         for p in coords:  
00030             limit -= p
00031 
00032         intf = f 
00033         for d in range(0,nsd): 
00034             p = coords[d]
00035             limit += p
00036             intf = integrate(intf.expand(), (p, 0, limit))  
00037         return intf
00038 


Member Data Documentation

Definition at line 22 of file fem_sympy_core.py.

Definition at line 14 of file fem_sympy_core.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 31 16:17:05 2009 for SyFi by  doxygen 1.5.9