This commit is contained in:
Anna Ivagnes
2023-04-19 11:07:14 +02:00
committed by Nicola Demo
parent 9c95c3e3e8
commit 2382ef55cd
3 changed files with 18 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ class ParametricProblem(AbstractProblem):
>>>
>>> output_variables = ['u']
>>> spatial_domain = Span({'x': [0, 1]})
>>> parameter_domain = Span({'alpha': {1, 10}})
>>> parameter_domain = Span({'alpha': [1, 10]})
>>>
>>> def ode_equation(input_, output_):
>>> u_x = grad(output_, input_, components=['u'], d=['x'])
@@ -43,8 +43,14 @@ class ParametricProblem(AbstractProblem):
@abstractmethod
def parameter_domain(self):
"""
The parameters' domain of the problem.
"""
pass
@property
def parameters(self):
"""
The parameters' variables of the problem.
"""
return self.parameter_domain.variables