Skip to content

Commit

Permalink
removed un-needed lines
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Nov 1, 2023
1 parent 45883a7 commit 3ce66cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def assign_functions_to_species(self):
sub_prev_solution = [self.u_n]
sub_test_functions = [ufl.TestFunction(self.function_space)]
self.species[0].sub_function_space = self.function_space
self.species[0].post_processing_solution = fem.Function(self.function_space)
self.species[0].post_processing_solution = self.u
else:
sub_solutions = list(ufl.split(self.u))
sub_prev_solution = list(ufl.split(self.u_n))
Expand Down Expand Up @@ -498,16 +498,11 @@ def iterate(
self.mesh.mesh, self.temperature_fenics, self.species[0]
)
cm = self.u
self.species[0].post_processing_solution = self.u

surface_flux = form(D_D * dot(grad(cm), self.mesh.n) * self.ds(2))
flux = assemble_scalar(surface_flux)
self.flux_values.append(flux)
self.times.append(float(self.t))
else:
for idx, spe in enumerate(self.species):
spe.post_processing_solution = self.u.sub(idx)

cm_1, cm_2 = self.u.split()
D_1 = self.subdomains[0].material.get_diffusion_coefficient(
self.mesh.mesh, self.temperature_fenics, self.species[0]
Expand Down

0 comments on commit 3ce66cd

Please sign in to comment.