I'm planing on writing a 3D-SEM library, in which I need to evaluate expressions such as:
integral(mesh, f*v);
With f a function and v is a test function. The expression f*v can effectively be rewritten as a rank 6 tensor:
and the integral is then a tensor reduction:
This can be evaluated quickly in three steps:
The math are quite simple, but I'm not quite sure how to implement it. Are there some tensor library that are able to perform similar things ?
Alternatively, are there articles I could read that could give me some pointers on how to implement this ?
Thanks in advance