fem_sympy_core::Lagrange Class Reference

List of all members.

Public Member Functions

def __init__
def nbf
def compute_basis

Public Attributes

 nsd
 order
 N


Detailed Description

Definition at line 130 of file fem_sympy_core.py.


Member Function Documentation

def fem_sympy_core::Lagrange::__init__ (   self,
  nsd,
  order 
)

Definition at line 131 of file fem_sympy_core.py.

00131                                  : 
00132         self.nsd = nsd
00133         self.order = order
00134         self.compute_basis()
00135 

def fem_sympy_core::Lagrange::compute_basis (   self  ) 

Definition at line 139 of file fem_sympy_core.py.

00139                            : 
00140         order = self.order 
00141         nsd = self.nsd
00142         N = []
00143         pol, coeffs, basis = bernstein_space(order, nsd)
00144         points = create_point_set(order, nsd)
00145 
00146         equations = []
00147         for p in points: 
00148             ex = pol.subs(x, p[0])
00149             if nsd > 1: 
00150                 ex = ex.subs(y, p[1]) 
00151             if nsd > 2: 
00152                 ex = ex.subs(z, p[2]) 
00153             equations.append(ex )
00154 
00155 
00156         A = create_matrix(equations, coeffs)
00157         b = eye(len(equations)) 
00158         xx = A//b
00159 
00160 
00161         for i in range(0,len(equations)):
00162             Ni = pol 
00163             for j in range(0,len(coeffs)):
00164                 Ni = Ni.subs(coeffs[j], xx[j,i]) 
00165             N.append(Ni)
00166 
00167         self.N = N                             
00168 
00169 
00170 
00171 
00172 
00173 
00174 

def fem_sympy_core::Lagrange::nbf (   self  ) 

Definition at line 136 of file fem_sympy_core.py.

00136                  : 
00137         return len(self.N)
00138 


Member Data Documentation

Definition at line 167 of file fem_sympy_core.py.

Definition at line 132 of file fem_sympy_core.py.

Definition at line 133 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