cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to use Kronecker Delta?

MarianoC
4-Participant

How to use Kronecker Delta?

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.

Commands

Where is the mistake?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:MarianoC)

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

View solution in original post

12 REPLIES 12

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.

 

f.pngOk, but the Kronecker delta is well used?

Look:

 

 

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.

LucMeekes
23-Emerald III
(To:MarianoC)

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:

Bild.png

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.

 

If you have both applications open on the same PC , you can copy equations from a sheet opened in prime 4 an paste them to a sheet opened in prime 3.1. Don't know if this works for versions below 3.1.

Success!
Luc
Top Tags