First time here? Checkout the FAQ!
x
0 votes
by (170 points)

Hi, 

Is it only possible to use lats[].all = 0 (only first activation of each vertex) and lats[].all = 1 (all point that are activated during simulation)? 

In my simulation I give a S1 and S2 stimulus on a 1D cable and I want to compute the APD for only the second AP. I tried to follow the steps in the CV restitution tutorial, in order to compute restitution curves for APD:
 cd ${TUTORIALS}/02_EP_tissue/03D_conduction_velocity_restitution

However, it was not clear for me how to rewrite this in a way to compute RC for the APD. Now I have wrote a code for computing this, but the only step where I am struggling is extracting the activation and repolarization times for only the second AP (after S2). 

With the following part, I get the activation times for all the nodes for the first event (first AP):

  '-lats[0].ID',             'ACTs'
  '-lats[0].all',             0

When using the the following, I get a file output that gives me all the activation times - however not all nodes are activated and thus are not included in this file:

  '-lats[0].ID',             'ACTs'
  '-lats[0].all',             1

So my question is if there is a way in which I can compute the activation times for only the last event (from the moment I give an S2). I hope my question is clear and that you can help. 

Thank you! 

1 Answer

0 votes
by (8.0k points)
Hi!

Sorry, you can only output the first or all activations.

Outputting all activations is the general option which allows to extract any activation in a postprocessing step with a simple python / MATLAB script.

Best, Aurel
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...