Please login with a confirmed email address before reporting spam
Posted:
6 years ago
25.07.2018, 06:59 GMT-4
Hi Matthew,
How did you define your function? Can you attach a screenshot?
Hi Matthew,
How did you define your function? Can you attach a screenshot?
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
25.07.2018, 08:53 GMT-4
Hi Matthew,
How did you define your function? Can you attach a screenshot?
Thanks for your reply Nichal, the function is defined as a piecewise combination of two analytic functions as in this screenshot and this one. Both the component functions are of similar form.
I have found a workaround which seems to work fine for now, which is to use probes instead of directly trying to operate on "Derived Values". If I put the function in the "Expression" box of a boundary probe, I get sensible results with no error.
>Hi Matthew,
>
>How did you define your function? Can you attach a screenshot?
Thanks for your reply Nichal, the function is defined as a piecewise combination of two analytic functions as in [this screenshot](https://i.imgur.com/2pMfkgS.png) and [this one](https://i.imgur.com/rSNsLZd.png). Both the component functions are of similar form.
I have found a workaround which seems to work fine for now, which is to use probes instead of directly trying to operate on "Derived Values". If I put the function in the ["Expression" box of a boundary probe](https://i.imgur.com/QFsudah.png), I get sensible results with no error.
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
25.07.2018, 09:02 GMT-4
Hi Matthew,
That's odd. I tried to do a volume average with a expression of mine that was also time-dependent and I had no problem. Did you define that expression after computing your results? If so, you have to update your solution (right click on your study and select "Update Solution") in order to evaluate your expression
Hi Matthew,
That's odd. I tried to do a volume average with a expression of mine that was also time-dependent and I had no problem. Did you define that expression after computing your results? If so, you have to update your solution (right click on your study and select "Update Solution") in order to evaluate your expression
Gunnar Andersson
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
26.07.2018, 02:42 GMT-4
Hi Matthew,
When postprocessing a solution you can only use the functions and operators that are defined in the solution. I suspect that you have done the following:
- Computed a study.
- Added a function.
- Used the function when computing a numerical value.
This doesn't work as the solution computed by the study doesn't contain the function. You can remedy this by doing
2.5. Study > Update Solution
Hi Matthew,
When postprocessing a solution you can only use the functions and operators that are defined in the solution. I suspect that you have done the following:
1. Computed a study.
2. Added a function.
3. Used the function when computing a numerical value.
This doesn't work as the solution computed by the study doesn't contain the function. You can remedy this by doing
2.5. Study > Update Solution