← Back to team overview

ffc team mailing list archive

mixed formulation

 

I have a question about matrix multiplication in FFC. Say I want to
measure a certain quantity S in respect to a test function psi belonging
to the same finite space:

S = dot(u, psi) (1)

and then I want to use this measure to assemble the bilinear form where
phi is taken from the same finite space of u:

A = dot(S, grad(phi)) (2)

this is equivalent to assemble the bilinear form (1) obtaining the "m x n"
matrix S and then the bilinear form (2) obtaining the "n x m" matrix A.
Then what I need is to perform the multiplication A*S getting a "n x n"
matrix. Can I write A in such a way that this is done directly in the
form? Do I have to define a trilinear form?

Thanks,
Alessio Quaglino






Follow ups