First time here? Checkout the FAQ!
x
0 votes
by (140 points)
I have modified a stress model plugin (LandStress.model) and would like to import it into CARPentry. Following the tutorial "Basic usage of code generation tool limpet_fe.py", I have generated the corresponding "MyLandStress.c" and "MyLandStress.so" files. I then tried to import the new model using a line syntax of the form:

./run.py --load-module ./MyLandStress.so --EP TT2 --Stress MyLandStress    etc.

but I get an error "Illegal plugin specified". Is this not the correct way to import the model?

Cheers,

-Alex

2 Answers

0 votes
by (19.1k points)
Hi Alex,

Do you try to load a plugin to an ionic model in your setup (either the adapted MyLandStress or other IMPs that might be used in your setting)?
by (140 points)
Hi Axel,
Yes, my code generates the carp command with the arguments:

-imp_region[0].im TT2 \
-imp_region[0].plugins LandStress_Cai_lambda \

Should this not be enough to read the plugin?
The simulation I'm trying to run is a modified version of the "04 EM coupling" tutorial. I just want to substitute LandStress_Cai_lambda for LandStress . I've already modified the section on line 240:
group.add_argument('--Stress', default='TanhStress',
                        choices=['LandStress','TanhStress', 'LandStress_Cai_lambda'],
                        help='pick stress model')
but still there seems to be a problem at execution.
0 votes
by (8.0k points)
Hi!

Please try providing an absolute path to the shared-object you generated. E.g.:

./run.py --load-module /path/to/MyLandStress.so --EP TT2 --Stress MyLandStress

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