Skip to content

Spatial bounds on electrophysiology applied stimulus #572

Description

@michelebucelli

Problem

Currently, when a stimulus current is applied, it is applied to the whole domain that contains it. This implies that changing the position, size or shape of the stimulus requires regenerating the domain labels, which might be cumbersome if this needs to be done repeatedly.

Solution

Add sub-tags to the <Stimulus> XML tag to constrain it within a certain subregion of the domain. Some examples might be:

  • axis-aligned bounding box (only apply the stimulus if the point coordinates fall within user-defined minimum and maximum values);
  • spherical stimulus (only apply the stimulus if the point falls within a sphere of user-defined center and radius).

This way the stimulus placement, size and shape will be changed by editing the XML file only. Adding other shapes as needed should be rather straightforward.

Additional context

  • The choice of adding the spatial bounds within the domain is driven mostly by backwards compatibility. In principle, the stimulus could be entirely domain-independent, but I guess this might break some existing parameter files.
  • It would also be nice to have this new structure support multiple stimuli in the same domain.
  • I've asked Sami Bismar (@samibismar) to work on this as a first issue in svMultiPhysics. Sami is collaborating with our group over the summer.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions