How to integrate a table result

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   6 Replies   Last post: June 19, 2014 10:56am UTC
Daniel Lewis

Daniel Lewis

January 31, 2013 4:09am UTC

How to integrate a table result

Hello,

I have calculated surface integrals for total flux over particular features in my geometry. This outputs a table of total flux in (mol/s) vs. time points. I would like to then be able to integrate this vs. time to output a table of total mol vs. s but I cannot figure out how to integrate table data. Thanks!

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

January 31, 2013 5:49am UTC in response to Daniel Lewis

Re: How to integrate a table result

Hi

in the later versions (I do not believe it was in the early 4.0) you have table operations such as integration, sum, average ... on the columns

Else you must create your variable, even make a new global variable and integrate this way over the time (valid for time/transient solving)

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Daniel Lewis

Daniel Lewis

January 31, 2013 5:54am UTC in response to Ivar Kjelberg

Re: How to integrate a table result

Thanks! This helped.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Jeffrey Fong

Jeffrey Fong

March 28, 2013 7:23am UTC in response to Ivar Kjelberg

Re: How to integrate a table result

Hi,

I created a Global Evaluation for Power as a function of time but when I try to use the Data Series Operation - Integral, I get an error message saying "Table input type 'Time' does not match data input type 'Stationary'. Try evaluating in another table." But the data set is from a Time dependent analysis, so what would I be missing here?

Thanks,
Jeffrey

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

March 28, 2013 5:04pm UTC in response to Jeffrey Fong

Re: How to integrate a table result

Hi
Could it be the study pointer going to a wrong Data Set, or a leftover, sometimes its better to clear the table if it exist from before.

Or that you solution has not solved OK, in which case COMSOl is in default time series t=0 mode, and will go out of this state once the solver has finished in stationary (could also be a a "subversion 0" effect ;)

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Jeffrey Fong

Jeffrey Fong

March 29, 2013 8:36pm UTC in response to Ivar Kjelberg

Re: How to integrate a table result

Hi Ivar,

I deleted all previous solutions and it worked.

Thanks,
Jeffrey

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Giuseppe Mastrolembo

Giuseppe Mastrolembo

June 19, 2014 10:56am UTC in response to Ivar Kjelberg

Re: How to integrate a table result

Hi Ivar
I have got a similar problem. I try to integrate the current density on a surface of my model but I get this message "Table input type 'Stationary' does not match data input type 'Time'. Try evaluating in another table". My solver is time dependent solver.
thank you for your help
Giuseppe

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines