List of all members.
Detailed Description
Definition at line 12 of file fem_sympy_core.py.
Constructor & Destructor 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
Member Function Documentation
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
The documentation for this class was generated from the following file: