First time here? Checkout the FAQ!
x
0 votes
by (160 points)
Hi, I am running the script of the 21_reentry_induction example. I'd want to verify if the reentry is still maintained after more than 1.5 seconds, but I have tried to see if it is possible to increase the duration of the simulation (that is 500 ms now) and I cannot find any solutions to do that. Is this possible?

1 Answer

0 votes
by (220 points)

Hi there,

In the protocols, the reentry duration is hardcoded to induce reentry. In the tutorial example, depending on the protocol you are using, you will invoke the function model.induceReentry.RP_B/RP_E/PEERP on lines 573, 580, and 587. These functions can be found in the carputils repository at this link: https://git.opencarp.org/openCARP/carputils/-/blob/master/carputils/model/induceReentry.py?ref_type=heads. To locate where in the code the reentry duration is defined, you can search for the parameter '--tend.' Typically, the input for this parameter follows the format startS2+some value. You'll need to modify these lines accordingly. The next steps depend on how you have installed your caputils.

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 } } });
...