Variable#
- class Variable#
Bases:
FieldQuantity
Represent a physical variable field, e.g. magnetization.
- __init__(impl)#
- set(value)#
Set the variable value.
- Parameters:
value (tuple of floats, ndarray, or callable) – The new value for the variable field can be set uniformly with a tuple of floats. The number of floats should match the number of components. Or the new value can be set cell by cell with an ndarray with the same shape as this variable, or with a function which returns the cell value as a function of the position.
- get()#
Get the variable value.