Skip to content

Conversation

@jshipton
Copy link
Contributor

No description provided.

@tommbendall tommbendall added enhancement Involves adding a new capability tidying Involves tidying up code labels Jan 14, 2026
no_normal_flow_bc_ids (list, optional): a list of IDs of domain
boundaries at which no normal flow will be enforced. Defaults to
None.
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the kwargs are a good solution. We should probably also add something to docstring here about what happens to the kwargs and give some examples of the kwargs that can be passed

if family is None:
extruded_mesh = hasattr(mesh, "_base_mesh")
if extruded_mesh:
cell = mesh._base_mesh.ufl_cell().cellname()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this will be cellname for future

elif cell == "triangle":
family = "BDM"
else:
raise ValueError(f"The mesh provided (or its base mesh if 3D) must have cells of type interval, quadrilateral or triangle, not {cell}.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Petty point but could this be over 2 lines?

)


class Model(SIQNModel):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had wondered if this should be DefaultModel? Maybe that's not the best name, but Model feels more like the name of a base class? (I was actually a bit confused by the role this played but you haven't had chance to do the docstrings yet!)

_diffusion_schemes = []
for field, _ in self.diffusion_options:
_diffusion_schemes.append(
BackwardEuler(self.domain, field)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will also need the recovery options specifying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Involves adding a new capability tidying Involves tidying up code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants