Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

problem of user defined function

Please login with a confirmed email address before reporting spam

I am using poroelasticity module. I defined a analytic function named G. It is a function of poro.eZ (strain component in z direction), G=f(poro.eZ), and I can plot out the figure of the G(poro.eZ) correctly. But when I try to compute the model, there is an error, the screen shot of which is attached.

What is the meaning of "Function: dmod1.G_dporo.eZ"?

Anyone can tell me what is the problem of that? Any suggestions to solve this error? thanks a lot!


4 Replies Last Post 6 mars 2013, 09:24 UTC−5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 mars 2013, 00:53 UTC−5
Hi

strange, you must have a typo somewhere, or an internal pointer error in the file.

But I would, just to be sure, use another name as "G" might be used by COMSOL, internally

--
Good luck
Ivar
Hi strange, you must have a typo somewhere, or an internal pointer error in the file. But I would, just to be sure, use another name as "G" might be used by COMSOL, internally -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 mars 2013, 08:48 UTC−5

Hi

strange, you must have a typo somewhere, or an internal pointer error in the file.

But I would, just to be sure, use another name as "G" might be used by COMSOL, internally

--
Good luck
Ivar


Thanks Ivar,

I have actually tried change the name of the function into other name, like "S", but there is still the same problem. If there is a typo, I think I can not plot out the figure of G vs. poro.eZ, but actually it can be correctly plot out.

Do you know what is the meaning of the character "d" in the error function of "dmod1.G_dporo.eZ"? Does it mean derivative?

Sometimes, another error showed (attachment).
[QUOTE] Hi strange, you must have a typo somewhere, or an internal pointer error in the file. But I would, just to be sure, use another name as "G" might be used by COMSOL, internally -- Good luck Ivar [/QUOTE] Thanks Ivar, I have actually tried change the name of the function into other name, like "S", but there is still the same problem. If there is a typo, I think I can not plot out the figure of G vs. poro.eZ, but actually it can be correctly plot out. Do you know what is the meaning of the character "d" in the error function of "dmod1.G_dporo.eZ"? Does it mean derivative? Sometimes, another error showed (attachment).


Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 6 mars 2013, 01:04 UTC−5
Hi

no idea what the "d" is except if you have renamed the "mod1" identifier to "dmod1"

now do not forget that poro.eZ is a "field" hence its poro.eZ(x,y,z,t) (or depending on "r" if in 2D-axi) so when you evaluate G(poro.eZ) you need to have a geometrical Entity defined, onto which the field poro.eZ is evaluated

--
Good luck
Ivar
Hi no idea what the "d" is except if you have renamed the "mod1" identifier to "dmod1" now do not forget that poro.eZ is a "field" hence its poro.eZ(x,y,z,t) (or depending on "r" if in 2D-axi) so when you evaluate G(poro.eZ) you need to have a geometrical Entity defined, onto which the field poro.eZ is evaluated -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 6 mars 2013, 09:24 UTC−5

Hi

no idea what the "d" is except if you have renamed the "mod1" identifier to "dmod1"

now do not forget that poro.eZ is a "field" hence its poro.eZ(x,y,z,t) (or depending on "r" if in 2D-axi) so when you evaluate G(poro.eZ) you need to have a geometrical Entity defined, onto which the field poro.eZ is evaluated

--
Good luck
Ivar


Hi Ivar,

My model's name is "mod1" not "dmod1".
I use 2D-axi model. I think poro.eZ represents the strain in the z direction of the geometry. I defined function as G=f(poro.eZ).
Sometimes, it will show error "failed to evaluate temporary symbolic derivative variable", what does that mean?
Thanks a lot!

[QUOTE] Hi no idea what the "d" is except if you have renamed the "mod1" identifier to "dmod1" now do not forget that poro.eZ is a "field" hence its poro.eZ(x,y,z,t) (or depending on "r" if in 2D-axi) so when you evaluate G(poro.eZ) you need to have a geometrical Entity defined, onto which the field poro.eZ is evaluated -- Good luck Ivar [/QUOTE] Hi Ivar, My model's name is "mod1" not "dmod1". I use 2D-axi model. I think poro.eZ represents the strain in the z direction of the geometry. I defined function as G=f(poro.eZ). Sometimes, it will show error "failed to evaluate temporary symbolic derivative variable", what does that mean? Thanks a lot!

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.