TimeDependentProblem#
Module for the TimeDependentProblem class.
- class TimeDependentProblem[source]#
Bases:
BaseProblemBase class for all time-dependent problems, extending the standard problem definition with time-dependent inputs.
A time-dependent problem is defined over a temporal domain, where input variables represent the time at which the solution is evaluated.
This class is not meant to be instantiated directly.
- Example:
>>> from pina.problem import TimeDependentProblem >>> from pina.domain import CartesianDomain >>> class MyTimeProblem(TimeDependentProblem): ... @property ... def temporal_domain(self): ... return CartesianDomain({"t": [0.0, 1.0]}) ... @property ... def conditions(self): return {} >>> problem = MyTimeProblem() >>> problem.temporal_variables ['t']
Initialization of the
BaseProblemclass.- abstract property temporal_domain#
The domain of temporal variables of the problem.