Skip to content

Commit

Permalink
#238: Introduce bare-bones Solver class
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo committed Nov 23, 2024
1 parent 5303c0d commit 8fc9e33
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions goalie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from goalie.mesh_seq import * # noqa
from goalie.options import * # noqa
from goalie.point_seq import * # noqa
from goalie.solver import * # noqa
from goalie.function_data import * # noqa
from goalie.error_estimation import * # noqa

Expand Down
18 changes: 18 additions & 0 deletions goalie/solver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from abc import ABC, abstractmethod


class Solver(ABC):
@abstractmethod
def get_function_spaces(self, mesh):
pass

@abstractmethod
def get_initial_condition(self, mesh_seq):
pass

@abstractmethod
def get_solver(self, mesh_seq, index):
pass

def get_qoi(self, mesh_seq):
return None

0 comments on commit 8fc9e33

Please sign in to comment.