teflow.ztdev module

teflow.ztdev.cal_Phi(u, S, T)

Calculate thermoelectric potential Phi.

参数:
  • u (float | ndarray) – The relative current density, in 1/V.

  • S (float | ndarray) – Seebeck coefficient, in uV/K.

  • T (float | ndarray) – Temperature, in K.

返回:

Thermoelectric potential (Phi) in V.

返回类型:

float | ndarray

teflow.ztdev.cal_Yita(u, datas, allTemp=False)

Calculate Yita under given TE datas and initial u.

参数:
  • u (float) – The relative current density, in 1/V.

  • datas (list | ndarray) – TE datas like [T, C, S, K], which are in K, S/cm, uV/K, and W/(m.K), respectively. The temperature values must increase monotonically.

  • allTemp (bool, optional) – Whether to return conversion efficiencies of other temperature points in addition to the highest temperature point. Default value is False.

返回:

Efficiency (Yita) in %.

返回类型:

float | ndarray

teflow.ztdev.cal_ZTdev(Yita, Tc, Th)

Calculate ZTdev under a given Yita and corresponding temperatures at cold and hot sides.

参数:
  • Yita (float | ndarray) – Efficiency (Yita), in %.

  • Tc (float | ndarray) – Temperature at cold side, in K.

  • Th (float | ndarray) – Temperature at hot side, in K.

返回:

Device ZT.

返回类型:

float | ndarray

teflow.ztdev.optim_Yita(datas, allTemp=True)

Invoke optim_u() to optimize the value of u and calculate the corresponding conversion efficiency based on the given data.

参数:
  • datas (list | ndarray) – TE datas like [T, C, S, K], which are in K, S/cm, uV/K, and W/(m.K), respectively. The temperature values must increase monotonically.

  • allTemp (bool, optional) – Whether to return conversion efficiencies of other temperature points in addition to the highest temperature point. Default value is False.

返回:

Maximum efficiency (Yita) in %.

返回类型:

float | ndarray

teflow.ztdev.optim_u(datas, details=False, returnYita=False)

Optimize u to maximize the last Yita.

参数:
  • datas (list | ndarray) – TE datas like [T, C, S, K], which are in K, S/cm, uV/K, and W/(m.K), respectively. The temperature values must increase monotonically.

  • details (bool, optional) – Return the actual OptimizeResult object that contains detailed optimization results (details=True), or only the solution of the optimization and/or values of objective function (details=False, default).

  • returnYita (bool, optional) – Whether to return the corresponding single-point Yita at optimal u, by default False. Note: This will only work if details=False.

返回:

Result depends on input parameters.

返回类型:

float | tuple | OptimizeResult

teflow.ztdev.valuate(datas_TCSK, allTemp=True)

Calculate ZTdev of given TE datas.

参数:
  • datas_TCSK (list | ndarray) – TE datas like [T, C, S, K], which are in K, S/cm, uV/K, and W/(m.K), respectively. The temperature values must increase monotonically.

  • allTemp (bool, optional) – Whether to return conversion efficiencies of other temperature points in addition to the highest temperature point. Default value is False.

返回:

A dict with below keys:

Tc: (float | ndarray) Temperature at cold side, in K.

Th: (float | ndarray) Temperature at hot side, in K.

ZTdev: (float | ndarray) Device ZT.

Yita: (float | ndarray) Optimal Yita in %.

返回类型:

AttrDict