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

Units in the rkfixed function

ValeryOchkov
24-Ruby IV

Units in the rkfixed function

We can use units in Mathcad Prime by the solving ODE. It is very good! But I see one error:

rkfixed-unit-error.png

8 REPLIES 8

All is OK by the using the odesolve function:

odesolve-units.png

It is very strange:

rkfixed - 1 error

Rkadapt - 2 errors

Radau - no error

020112.GIF

Viktor

Viktor

(1+2+0) / 3 = 1 Error!

And then I was happy that the unit can now be used by the solving differential equations

One calms me - in Maple we have same disorder by using units in the solving differential equations

It seems that the units check does not work:

rkfixed-unit-check-error.png

..And more example (Mathcad Prime 3.0)

Figure+03-29+Error+in+units.PNG

Viktor

Viktor

Mathcad sheet in attach

Valery,

The other solvers will probably work with units in a semi-fashion if you make the initial values dimensionless by dividing by their default units. The results will appear dimensionless also, so the units need to be reattached to the output. I got the first two solvers to work but didn't go on to the others.

So the state is half there regarding units. The derivative functions (your "f") can now have dimensions and they can be different, but not the initial values and results. The initial values can have dimensions provided they are all the same.

These results are similar to the sbval situation discussed earlier.

Harvey

HARVEY HENSLEY wrote:

Valery,

The other solvers will probably work with units in a semi-fashion

Harvey

Thanks Harvey.

I know it very well. The life in Russia is in semi-fashion too. Not only now

Top Tags