Skip to content

Commit

Permalink
#3200 fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Aug 8, 2023
1 parent ca4b2ce commit cde00f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"outputs": [],
"source": [
"comsol_model = pybamm.BaseModel()\n",
"comsol_model.geometry = pybamm.battery_geometry(options={\"dimensionality\": 1})\n",
"comsol_model._geometry = pybamm.battery_geometry(options={\"dimensionality\": 1})\n",
"comsol_model.variables = {\n",
" \"Voltage [V]\": comsol_voltage,\n",
" \"Negative current collector potential [V]\": comsol_phi_s_cn,\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/compare_comsol/compare_comsol_DFN.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_interp_fun(variable_name, domain):

# Create comsol model with dictionary of Matrix variables
comsol_model = pybamm.lithium_ion.BaseModel()
comsol_model.geometry = pybamm_model.default_geometry
comsol_model._geometry = pybamm_model.default_geometry
comsol_model.variables = {
"Negative particle surface concentration [mol.m-3]": comsol_c_n_surf,
"Electrolyte concentration [mol.m-3]": comsol_c_e,
Expand Down

0 comments on commit cde00f4

Please sign in to comment.