This is the base class to define a general linear PDE-type problem for
for an unknown function u on a given domain defined
through a Domain object. The problem can be given as a single
equation or as a system of equations.
The class assumes that some sort of assembling process is required to
form a problem of the form
|
__init__(self,
domain,
numEquations=None,
numSolutions=None,
debug=False)
Initializes a linear problem. |
|
|
str
|
__str__(self)
Returns a string representation of the PDE. |
|
|
|
|
bool
|
|
bool
|
|
bool
|
|
Data
|
|
|
|
|
createRightHandSide(self)
Returns an instance of a new right hand side. |
|
|
|
createSolution(self)
Returns an instance of a new solution. |
|
|
Data
|
|
|
getCurrentOperator(self)
Returns the operator in its current state. |
|
|
|
getCurrentRightHandSide(self)
Returns the right hand side in its current state. |
|
|
|
getCurrentSolution(self)
Returns the solution in its current state. |
|
|
int
|
getDim(self)
Returns the spatial dimension of the PDE. |
|
|
Domain
|
getDomain(self)
Returns the domain of the PDE. |
|
|
|
getDomainStatus(self)
Return the status indicator of the domain |
|
|
FunctionSpace
|
|
FunctionSpace
|
|
FunctionSpace
|
|
int
|
|
int
|
|
|
getOperator(self)
Returns the operator of the linear problem. |
|
|
|
getOperatorType(self)
Returns the current system type. |
|
|
|
|
Data
|
|
tuple of int
|
|
Data
|
getSolution(self,
**options)
Returns the solution of the problem. |
|
|
SolverOptions
|
getSolverOptions(self)
Returns the solver options |
|
|
tuple of Operator, and Data.
|
getSystem(self)
Returns the operator and right hand side of the PDE. |
|
|
|
getSystemStatus(self)
Return the domain status used to build the current system |
|
|
bool
|
hasCoefficient(self,
name)
Returns True if name is the name of a coefficient. |
|
|
|
initializeSystem(self)
Resets the system clearing the operator, right hand side and
solution. |
|
|
|
|
|
invalidateOperator(self)
Indicates the operator has to be rebuilt next time it is used. |
|
|
|
invalidateRightHandSide(self)
Indicates the right hand side has to be rebuilt next time it is used. |
|
|
|
invalidateSolution(self)
Indicates the PDE has to be resolved if the solution is requested. |
|
|
|
invalidateSystem(self)
Announces that everything has to be rebuilt. |
|
|
|
isOperatorValid(self)
Returns True if the operator is still valid. |
|
|
|
isRightHandSideValid(self)
Returns True if the operator is still valid. |
|
|
|
isSolutionValid(self)
Returns True if the solution is still valid. |
|
|
bool
|
|
|
isSystemValid(self)
Returns True if the system (including solution) is still vaild. |
|
|
bool
|
isUsingLumping(self)
Checks if matrix lumping is the current solver method. |
|
|
bool
|
|
bool
|
|
|
resetAllCoefficients(self)
Resets all coefficients to their default values. |
|
|
|
resetOperator(self)
Makes sure that the operator is instantiated and returns it
initialized with zeros. |
|
|
|
resetRightHandSide(self)
Sets the right hand side to zero. |
|
|
|
resetSolution(self)
Sets the solution to zero. |
|
|
|
setDebug(self,
flag)
Switches debug output on if flag is True otherwise it is
switched off. |
|
|
|
setDebugOff(self)
Switches debug output off. |
|
|
|
setDebugOn(self)
Switches debug output on. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setReducedOrderOff(self)
Switches reduced order off for solution and equation representation |
|
|
|
setReducedOrderOn(self)
Switches reduced order on for solution and equation representation. |
|
|
|
setReducedOrderTo(self,
flag=False)
Sets order reduction state for both solution and equation
representation according to flag. |
|
|
|
setSolution(self,
u)
Sets the solution assuming that makes the system valid with the
tolrance defined by the solver options |
|
|
|
|
|
setSymmetry(self,
flag=False)
Sets the symmetry flag to flag . |
|
|
|
|
|
|
|
setSystemStatus(self,
status=None)
Sets the system status to status if status
is not present the current status of the domain is used. |
|
|
|
setValue(self,
**coefficients)
Sets new values to coefficients. |
|
|
|
trace(self,
text)
Prints the text message if debug mode is switched on. |
|
|
|
validOperator(self)
Marks the operator as valid. |
|
|
|
validRightHandSide(self)
Marks the right hand side as valid. |
|
|
|
validSolution(self)
Marks the solution as valid. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|