0

我正在做一个海上风能项目,我正在设计涡轮机。这包括定义涡轮机的一些特征。

我需要求解具有3 个变量的3 个非线性方程组

3个方程求解

3个方程求解

3 个变量(未知数)是:

  • a
  • ai
  • Bi

给出了其他值。

尝试解决

我已经尝试过使用fsolve,sym.nonlinsolve和更多,但我无法弄清楚。

在我最后一次尝试中,我将前 2 个方程中的 Bi 替换为第 3 个方程。我通过用实际数字替换我已经知道的值来添加我的最小可重现示例:

def prueba(q):
    x = q[0]
    y = q[1]
    

    f1 = ((2.118182068620592)*(math.degrees(math.cos(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))*((1)+((0.016313)*(math.degrees(math.tan(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))))-((x)/(1-x))
    f2 = ((2.118182068620592)/((8)*(math.pi)*(16.609991369048576)*(math.degrees(math.cos(math.degrees(math.atan((1-x)/((10.0)*(1+y))))))))*((1)-((0.016313)*(math.degrees(mpmath.cot(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))))-((y)/(1+y))
    
    
    return np.array([f1,f2])

guessArray = [0.3329,0.00373] 

answer = fsolve(prueba,guessArray)
x = answer[0]
y = answer[1]
print(x,y)

如果有人知道如何解决这个问题,我将不胜感激。

4

0 回答 0