def dof_unknowns(control_volume_dimensions):
unknown_list = []
for path in control_volume_dimensions:
for equation_key, equation_value in path.items():
for variable in sp.sympify(equation_value).atoms(sp.Symbol):
if variable not in unknown_list:
unknown_list.append(variable)
unknowns = len(unknown_list)
return unknowns
# This function uses the dof_unknowns, along with the setup matrix from the first function
# to determine how many degrees of freedom exist in a given control volume
MaterialsBalance.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录