You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
guyer
changed the title
Behavior of multiplying MeshVariable by list is strange
Behavior of multiplying MeshVariable by list can be strange
Sep 28, 2023
It is often desired to use a scalar field as a vector; as a convection coefficient, for instance. In 1D, this can be achieved by
Note that
does not work.
In 2D, FiPy is tolerant about the orientation of the "vector" list:
It's possible to get strange results if the vector-like list is not of the same dimension as the
CellVariable
:Multiplying by a singly-nested list always seems to be interpreted as multiplication by a scalar:
The text was updated successfully, but these errors were encountered: