Exemple #1
0
def test_fug_phase_comp(m):
    for p in m.params.phase_list:
        for j in m.params.component_list:
            assert str(Cubic.fug_phase_comp(
                            m.props[1], p, j)) == str(
                m.props[1].mole_frac_phase_comp[p, j] *
                m.props[1].pressure *
                m.props[1].fug_coeff_phase_comp[p, j])
Exemple #2
0
def test_fug_phase_comp_invalid_phase(m_sol):
    with pytest.raises(PropertyNotSupportedError):
        Cubic.fug_phase_comp(m_sol.props[1], "Sol", "foo")