Assignments
Assignment(symbol, expression, parsing_locals={})
Bases: ABC
Base class for storing a symbol wrapper together with a symbolic expression. An assignment is a formal equality between the symbol wrapper and the expression.
PARAMETER | DESCRIPTION |
---|---|
symbol
|
LHS of the assignment (e.g. parameter or variable). If input is a string, it is converted to a SymbolWrapper instance.
TYPE:
|
expression
|
expression on the RHS. If input is a string or number, it is converted to a sympy expression.
TYPE:
|
parsing_locals
|
a dictionary mapping strings to sympy objects.
TYPE:
|
Source code in psymple/abstract.py
DifferentialAssignment(symbol, expression, parsing_locals={})
Bases: Assignment
Class storing an ODE of the form \( dx/dt = f(x,t,b) \) where \( b \) is a list of external dependencies.
PARAMETER | DESCRIPTION |
---|---|
symbol
|
LHS of the assignment containing the variable derivative. If input is a string, it is converted to a SymbolWrapper instance.
TYPE:
|
expression
|
function on the RHS. If input is a string or number, it is converted to a sympy expression.
TYPE:
|
parsing_locals
|
a dictionary mapping strings to sympy objects.
TYPE:
|
Source code in psymple/build/assignments.py
ParameterAssignment(symbol, expression, parsing_locals={})
Bases: Assignment
Class storing an assignment of the form \( y = f(x,t,b) \), where \( b \) is a list of external dependencies.
PARAMETER | DESCRIPTION |
---|---|
symbol
|
LHS of the assignment containing the parameter name. If input is a string, it is converted to a SymbolWrapper instance.
TYPE:
|
expression
|
function on the RHS. If input is a string or number, it is converted to a sympy expression.
TYPE:
|
parsing_locals
|
a dictionary mapping strings to sympy objects.
TYPE:
|
Source code in psymple/build/assignments.py
FunctionalAssignment(symbol, expression, parsing_locals={})
Bases: ParameterAssignment
A convenience class to identify parameters which have been constructed from the OutputPort of a FunctionalPortedObject. These represent the core functional building blocks of a System.
Source code in psymple/build/assignments.py
DefaultParameterAssignment(symbol, expression, parsing_locals={})
Bases: ParameterAssignment
A convenience class to identify parameters which have been constructed from default values. These represent those system parameters which are changeable.