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

Translate the entire conversation x

Units are not properly converted after symbolic solver

PH_14387723
2-Explorer

Units are not properly converted after symbolic solver

Hello Community, 

 

Please find the mathcad file in the attached it was developed in PTC9

1.In the following after the symbolic evaluation the units are not simplifying, for instance Ohms*Farads

should be seconds, and Farad * Voltage should be Columbs, but 

PH_14387723_0-1762190655083.png

2.After Q2 as assigned as the result after the integration, when I try to call on Q2 it cannot be found, can someone please explain?

PH_14387723_1-1762191042212.png

 

Thanks

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:PH_14387723)

Prime often gets the labels ("Unit", "Variable", "-") wrong when using the symbolics.

You should turn on this option and let the worksheet recalc

Werner_E_0-1762191673474.png

Primes symbolics still does not know anything about units (its treats them as unknowns and so can't simplify Ohm*Farad to seconds) but at least it now gets the labels correct (you can see that the units in the symbolic results are now bold blue (which means they are correctly labeled as "Unit") ans so xou can evaluate the expressions numerically without errors.

 

But I wonder why you would use the symbolics at all and why you are first defining the derivative (I1) just to integrate it a moment later?

Werner_E_2-1762192248422.png

Prime 9 sheet attached

 

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:PH_14387723)

Prime often gets the labels ("Unit", "Variable", "-") wrong when using the symbolics.

You should turn on this option and let the worksheet recalc

Werner_E_0-1762191673474.png

Primes symbolics still does not know anything about units (its treats them as unknowns and so can't simplify Ohm*Farad to seconds) but at least it now gets the labels correct (you can see that the units in the symbolic results are now bold blue (which means they are correctly labeled as "Unit") ans so xou can evaluate the expressions numerically without errors.

 

But I wonder why you would use the symbolics at all and why you are first defining the derivative (I1) just to integrate it a moment later?

Werner_E_2-1762192248422.png

Prime 9 sheet attached

 

Thanks the first solution works,  I will mark it as the solution!

 

The reason to using symbolics is to generate a generic transfer function!

 

Werner_E
25-Diamond I
(To:PH_14387723)

If you are looking for a generic function I would suggest you use the symbolic calculations before you define any numeric values.

Werner_E_0-1762197386289.png

You may also turn the expressions into functions of the input values which makes it easier to evaluate them later and maybe compare the results of different input values

Werner_E_1-1762197726595.png

 

 

The first solution works I will mark as the solution

 

The reason to use symbolics is to generate a generic transfer function

Announcements

Top Tags