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.

Syntax in equation: time dependent value of variable calculated for one special time

Please login with a confirmed email address before reporting spam

What syntax do I use, to access the calculated value of a variable at one single defined point of time in an equation ?

I tried the expression

TempAverageTitan - TempAverageTitan(at(t=0/[s]))

to address the difference in average temperatures in time from the initial average temperature at the beginning with t=0

While I can display the value of the variable TempAverageTitan, I get a syntax error for addressing the start value TempAverageTitan(at(t=0/[s]))


1 Reply Last Post 2 mag 2022, 11:44 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 3 years ago 2 mag 2022, 11:44 GMT-4
Updated: 3 years ago 3 mag 2022, 07:06 GMT-4

For the my self-defined variable TempAverageTitan at the time t = 10s I have to write the syntax

             at(10, TempAverageTitan)

comment: I feel it being not intuitively for me, to presume that at always means a time. An intuitive syntax for me would be something like TempAverageTitan(at(t,10))

For the my self-defined variable *TempAverageTitan* at the time t = 10s I have to write the syntax at(10, TempAverageTitan) comment: I feel it being not intuitively for me, to presume that at always means a time. An intuitive syntax for me would be something like *TempAverageTitan(at(t,10))*

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.