yourniteshattal

72 Reputation

2 Badges

15 years, 81 days

MaplePrimes Activity


These are answers submitted by yourniteshattal

maple is giving me errors for a simple calculation of

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

 
> t := 1;
 

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

 

> value returned is”K := 0.1012”

 i dont know how to thank you for this!

is there any way by which i can chang my settings?

maple is give me errors for a simple calculation of

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

 

> t := 1;

 

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

 

> value returned is”K := 0.1012”

 

Can you please help?

thanks!

I know that this is not a prob with your code but an issue with my sittings.

I dont know how to thank you!

 

all i did was copy and past!

 

LSSolve: calling nonlinear LS solver
SolveGeneral: using method=sqp
SolveGeneral: number of problem variables 12
SolveGeneral: number of residuals 10
SolveGeneral: number of nonlinear inequality constraints 0
SolveGeneral: number of nonlinear equality constraints 2
SolveGeneral: number of general linear constraints 11
Error, (in Optimization:-LSSolve) complex value encountered
Error, invalid input: eval received res2[2], which is not valid for its 2nd argument, eqns
Error, (in fsolve) fsolve cannot solve on 2
 

HP=HP1+HP2+HP3+HP4+HP5+HP6+HP7+HP8+HP9+HP10:
eq12:=HP1+HP2+HP3+HP4+HP5+HP6+HP7+HP8+HP9+HP10=HR:

res2:=LSSolve(Res[1..10],{eq11,eq12,x1<=1,x2<=1,x3<=1,x4<=1,x5<=1,x6<=1,x7<=1,x8<=1,x9<=1,x10<=1,T>=Ti},
assume=nonnegative,iterationlimit=5000,feasibilitytolerance=.001,optimalitytolerance=0.001);
evalf(eval([eq1, eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12], res2[2]));
fsolve({eq1, eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12}, convert(res2[2],set));
 

Error, (in Optimization:-LSSolve) objective function must be specified as a list of residuals
Error, invalid input: eval received res2[2], which is not valid for its 2nd argument, eqns
Error, (in fsolve) fsolve cannot solve on 2
can you please send me the code on my e-mail address-

yourniteshattal@rediffmail.com

yourniteshattal@gmail.com

thanks

nitesh

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

> t := 1;

> K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;

>

 

that was not by mistake c this


K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;
                               1.761   1.1611   0.2803
                       2.743 - ----- - ------ + ------
                                 t        2        3 
                                         t        t  
t := 1;
                                      1
K := 2.743-1.761/t-1.1611/t^2+.2803/t^3;
                                   0.1012


now can you believe me????

the following error is generated

HP=HP1+HP2+HP3+HP4+HP5+HP6+HP7+HP8+HP9+HP10:
eq12:=HP1+HP2+HP3+HP4+HP5+HP6+HP7+HP8+HP9+HP10=HR:


res2:=LSSolve(Res[1..10],{eq11,eq12,x1<=1,x2<=1,x3<=1,x4<=1,x5<=1,x6<=1,x7<=1,x8<=1,x9<=1,x10<=1,T>=Ti},
assume=nonnegative,iterationlimit=5000,feasibilitytolerance=.001,optimalitytolerance=0.001);
evalf(eval([eq1, eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12], res2[2]));
fsolve({eq1, eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12}, convert(res2[2],set));
 

Error, (in Optimization:-LSSolve) objective function must be specified as a list of residuals
Error, invalid input: eval received res2[2], which is not valid for its 2nd argument, eqns
Error, (in fsolve) fsolve cannot solve on 2
can you please send me the code on my e-mail address-

yourniteshattal@rediffmail.com

yourniteshattal@gmail.com

thanks

nitesh

maple is not calculating the exponential correctly and i really dont know why.

can anybody help????

I have posted the same problem as a new topic also.

what is lhs and rhs?

can you tell please help me on this?

maple give me an error if i try to use LSSolve as you pasted here.

Error, (in Optimization:-LSSolve) no improved point could be found.

Thanks

Nitesh

 

 

Combustion reaction in general can be given by-
CaHbOcNd+(saf/er)*(O2+3.76N2) à n1 CO2+n2 H2O +n3 N2 +n4 O2+n5 CO+n6 H2+n7 H+n8 O+n9 OH+n10 NO
Atomic balance
C : a=(y1+y5 )N
H : b=(2y2+2y6 +y7 +y9)N
O : c+2saf/er=(2y1+y2 +2y4 +y5+y8+y9+y10)N
N : d +2*3.76*saf/er==(2y3+y10 )N
Where, N is the total number of moles.
By the definition  =1
Dissociation coefficients are given by-
K[i] =10^(CFC[i,1]*ln(T/1000)+CFC[i,2]/T+CFC[i,3]+CFC[i,4]*T+CFC[i,5]*T^2)
K1= y7 P0.5 / y70.5
K2= y8 P0.5 / y40.5
K3= y9  / (y40.5 y60.5 )
K4= y10  / (y40.5 y30.5 )
K5= y2  / (y6y40.5 P0.5)
K6= y1  / (y5y40.5 P0.5)
The enthalpy of the reactants at initial temperature(Ti) = The enthalpy of products at adiabatic flame temperature(T).
Thus there are 12 equations and 12 Unknowns(x1, x2,x3,x4,x5,x6,x7,x8,x9,x10,n,T)
 
 x1,x2,x3,x4,.... all are between 0 and 1
n is always grater than zero
T is always grater than Ti
 
 
 
Page 1 of 1