Hello, I define the space W as:
V_q = VectorFunctionSpace(mesh,'CG',1) V_T = FunctionSpace(mesh,'CG',1) W = V_q*V_T
and a function qT as:
qT = Function(W)
How can I initialize the function qT ?
Thanks.
Can you be more specific on how you would like to initialize it?
With constant values. Thanks
You can do an interpolation of a Constant:
qT.interpolate(Constant((1,2,3)))
The above assumes you are in 2D.
Thank you very much.