PNachtwey
Electrical
- Oct 9, 2004
- 776
I would like to use units but Mathcad is not very good at handling them.
For instance, I am trying to calculate the change in pressure when a volume of oil is compressed. The formula is
delta Pressure = Bulk Modulus of Oil * delta volume / volume. If I make this continuous it is dp/dv=-B/v. I can solve for delta p = B*(ln(a)-ln(b)) where
delta p is the change pressure
B is the bulk modulus of oil
a is the initial volume of oil
b is the compressed volume of oil
The problem is that I have units for a and b and Mathcad will not take the natural log unless a and b are unit less. Does anybody know how to temporarily strip the units from a variable and only within an equation?
I want to keep the units for normal dimensional analysis.
Peter Nachtwey
For instance, I am trying to calculate the change in pressure when a volume of oil is compressed. The formula is
delta Pressure = Bulk Modulus of Oil * delta volume / volume. If I make this continuous it is dp/dv=-B/v. I can solve for delta p = B*(ln(a)-ln(b)) where
delta p is the change pressure
B is the bulk modulus of oil
a is the initial volume of oil
b is the compressed volume of oil
The problem is that I have units for a and b and Mathcad will not take the natural log unless a and b are unit less. Does anybody know how to temporarily strip the units from a variable and only within an equation?
I want to keep the units for normal dimensional analysis.
Peter Nachtwey