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

@@ -18,6 +18,7 @@ Model
.. toctree::
:maxdepth: 3
Network <network.rst>
FeedForward <fnn.rst>
DeepONet <deeponet.rst>
MultiFeedForward <multifeedforward.rst>

View File

@@ -0,0 +1,10 @@
Network
================
.. currentmodule:: pina.model.network
.. automodule:: pina.model.network
.. autoclass:: Network
:members:
:private-members:
:show-inheritance:

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