예제 #1
0
    def test_public_functions(self):
        param = pybamm.standard_parameters_lithium_ion
        i_boundary_cc = pybamm.PrimaryBroadcast(pybamm.Scalar(1),
                                                ["current collector"])

        coupled_variables.update(
            {"Current collector current density": i_boundary_cc})

        submodel = pybamm.thermal.x_lumped.CurrentCollector0D(param)
        std_tests = tests.StandardSubModelTests(submodel, coupled_variables)
        std_tests.test_all()
    def test_public_functions(self):
        param = pybamm.standard_parameters_lithium_ion
        phi_s_cn = pybamm.PrimaryBroadcast(pybamm.Scalar(0), ["current collector"])
        phi_s_cp = pybamm.PrimaryBroadcast(pybamm.Scalar(3), ["current collector"])

        coupled_variables.update(
            {
                "Negative current collector potential": phi_s_cn,
                "Positive current collector potential": phi_s_cp,
            }
        )

        submodel = pybamm.thermal.x_lumped.SetTemperature1D(param)
        std_tests = tests.StandardSubModelTests(submodel, coupled_variables)
        std_tests.test_all()