Skip to main content
13-Aquamarine
January 10, 2019
Solved

Why is RK fixed not working

  • January 10, 2019
  • 2 replies
  • 3011 views

I have a worksheet that perfectly worked without units, but when I try to insert units RKfixed says that there are still units although I believe I stripped them all. Would someone be so kind to check what I did overlook?

Best answer by terryhendicott

Hi,

 

Working File.

 

In the definition of  D the parameters need to be unit less.  PvO2.c is just a variable for the definition.  You could call it "y".  The units are applied to get λ.p and not used in the second equation of the function "D".

2 replies

21-Topaz II
January 10, 2019

Hi,

in the function D(x,--) the variable x isn't present . 

FDS13-AquamarineAuthor
13-Aquamarine
January 10, 2019

Thank you for your reply. The x represents the start and end value for rkfixed and is in my opinion correct. It works when I use it without units

21-Topaz II
January 10, 2019

Hi,

 

Approx 89 is the result as predicted

 

You do not need when finding the ratio of two values with the same units to divide by the units.

 

Not sure why you have vectorised the equations?

 

Cheers

Terry

FDS13-AquamarineAuthor
13-Aquamarine
January 10, 2019

Thank you for your reply. The vectorization is done because in the final version the inputs are vectors but you are right it is not necessary for the example file. It works indeed perfect when removing the vectorization. However when I use a vector it is no longer working as shown in the attached worksheet. Any further suggestions?

21-Topaz II
January 10, 2019

Hi,

 

Working File.

 

In the definition of  D the parameters need to be unit less.  PvO2.c is just a variable for the definition.  You could call it "y".  The units are applied to get λ.p and not used in the second equation of the function "D".