Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,456 changes: 1,456 additions & 0 deletions examples/hidden_physics/Burgers_Equation_HPM.ipynb

Large diffs are not rendered by default.

757 changes: 757 additions & 0 deletions examples/hidden_physics/Duffing_Hidden_Physics.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install_requires =
torch>=2.0.0
pytorch-lightning>=2.0.0
numpy>=1.20.2, <2.0
matplotlib>=3.0.0
matplotlib>=3.0.0, <3.10
scipy>=1.6.3
importlib-metadata
jupyter
Expand Down Expand Up @@ -95,8 +95,8 @@ testing =
# CAUTION: --cov flags may prohibit setting breakpoints while debugging.
# Comment those flags to avoid this py.test issue.
addopts =
--cov torchphysics --cov-report term-missing
--verbose
# --cov torchphysics --cov-report term-missing
# --verbose
norecursedirs =
dist
build
Expand Down
38 changes: 15 additions & 23 deletions src/torchphysics/problem/conditions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,19 @@
.. _here: https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html
"""

from .condition import (
Condition,
PINNCondition,
DataCondition,
DeepRitzCondition,
ParameterCondition,
MeanCondition,
AdaptiveWeightsCondition,
SingleModuleCondition,
PeriodicCondition,
IntegroPINNCondition,
HPM_EquationLoss_at_DataPoints,
HPM_EquationLoss_at_Sampler,
HPCMCondition,
)
from .condition import (Condition,
PINNCondition,
DataCondition,
DeepRitzCondition,
ParameterCondition,
MeanCondition,
AdaptiveWeightsCondition,
SingleModuleCondition,
PeriodicCondition,
IntegroPINNCondition,
HPM_EquationLoss_at_DataPoints,
HPM_EquationLoss_at_Sampler)

from .deeponet_condition import (
DeepONetSingleModuleCondition,
PIDeepONetCondition,
DeepONetDataCondition,
)


from .variational_condition import VariationalPINNCondition
from .deeponet_condition import (DeepONetSingleModuleCondition,
PIDeepONetCondition,
DeepONetDataCondition)
Loading
Loading