├── README.md ├── examples ├── advection_diffusion │ ├── Makefile │ ├── compute_error.py │ ├── constants.py │ ├── functional.py │ ├── generate_data.py │ ├── main.py │ ├── model.py │ ├── plot_snapshots.py │ ├── plot_time.py │ └── plot_velocity.py ├── cardiac_cell_model │ ├── Makefile │ ├── compute_error.py │ ├── constants.py │ ├── data.py │ ├── data_model.py │ ├── functional.py │ ├── generate_data.py │ ├── hodgkin_huxley_1952.py │ ├── main.py │ ├── model.py │ ├── network.py │ ├── plot.py │ ├── plot_2d.py │ └── stimulus.py ├── pinn_disc │ ├── Makefile │ ├── fem.py │ ├── functional.py │ ├── generate_data.py │ ├── main.py │ ├── model.py │ ├── pinn.py │ ├── plot_all.py │ ├── plot_all_states.py │ ├── plot_loss.py │ ├── run_hybrid.sh │ ├── run_pinn.sh │ └── torch_model.py ├── pinn_linear │ ├── Makefile │ ├── fem.py │ ├── functional.py │ ├── generate_data.py │ ├── main.py │ ├── model.py │ ├── pinn.py │ ├── plot_all.py │ ├── plot_errors.py │ ├── run_hybrid.sh │ ├── run_pinn.sh │ └── torch_model.py ├── poisson_calderon │ ├── Makefile │ ├── functional.py │ ├── generate_data.py │ ├── main.py │ ├── model.py │ └── plot.py ├── poisson_error │ ├── Makefile │ ├── functional.py │ ├── main.py │ ├── model.py │ ├── plot_paper.py │ └── run.sh ├── poisson_noise │ ├── Makefile │ ├── functional.py │ ├── main.py │ ├── model.py │ ├── plot_loss.py │ ├── plot_paper.py │ └── run.sh └── poisson_partial_box │ ├── Makefile │ ├── functional.py │ ├── main.py │ ├── model.py │ └── plot.py ├── setup.rc └── shared_code ├── __init__.py ├── data.py ├── experiment.py ├── plotting.py ├── scipy_optim.py ├── torch_utils.py ├── training.py └── utils.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/README.md -------------------------------------------------------------------------------- /examples/advection_diffusion/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/Makefile -------------------------------------------------------------------------------- /examples/advection_diffusion/compute_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/compute_error.py -------------------------------------------------------------------------------- /examples/advection_diffusion/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/constants.py -------------------------------------------------------------------------------- /examples/advection_diffusion/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/functional.py -------------------------------------------------------------------------------- /examples/advection_diffusion/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/generate_data.py -------------------------------------------------------------------------------- /examples/advection_diffusion/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/main.py -------------------------------------------------------------------------------- /examples/advection_diffusion/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/model.py -------------------------------------------------------------------------------- /examples/advection_diffusion/plot_snapshots.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/plot_snapshots.py -------------------------------------------------------------------------------- /examples/advection_diffusion/plot_time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/plot_time.py -------------------------------------------------------------------------------- /examples/advection_diffusion/plot_velocity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/advection_diffusion/plot_velocity.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/Makefile -------------------------------------------------------------------------------- /examples/cardiac_cell_model/compute_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/compute_error.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/constants.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/data.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/data_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/data_model.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/functional.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/generate_data.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/hodgkin_huxley_1952.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/hodgkin_huxley_1952.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/main.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/model.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/network.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/plot.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/plot_2d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/plot_2d.py -------------------------------------------------------------------------------- /examples/cardiac_cell_model/stimulus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/cardiac_cell_model/stimulus.py -------------------------------------------------------------------------------- /examples/pinn_disc/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/Makefile -------------------------------------------------------------------------------- /examples/pinn_disc/fem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/fem.py -------------------------------------------------------------------------------- /examples/pinn_disc/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/functional.py -------------------------------------------------------------------------------- /examples/pinn_disc/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/generate_data.py -------------------------------------------------------------------------------- /examples/pinn_disc/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/main.py -------------------------------------------------------------------------------- /examples/pinn_disc/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/model.py -------------------------------------------------------------------------------- /examples/pinn_disc/pinn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/pinn.py -------------------------------------------------------------------------------- /examples/pinn_disc/plot_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/plot_all.py -------------------------------------------------------------------------------- /examples/pinn_disc/plot_all_states.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/plot_all_states.py -------------------------------------------------------------------------------- /examples/pinn_disc/plot_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/plot_loss.py -------------------------------------------------------------------------------- /examples/pinn_disc/run_hybrid.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/run_hybrid.sh -------------------------------------------------------------------------------- /examples/pinn_disc/run_pinn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/run_pinn.sh -------------------------------------------------------------------------------- /examples/pinn_disc/torch_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_disc/torch_model.py -------------------------------------------------------------------------------- /examples/pinn_linear/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/Makefile -------------------------------------------------------------------------------- /examples/pinn_linear/fem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/fem.py -------------------------------------------------------------------------------- /examples/pinn_linear/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/functional.py -------------------------------------------------------------------------------- /examples/pinn_linear/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/generate_data.py -------------------------------------------------------------------------------- /examples/pinn_linear/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/main.py -------------------------------------------------------------------------------- /examples/pinn_linear/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/model.py -------------------------------------------------------------------------------- /examples/pinn_linear/pinn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/pinn.py -------------------------------------------------------------------------------- /examples/pinn_linear/plot_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/plot_all.py -------------------------------------------------------------------------------- /examples/pinn_linear/plot_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/plot_errors.py -------------------------------------------------------------------------------- /examples/pinn_linear/run_hybrid.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/run_hybrid.sh -------------------------------------------------------------------------------- /examples/pinn_linear/run_pinn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/run_pinn.sh -------------------------------------------------------------------------------- /examples/pinn_linear/torch_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/pinn_linear/torch_model.py -------------------------------------------------------------------------------- /examples/poisson_calderon/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/Makefile -------------------------------------------------------------------------------- /examples/poisson_calderon/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/functional.py -------------------------------------------------------------------------------- /examples/poisson_calderon/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/generate_data.py -------------------------------------------------------------------------------- /examples/poisson_calderon/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/main.py -------------------------------------------------------------------------------- /examples/poisson_calderon/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/model.py -------------------------------------------------------------------------------- /examples/poisson_calderon/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_calderon/plot.py -------------------------------------------------------------------------------- /examples/poisson_error/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/Makefile -------------------------------------------------------------------------------- /examples/poisson_error/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/functional.py -------------------------------------------------------------------------------- /examples/poisson_error/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/main.py -------------------------------------------------------------------------------- /examples/poisson_error/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/model.py -------------------------------------------------------------------------------- /examples/poisson_error/plot_paper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/plot_paper.py -------------------------------------------------------------------------------- /examples/poisson_error/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_error/run.sh -------------------------------------------------------------------------------- /examples/poisson_noise/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/Makefile -------------------------------------------------------------------------------- /examples/poisson_noise/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/functional.py -------------------------------------------------------------------------------- /examples/poisson_noise/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/main.py -------------------------------------------------------------------------------- /examples/poisson_noise/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/model.py -------------------------------------------------------------------------------- /examples/poisson_noise/plot_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/plot_loss.py -------------------------------------------------------------------------------- /examples/poisson_noise/plot_paper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/plot_paper.py -------------------------------------------------------------------------------- /examples/poisson_noise/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_noise/run.sh -------------------------------------------------------------------------------- /examples/poisson_partial_box/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_partial_box/Makefile -------------------------------------------------------------------------------- /examples/poisson_partial_box/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_partial_box/functional.py -------------------------------------------------------------------------------- /examples/poisson_partial_box/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_partial_box/main.py -------------------------------------------------------------------------------- /examples/poisson_partial_box/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_partial_box/model.py -------------------------------------------------------------------------------- /examples/poisson_partial_box/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/examples/poisson_partial_box/plot.py -------------------------------------------------------------------------------- /setup.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/setup.rc -------------------------------------------------------------------------------- /shared_code/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /shared_code/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/data.py -------------------------------------------------------------------------------- /shared_code/experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/experiment.py -------------------------------------------------------------------------------- /shared_code/plotting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/plotting.py -------------------------------------------------------------------------------- /shared_code/scipy_optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/scipy_optim.py -------------------------------------------------------------------------------- /shared_code/torch_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/torch_utils.py -------------------------------------------------------------------------------- /shared_code/training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/training.py -------------------------------------------------------------------------------- /shared_code/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebastkm/hybrid-fem-nn-examples/HEAD/shared_code/utils.py --------------------------------------------------------------------------------