Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Line integral expression with boundary conditions
Posted 1 feb 2025, 18:55 CET 0 Replies
Please login with a confirmed email address before reporting spam
Hi everyone!
I'm trying to write a python script to automatize a series of simulation. Actually, the script seems to be working well except for 1 error at the following line :
s_L_value = model.evaluate('s_L', 'mol/m2', 'Bead', 'last')
where the error is:
Undefined post expression
Undefined variable
- Variable: Bead.s_L
- Geometry: geom2
- Domain: 2
Failed to evaluate expression
- Expression: Bead.s_L
- Feature: Evaluation 1
I think the problem is associated to the domain: while my expression (s_L) is resolved only on boundaries 10, 11 and 12, the script goes looking for the solution on domain 2. On top of that, since the solution extends all over the bonduaries, I ideally need to integrate over those surfaces. So, in the end, to make my script work I would need a line integral expression that includes also boundary conditions (to replace s_L in the current script) but I can't find it anywhere. Does anyone have some experience in this regard?
Many thanks!
Hello Alessandro Fracassa
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.