Skip to content

Commit

Permalink
update doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdark committed Oct 23, 2023
1 parent 68212f3 commit 4fdcf70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def initialise(self):
self.defing_export_writers()

def defing_export_writers(self):
"""Defines the export writers of the model"""
"""Defines the export writers of the model, if field is given as
a string, find species object in self.species"""
for export in self.exports:
# if name of species is given then replace with species object
for idx, field in enumerate(export.field):
Expand All @@ -137,6 +138,8 @@ def defing_export_writers(self):
export.writer.write_mesh(self.mesh.mesh)

def define_function_space(self):
"""Creates the function space of the model, creates a mixed element if
model is multispecies"""
element_CG = basix.ufl.element(
basix.ElementFamily.P,
self.mesh.mesh.basix_cell(),
Expand All @@ -159,8 +162,8 @@ def define_function_space(self):
self.u_n = Function(self.function_space)

def assign_functions_to_species(self):
"""Creates for each species the solution, prev solution and test
function"""
"""Creates the solution, prev solution, test function and
post-processing solution for each species"""

if len(self.species) > 1:
sub_solutions = list(ufl.split(self.u))
Expand Down

0 comments on commit 4fdcf70

Please sign in to comment.