Files
PINA/pina/problem/spatial_problem.py
Filippo Olivo 4177bfbb50 Fix Codacy Warnings (#477)
---------

Co-authored-by: Dario Coscia <dariocos99@gmail.com>
2025-03-19 17:48:18 +01:00

31 lines
663 B
Python

"""Module for the SpatialProblem class"""
from abc import abstractmethod
from .abstract_problem import AbstractProblem
class SpatialProblem(AbstractProblem):
"""
The class for the definition of spatial problems, i.e., for problems
with spatial input variables.
Here's an example of a spatial 1-dimensional ODE problem.
:Example:
TODO
"""
@abstractmethod
def spatial_domain(self):
"""
The spatial domain of the problem.
"""
@property
def spatial_variables(self):
"""
The spatial input variables of the problem.
"""
return self.spatial_domain.variables