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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Problem with units on solve blocks

dguerra
1-Visitor

Problem with units on solve blocks

Hello,

I'm realtively new to MathCAD Prime 3.1. In my previous works I used MathCAD 14 but with this one I can't make this work. Especially the units.

Basically, I just want to solve a system of two equations and I can't make this work right. That's why I need some help from you guys. I've searched a lot here, but the problem remains.

At the end of the attached file there are two solve blocks. I want to solve them both, so in each one I do: Find(W_L1,R1), for example, to obtain result of the system, but MathCAD can't do that for me and I don't understand why. If I eliminate all the units and try to solve them, I think it does the math. Although, as this is part of my thesis work, I want everything right, including the units, that are essential.

Thank you in advance for your time.

Regards!

ACCEPTED SOLUTION

Accepted Solutions
-MFra-
21-Topaz II
(To:dguerra)

Something is wrong in the formulas. (Assuming that the units of measure, which I attributed to R1 and W_L1, are the right ones)

4eq.jpg

On the other hand, leaving everything unchanged, something is wrong as well:

4eq1.jpg

Also the number 1 under the radical should be sized (1S)

View solution in original post

9 REPLIES 9
RichardJ
19-Tanzanite
(To:dguerra)

Many of us can't read a Prime 3.1 file. Please post a pdf.

Richard,

You can find it in attachment.

Do you want to solve ODE?

I think you must use the derivative operator and the function with one argument T

Werner_E
25-Diamond I
(To:dguerra)

Not using the derivative operator is just one of the problems.

You should define your function V.CTAT using := before the solve block.

Also you should define the derivative you want to use as a function before. But you seem to take the derivative with respect to a variable T the function is not depending on - so the derivative would be zero! probably not what you intended.

Furthermore you have a lot of unit mismatches, e,.g.

V.TN*K1/V.TN would be dimensionless, but the derivate would have the unit volt divided by unit of T

In the nominator you try to add three summands - each of which has a different unit. Obviously this can't work.

Are you sure that R1 should be dimensionless? If not, you would have to provide the correct unit with the guess, too.

WE

-MFra-
21-Topaz II
(To:dguerra)

Something is wrong in the formulas. (Assuming that the units of measure, which I attributed to R1 and W_L1, are the right ones)

4eq.jpg

On the other hand, leaving everything unchanged, something is wrong as well:

4eq1.jpg

Also the number 1 under the radical should be sized (1S)

dguerra
1-Visitor
(To:dguerra)

Thank you so much for your help guys!

Yes, something was wrong with the expression, as I was not using the value of T on the equation. Basically, I want to study how the voltage V.CTAT1 varies with temperature T. Then I have to do the same thing for another V.CTAT2 (in series) and dimension the relation W/L in order to achieve temperature independence, because I want to have a voltage reference that is independent of the temperature coefficients.

W_L.1 is the ratio between Width and Length of the transistor, so it is unit less. R1 is the value of a resistor that I can vary "outside the box" and T is the range of temperature from 0 to 100 degrees. I think I have something here now:

Capture2.PNG

Capture.PNG

The expression above is directly used from a paper, by the way.

I have another question: The graph you see is for a value of W_L.1 equals to 10. I want to do the same thing for different values, like 20, 30, all the way to 100, and trace all the results in the same plot. Is there anyway of doing that, without "rewriting" the expression ten different times, with ten different W_L values? For example, I want to have something like this:

Id(Vgs)_TFT_Flex_Diode_Vd10V_Vg10V_ParametricW.png

RichardJ
19-Tanzanite
(To:dguerra)

Make V.CTAT1 a function of W_L.1 as well as T, and then just call it with different values of W_L.1

dguerra
1-Visitor
(To:dguerra)

No one?

dguerra
1-Visitor
(To:dguerra)

Thank you, Richard!

Announcements

Top Tags