MaterialsBalance.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Chemistry-ChemEng 作者: AndyWilliams682 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号