Replies: 1 comment 1 reply
-
ChunkSpan should already represent a tensor field ? Let us say you want to store ChunkSpan<double, DiscreteDomain<Mu, Nu, DDimX, DDimY, DDimZ>> should be a representation of it, isn't it ? I did not get any notification of the creation of this discussion. I only see it now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is clearly unrelated to current developments but I had the following idea to describe tensor fields:
I think we could have a new kind of discrete_space aiming to enumerate the elements of a tensor, in the spirit of:
Then the idea would be to use TensorTags to describe the dimensions of the tensor (like, for a 2D tensor
T_{\mu\nu}
we would haveTensorTags... = Mu, Nu
. We could then write the associated DiscreteDomain:It would then allow to build supports for tensor_fields:
The advantages I see are:
tensor_field_support(mesh, tensor_dom)
vstensor_field_support(tensor_dom, mesh)
)(I hope there are not too much mistakes in the code I have written here and the intention is understandable)
Beta Was this translation helpful? Give feedback.
All reactions