List of all members.
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
The documentation for this class was generated from the following file: