Problem multiplying scalar and vector

Asked by Chukwudi

Hi,

I'm new to fenics. I'm trying to scale a vector function by a constant value as shown below and I keeps getting errors related to the fact that I cant multiply a scalar and vector.

f = Constant(0.01)
V = VectorFunctionSpace(mesh, "Lagrange", 2)
 w = Function(V)
"step to solve for w"
w = f*w

This is the error message
ufl.log.UFLException: Product can only represent products of scalars

Any help on how to solve this will be appreciated

Question information

Language:
English Edit question
Status:
Expired
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.