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.

calling variables by using tags

Please login with a confirmed email address before reporting spam

Hi everyone,
I'm trying to reproduce the COMSOL tutorial "Two phase flow in column" by using Richards' law physic interface instead of Darcy's law. I'm having problems in calling the variable kr (relative permeability). This variable is calculated by the physic interface. When I write dl.kr, the program gives me this error:

Undefined variable.
- Variable: kr
- Geometry: geom1
- Domain: 2
Failed to evaluate Jacobian of expression.
- Expression: dvol*(comp1.dl.v*comp1.dl.rho)
Failed to evaluate Jacobian of expression.
- Expression: (comp1.dl.rho*(comp1.dl.u*test(comp1.p_wx)+comp1.dl.v*test(comp1.p_wy)))*(dvol)

I've tried to write this variable in different ways, such as:
root.comp1.dl.kr
comp1.dl.kr

From the Subsurface flow module user guide it seems that these are correct. Anyway, it doesn't work.
Any idea of the problem?

Thank you
Giulia

0 Replies Last Post 25 mars 2016, 06:09 UTC−4
COMSOL Moderator

Hello Giulia M.

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.

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.