Skip to content

Commit fa3b020

Browse files
committed
export grids
1 parent 2435ab5 commit fa3b020

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/grid/grid_utils.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ function convert_geometry(grids, couplings; include_current_collectors = true)
165165
end
166166
end
167167

168+
ugrids["Global"] = UnstructuredMesh(grids["Global"])
169+
168170
return ugrids, ucouplings
169171

170172
end
@@ -398,9 +400,9 @@ function pouch_grid(geomparams::InputGeometryParams)
398400
setdiff!(ne_extra_cells, ne_tab_cells)
399401
end
400402

401-
G, = remove_cells(H_back, vcat(pe_extra_cells, ne_extra_cells))
403+
globalgrid, = remove_cells(H_back, vcat(pe_extra_cells, ne_extra_cells))
402404

403-
grids, couplings = setup_pouch_cell_geometry(G, zvals)
405+
grids, couplings = setup_pouch_cell_geometry(globalgrid, zvals)
404406
grids, couplings = convert_geometry(grids, couplings)
405407

406408
# Negative current collector external coupling

src/setup/model_setup.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ function setup_submodels(inputparams::InputParams;
438438
setup_volume_fractions!(model, grids, couplings["Electrolyte"])
439439

440440
output = (model = model,
441-
couplings = couplings)
441+
couplings = couplings,
442+
grids = grids)
442443

443444
return output
444445

0 commit comments

Comments
 (0)