Beispiel #1
0
def test_case_tcross2_n(log_results=False):
    """

    :param log_results:
    :type log_results:
    :return:
    :rtype:
    """
    net = nw.gas_tcross2(method="n")
    p_diff, v_diff_abs = pipeflow_stanet_comparison(net, log_results)
    assert np.all(p_diff < 0.002)
    assert np.all(v_diff_abs < 0.03)
Beispiel #2
0
def test_case_tcross2_pc(log_results=False):
    """

    :param log_results:
    :type log_results:
    :return:
    :rtype:
    """
    net = nw.gas_tcross2(method="pc")
    p_diff, v_diff_abs = pipeflow_stanet_comparison(net, log_results, friction_model="colebrook")
    assert np.all(p_diff < 0.002)
    assert np.all(v_diff_abs < 0.03)