Package esys :: Package escript :: Module pdetools :: Class NoPDE
[show private | hide private]
[frames | no frames]

Class NoPDE


solves the following problem for u:

kronecker[i,j]*D[j]*u[j]=Y[i]

with constraint

u[j]=r[j] where q[j]>0

where D, Y, r and q are given functions of rank 1.

In the case of scalars this takes the form

D*u=Y

with constraint

u=r where q>0

where D, Y, r and q are given scalar functions.

The constraint is overwriting any other condition.
Method Summary
  __init__(self, domain, D, Y, q, r)
initialize the problem
Data object in the FunctionSpace Solution or ReducedSolution. getSolution(self)
returns the solution
  setReducedOff(self)
sets the FunctionSpace of the solution to Solution
  setReducedOn(self)
sets the FunctionSpace of the solution to ReducedSolution
  setValue(self, D, Y, q, r)
assigns values to the parameters.

Method Details

__init__(self, domain, D=None, Y=None, q=None, r=None)
(Constructor)

initialize the problem
Parameters:
domain - domain of the PDE.
           (type=Domain)
D - coefficient of the solution.
           (type=float, int, NumArray, Data)
Y - right hand side
           (type=float, int, NumArray, Data)
q - location of constraints
           (type=float, int, NumArray, Data)
r - value of solution at locations of constraints
           (type=float, int, NumArray, Data)

getSolution(self)

returns the solution
Returns:
the solution of the problem
           (type=Data object in the FunctionSpace Solution or ReducedSolution.)

setReducedOff(self)

sets the FunctionSpace of the solution to Solution

setReducedOn(self)

sets the FunctionSpace of the solution to ReducedSolution

setValue(self, D=None, Y=None, q=None, r=None)

assigns values to the parameters.
Parameters:
D - coefficient of the solution.
           (type=float, int, NumArray, Data)
Y - right hand side
           (type=float, int, NumArray, Data)
q - location of constraints
           (type=float, int, NumArray, Data)
r - value of solution at locations of constraints
           (type=float, int, NumArray, Data)

Generated by Epydoc 2.1 on Thu Apr 27 11:16:11 2006 http://epydoc.sf.net