201 |
""" |
""" |
202 |
base class for finley problem on a rectangular mesh |
base class for finley problem on a rectangular mesh |
203 |
""" |
""" |
204 |
def __init__(self,n=1,order=1,dim=2): |
def __init__(self,n=1,order=1,dim=2,num_equations=1): |
205 |
""" |
""" |
206 |
sets up a recangular mesh in finley on a unit cube/square |
sets up a recangular mesh in finley on a unit cube/square |
207 |
|
|
212 |
@param dim: spatial dimension |
@param dim: spatial dimension |
213 |
@type n: 2 or 3 |
@type n: 2 or 3 |
214 |
""" |
""" |
215 |
super(RegularFinleyProblem,self).__init__(name=str((order*n+1)**dim)) |
super(RegularFinleyProblem,self).__init__(name=str(num_equations*(order*n+1)**dim)) |
216 |
self.__n=n |
self.__n=n |
217 |
self.__order=order |
self.__order=order |
218 |
self.__dim=dim |
self.__dim=dim |
219 |
|
self.__num_equations=num_equations |
220 |
|
|
221 |
def getDomain(self): |
def getDomain(self): |
222 |
""" |
""" |
316 |
self.mu0=mu0 |
self.mu0=mu0 |
317 |
self.normal=numarray.array(normal) |
self.normal=numarray.array(normal) |
318 |
self.alpha=alpha |
self.alpha=alpha |
319 |
super(AnisotropicSystem,self).__init__(n,order,dim) |
super(AnisotropicSystem,self).__init__(n,order,dim,dim) |
320 |
|
|
321 |
|
|
322 |
def getTestProblem(self,domain): |
def getTestProblem(self,domain): |