Skip to content

Commit

Permalink
bugfix initial concentration
Browse files Browse the repository at this point in the history
  • Loading branch information
sravanpannala committed Sep 29, 2023
1 parent c87a959 commit b690952
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions degradation_model/initialize_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -55,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -80,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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": [
Expand All @@ -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",
Expand Down

0 comments on commit b690952

Please sign in to comment.