Skip to content
Snippets Groups Projects
Select Git revision
  • 8494607e49c68400eba161cf3524cab0b9116a67
  • master default protected
  • tut_ring_allen
  • docs_furo
  • docs_reorder_cable_cell
  • docs_graphviz
  • docs_rtd_dev
  • ebrains_mirror
  • doc_recat
  • docs_spike_source
  • docs_sim_sample_clar
  • docs_pip_warn
  • github_template_updates
  • docs_fix_link
  • cv_default_and_doc_clarification
  • docs_add_numpy_req
  • readme_zenodo_05
  • install_python_fix
  • install_require_numpy
  • typofix_propetries
  • docs_recipe_lookup
  • v0.10.0
  • v0.10.1
  • v0.10.0-rc5
  • v0.10.0-rc4
  • v0.10.0-rc3
  • v0.10.0-rc2
  • v0.10.0-rc
  • v0.9.0
  • v0.9.0-rc
  • v0.8.1
  • v0.8
  • v0.8-rc
  • v0.7
  • v0.6
  • v0.5.2
  • v0.5.1
  • v0.5
  • v0.4
  • v0.3
  • v0.2.2
41 results

diffusion

user avatar
Thorsten Hater authored and GitHub committed
- Remove the old, multi-target `event_generator` class in favour of `schedule_generator(tgt, weight, explicit_schedule)`
- Much simplification ensues, `event_generator` is no longer a type-erasing container, but just what 
   `schedule_generator` was before
- Make the label resolution in generators a bit more eager, no longer at simulation time, 
   but now during setup (bit give a wee bit of perf as well)

Closes #1488 
55aac4a9
History
Name Last commit Last update
..
CMakeLists.txt
README.md
diffusion.cpp

Diffusion example.

Example of simulating a simple linear neuron with a diffusing sodium concentration. An event injecting more Na into the centre is fired at t=0. The measured concentrations will be written to disk further analysis.

Option Meaning Default
-t --tfinal Length of the simulation period 1 ms
-d --dt Simulation time step 0.01 ms
-s --ds Sampling interval 0.1 ms
-g --gpu Use GPU id, enabled if >=0 -1
-l --length Length of stick 30 um
-x --dx Discretisation 1 um
-i --Xi Initial Na concentration 0 mM
-b --beta Na diffusivity 0.005 m^2/s
-o --output Save samples log.csv