Files
PINA/pina/problem/parametric_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

33 lines
789 B
Python

"""Module for the ParametricProblem class"""
from abc import abstractmethod
from .abstract_problem import AbstractProblem
class ParametricProblem(AbstractProblem):
"""
The class for the definition of parametric problems, i.e., problems
with parameters among the input variables.
Here's an example of a spatial parametric ODE problem, i.e., a spatial
ODE problem with an additional parameter `alpha` as coefficient of the
derivative term.
:Example:
TODO
"""
@abstractmethod
def parameter_domain(self):
"""
The parameters' domain of the problem.
"""
@property
def parameters(self):
"""
The parameters' variables of the problem.
"""
return self.parameter_domain.variables