From b6909520cb8c404be2aa094efdae77ad5401af7f Mon Sep 17 00:00:00 2001 From: Sravan Pannala <57152030+sravanpannala@users.noreply.github.com> Date: Fri, 29 Sep 2023 12:25:53 -0400 Subject: [PATCH] bugfix initial concentration --- degradation_model/initialize_model.ipynb | 31 +++++++++++++++++------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/degradation_model/initialize_model.ipynb b/degradation_model/initialize_model.ipynb index 449ec638fb..f4b0cfe1ec 100644 --- a/degradation_model/initialize_model.ipynb +++ b/degradation_model/initialize_model.ipynb @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -55,7 +55,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -80,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -98,17 +98,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ - "cs_n_init = parameter_values.evaluate(x_init* param.c_n_max)\n", - "cs_p_init = parameter_values.evaluate(y_init* param.c_p_max)" + "cs_n_init = parameter_values.evaluate(x_init* param.n.prim.c_max)\n", + "cs_p_init = parameter_values.evaluate(y_init* param.p.prim.c_max)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -128,9 +128,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "CasADi - 2023-09-29 12:19:49 WARNING(\"The options 't0', 'tf', 'grid' and 'output_t0' have been deprecated.\n", + "The same functionality is provided by providing additional input arguments to the 'integrator' function, in particular:\n", + " * Call integrator(..., t0, tf, options) for a single output time, or\n", + " * Call integrator(..., t0, grid, options) for multiple grid points.\n", + "The legacy 'output_t0' option can be emulated by including or excluding 't0' in 'grid'.\n", + "Backwards compatibility is provided in this release only.\") [.../casadi/core/integrator.cpp:515]\n" + ] + } + ], "source": [ "c_rate_d = \"C/3\"\n", "c_rate_c = \"C/3\"\n",