Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I want to create a matrix using a little program with Kronecker Delta (1 if i=j, 0 if not) however it does not work.
Where is the mistake?
Thanks!
Solved! Go to Solution.
Kronecker delta is a function in Mathcad/Prime, so it needs to be called with parameters 'delta(i,j)' rather than with indices 'delta[i,j'.
I can't open your sheet (unrar produces an error message), but I should guess that Prime's error message is that delta is undefined...?
Success!
Luc
Hi,
You do not need to increase "j" it happens automatically,
You have return statement for D in the first for loop not outside it.
Hi,
The return of D needs to be outside of the for loops
You can use identity matrix for Kronecker Delta
Please attach your worksheet to clarify your problem.
You may have to zip it first. A serious bug in this forum often prevents from attaching a mathcad file. In Windows Explorer click with the right-mouse button on the mathcad file and select 'Send to' -> 'Compressed (zipped) folder'. The resulting .zip file can be attached
Well, I will use the identity matrix as a substitute for the Kronecker Delta.
Thanks
Hi,
Stress has units of MPa. D is dimensionless. Cheers
Hi,
Stress you have defined looks like it needs units of MPa,
This will make D dimensionless.
Kronecker delta is a function in Mathcad/Prime, so it needs to be called with parameters 'delta(i,j)' rather than with indices 'delta[i,j'.
I can't open your sheet (unrar produces an error message), but I should guess that Prime's error message is that delta is undefined...?
Success!
Luc
Just to summarize what Luc and Terry already have written:
Hi,
You do not need to program it, just use matrix manipulation will do in one step
Could you convert it to Prime 3.0 or lower?
Thanks!
Hi,
You cannot use Prime 4.0 to save back to Prime 3.0.
Have enclosed a JPEG snapshot of screen.