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.

Define a new variable based on simulation result and use in the model as model parameter

Ghodsiehsadat Jahanmir

Please login with a confirmed email address before reporting spam

Dear All,

I have a spherical domain with transport of dilute species physics. I need to define diffusion coefficient based on the total normal flux at sphere surface. I define D as follow in variables and I have D data as interpolation.

D0=D(C_0-S*t/V*tds.ntflux_c)

c is concentration and t is time variable.
tds.ntflux_c is total normal flux based on predefined variables in the equation view tab.
S and V and C_0 are constant.

But I got the following error.

Undefined variable: comp1.tds.ntflux_c
any help appreciated.

Thanks.

0 Replies Last Post 12 févr. 2016, 04:51 UTC−5
COMSOL Moderator

Hello Ghodsiehsadat Jahanmir

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.