pik1432

245 Reputation

6 Badges

6 years, 123 days

MaplePrimes Activity


These are questions asked by pik1432

Hello there, 

Would you allow me to ask one question?

Is there any way to get a saturated water vapor pressure value with a temperature outside of the range?

The range here means [273.06 K, 647.096 K]. The pressure value certainly exists (T<273.06 K), but the API only comes up with an error. 

Here is the Maple worksheet where I got into this issue:

restart;

with(ThermophysicalData):

with(CoolProp):        

with(Units[Standard]):

with(ScientificConstants):

T2 := (-40.0 + 273.15) * Unit('K');

233.15*Units:-Unit(K)

(1)

xbb := 1: # 100% steam, saturated.

Pg2 := PropsSI("P", "T", T2, "Q", xbb, "water");

Error, (in ThermophysicalData:-CoolProp:-PropsSI) Temperature to QT_flash [233.15 K] must be in range [273.06 K, 647.096 K] : PropsSI("P","T",233.15,"Q",1,"water")

 

 

Download Q20220111.mw

Hello there, 

Would you allow me to ask these two questions?

1) is there any way to collect the expression 'eq14_2' w.r.t. DeltaP? The question is labeled as 'Q1' in the worksheet. 

2) Why does the 'DeltaP' term survive at the RHS of the expression 'eq14_2_3'? In other words, is it possible to cancel out the same term, 'DeltaP', in numerator and denominator?

restart;

eq14_1_3 := w[NET] = Delta*T[Sfg];

w[NET] = Delta*T[Sfg]

(1)

eq14_2 := w[NET] = -((v[2] + v[3])/2)((-DeltaP + P) - P) - ((v[1] + v[4])/2)((P - P) + DeltaP);

w[NET] = -(1/2)*v[2](-DeltaP)-(1/2)*v[3](-DeltaP)-(1/2)*v[1](DeltaP)-(1/2)*v[4](DeltaP)

(2)

simplify(eq14_2);

w[NET] = -(1/2)*v[2](-DeltaP)-(1/2)*v[3](-DeltaP)-(1/2)*v[1](DeltaP)-(1/2)*v[4](DeltaP)

(3)

collect(expand(eq14_2), DeltaP, distributed); # Q1

w[NET] = -(1/2)*v[2](-DeltaP)-(1/2)*v[3](-DeltaP)-(1/2)*v[1](DeltaP)-(1/2)*v[4](DeltaP)

(4)

Desired1 := w[NET] = DeltaP * (-v[2]*(-1)/2 - v[3]*(-1)/2 - v[1]*(1)/2 - v[4]*(1)/2);

w[NET] = DeltaP*((1/2)*v[2]+(1/2)*v[3]-(1/2)*v[1]-(1/2)*v[4])

(5)

eq14_2_2 := rhs(eq14_1_3) = rhs(eq14_2);

Delta*T[Sfg] = -(1/2)*v[2](-DeltaP)-(1/2)*v[3](-DeltaP)-(1/2)*v[1](DeltaP)-(1/2)*v[4](DeltaP)

(6)

eq14_2_3 := eq14_2_2 / DeltaP; # Q2

Delta*T[Sfg]/DeltaP = (-(1/2)*v[2](-DeltaP)-(1/2)*v[3](-DeltaP)-(1/2)*v[1](DeltaP)-(1/2)*v[4](DeltaP))/DeltaP

(7)

Desired2 := w[NET]/DeltaP =  (-v[2]*(-1)/2 - v[3]*(-1)/2 - v[1]*(1)/2 - v[4]*(1)/2);

w[NET]/DeltaP = (1/2)*v[2]+(1/2)*v[3]-(1/2)*v[1]-(1/2)*v[4]

(8)

 

Download Q20220110.mw

Hello there, 

Is there any API that would translate the numerical information to a more informative string?

Or, is there the implementation of the original CoolProp API, 'PhaseSI()', which comes up with a string, instead of the numerical value?

Thank you, 

In Kwon Park  

Hello there, 

Would you allow me to a question regarding the correct way of using 'alias?

In the attached worksheet, an alias is defined, then a. the defined alias is not working (please have a look at the line with the same comment), b. the alias works in the other way around (please have a look at the line with the corresponding comment, Alias is working backward). When I tried to substitute the function with the 'subs' command (please have a look at the expression 'Desired'), then I was able to get the result, expected from alias command. 

Perhaps, I am confused with how the 'alias' command works. I would appreciate it if the correct way is explained. 

Thank you, 

In Kwon Park 

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/Q20210724.mw .
 

Download Q20210724.mw

 

Hello there, 

While I was trying to calculate the complex (i.e., P and Q) power equations, I got this question. 

Thus, I wonder if I can have a chance to ask the question here:

a. When the voltage and current are defined as functions, taking the t (time) as a input variable, I was not able to get the proper outcome from the operation. Those attempts are labeled as '#1' and '#2' in the attached worksheet. 

b. When the voltage and current are defined as simple complex expression, I was able to see what I wanted. The expression is named as 'ideal' in the attached worksheet. 

c. Therefore, my question is to see if there is a way to make the operaion using the functions in the same way as done by the simple expressions. 

d. Any insight would be appreciated. 

Thank you. 

Q20210617.mw

1 2 3 4 5 6 7 Last Page 3 of 12