-
I wonder is it possible to implement quickly parameter-dependent assembly, e.g. the problem |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
There is no command to do them all at once. In principle it would be possible to have a "TrilinearForm" to assemble 3-tensors and then do multiple contractions to 2-tensors. However, I think the limitation is that there is no efficient data structure (similar to scipy.sparse) available for such sparse 3-tensors that would be suitable for FE assembly (sums multiple values during init). One thing you could try is using Dask (and dask.bag) to parallelize the for-loop. Those computations do not depend on one another so if you have n_p computers, it should be pretty quick. |
Beta Was this translation helpful? Give feedback.
There is no command to do them all at once. In principle it would be possible to have a "TrilinearForm" to assemble 3-tensors and then do multiple contractions to 2-tensors. However, I think the limitation is that there is no efficient data structure (similar to scipy.sparse) available for such sparse 3-tensors that would be suitable for FE assembly (sums multiple values during init).
One thing you could try is using Dask (and dask.bag) to parallelize the for-loop. Those computations do not depend on one another so if you have n_p computers, it should be pretty quick.