chinthak

10 Reputation

One Badge

6 years, 38 days

MaplePrimes Activity


These are replies submitted by chinthak

@Carl Love Thank you very much for your help and very sorry for the late reply.The command you wrote to convert the list to an array is helping me a lot to get ahead. And the commands you suggested to simplify my code are elegant and very useful. Now the only problem is that, since it is an array (not a tensor) I am unable to use the tensor libraries for various purposes. For example, to use the Libraries like TensorComponents, RedefineTensorComponents etc. Instead I am using for loops everywhere to achieve the same (which is taking forever to run, each time). I did not finish the code yet, I hope to do it in a few days though. Do you have any thoughts on this ?

@Carl Love Thanks again,

 

So, here I attach my worksheet. At the end of the worksheet, I have a list named "solutionlist", which is the list, I want to convert into a tensor, wth the corresponding elements/components.

Please note that, the list is organized in the exact same order I would want the tensor components to take positions.

For example, if the tensor I want to create is T[a, b, c, d, e, f], then, 

T[1, 1, 1, 1, 1, 1] = solutionlist[1]

T[2, 1, 1, 1, 1, 1] = solutionlist[2]

etc...

(If it will help you, let me also mention that, the list (solutinlist) is obtained by solving a bunch of constraint equations of a tensor. So, this list has all the tensor components expressed in terms of the independent components only)

Please let me know if you need any more information.               z_solution2.mw

 

PS: I have noticed that the Library:-RedefineTensorComponent() library in the physics package is not working anymore after the update. Do you have any information regarding this?

Thank you very much for your response.

But it looks like the steps that you have indicated do the reverse of what I actually want. 

What I actually want is to make the elements of a list as the corresponding components of a tensor. So it should go from the list to a tensor.

So, I have a list of 4096 elements, I want them to be the components of a rank six tensor. (4*4*4*4*4*4= 4096)

I hope this is clear, and you can help better now. 

 

Page 1 of 1