Git Product home page Git Product logo

knp-emi-dg's Introduction

KNP-EMI-DG

About

Code for solving the KNP--EMI problem using a DG fem method.

Dependencies code

All dependencies are listed in environment.yml. To create an environment with these dependencies use either conda or mamba and run

conda env create -f environment.yml

or

mamba env create -f environment.yml

Then call

conda activate KNP-EMI

Reproduce results paper

# run MMS test in space
python run_MMS_space.py

# run MMS test in space
python run_MMS_time.py

# run simulation on idealized 2D geometry
python run_2D.py

# run simulation on idealized 3D geometry
python run_3D.py

# run simulation on realistic 3D geometry of rat neuron
python run_rat_neuron.py

Files

  • solver.py: class for PDE solver.

  • membrane.py: class for membrane model (ODE stepping, functions for communication between PDE and ODE solver etc.).

  • mm\_\*.py: spesification of membrane model (including all membrane parameters)

  • run_*.py: scripts for running various simulations. Contains PDE parameters (mesh, physical and numerical parameters)

  • make*mesh*\*.py: scripts for generating idealized 2D and 3D meshes

  • make*mesh*\*.py: scripts for generating figures

Geometry

The code assumes ECS cells are tagged with 0 and ICS cells are tagged with 1,2,3, ... and that all interior facets are tagged with 0. The membrane potential is defined as phi_i - phi_e (i.e. phi_1 - phi_2). Since we have marked cell in ECS with 0 and cells in ICS with 1 we have an interface normal pointing inwards. In general, normals will always point from lower to higher (e.g. from 0 -> 1)

License

The software is free: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Community

Contact [email protected] for questions or to report issues with the software.

knp-emi-dg's People

Contributors

adajel avatar jorgensd avatar

Watchers

 avatar  avatar

knp-emi-dg's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.