Line integral expression with boundary conditions

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!


Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.