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.

Calculate surface area in which a specified temperature limit is exceeded

Please login with a confirmed email address before reporting spam

Hi,

I have calculated the time-dependent joule-heating of a structure, now I like to calculate the surface area in which a specified temperature limit is exceeded for each time step. Is there any possibility to do this in Comsol 4.2?

Thanks & best regards
Sebastian

4 Replies Last Post 2 juin 2017, 10:26 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 22 juil. 2011, 08:36 UTC−4
What you have to do is integrate a boolean expression such as T>50[degC] (which is 1 if true and 0 otherwise) over the domain of interest (that "surface" you speak of).

There are two ways to achieve this. Either you simply integrate the expression in post-processing (Results -> Derived Values). Or, slightly more complicated but offering more flexibility, you first define an integration operator for the domain (under the Model -> Defintions node) and then evaluate that operator using a Global Expression in post-processing.
What you have to do is integrate a boolean expression such as T>50[degC] (which is 1 if true and 0 otherwise) over the domain of interest (that "surface" you speak of). There are two ways to achieve this. Either you simply integrate the expression in post-processing (Results -> Derived Values). Or, slightly more complicated but offering more flexibility, you first define an integration operator for the domain (under the Model -> Defintions node) and then evaluate that operator using a Global Expression in post-processing.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 juil. 2011, 04:25 UTC−4
Thanks John, you've helped me a lot :)
Thanks John, you've helped me a lot :)

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2 juin 2017, 05:19 UTC−4
Updated: 7 years ago 2 juin 2017, 05:34 UTC−4

What you have to do is integrate a boolean expression such as T>50[degC] (which is 1 if true and 0 otherwise) over the domain of interest (that "surface" you speak of).

There are two ways to achieve this. Either you simply integrate the expression in post-processing (Results -> Derived Values). Or, slightly more complicated but offering more flexibility, you first define an integration operator for the domain (under the Model -> Defintions node) and then evaluate that operator using a Global Expression in post-processing.


Hi,
Do you know by any change what will be the parameter to calculate this area? In my case I used:
if(T>Tvap, 2*dom,0) under the surface integral but the resulted area isn't what I would expected. Instead of dom what other variable is used for surface area calculation in Comsol 5.2a?
Thank you.

Edit:
I figured it out and it seems that the formula I used is right but please feel free to make any comments.
[QUOTE] What you have to do is integrate a boolean expression such as T>50[degC] (which is 1 if true and 0 otherwise) over the domain of interest (that "surface" you speak of). There are two ways to achieve this. Either you simply integrate the expression in post-processing (Results -> Derived Values). Or, slightly more complicated but offering more flexibility, you first define an integration operator for the domain (under the Model -> Defintions node) and then evaluate that operator using a Global Expression in post-processing. [/QUOTE] Hi, Do you know by any change what will be the parameter to calculate this area? In my case I used: if(T>Tvap, 2*dom,0) under the surface integral but the resulted area isn't what I would expected. Instead of dom what other variable is used for surface area calculation in Comsol 5.2a? Thank you. Edit: I figured it out and it seems that the formula I used is right but please feel free to make any comments.

Walter Frei COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2 juin 2017, 10:26 UTC−4
Hello,

You may also be interested in the timeint and timemax operators ( see section on Operators, Functions, and Constants in the COMSOL Multiphysics Reference Manual)

For example, you could plot:
timemax(0,30[s],T) which will show the maximum temperature that is achieved over the first 30 seconds.
or:
timeint(0,30[s],(T>400[K])) will compute and plot how long a particular region is held above 400K in the first 30 seconds.
Hello, You may also be interested in the timeint and timemax operators ( see section on Operators, Functions, and Constants in the COMSOL Multiphysics Reference Manual) For example, you could plot: timemax(0,30[s],T) which will show the maximum temperature that is achieved over the first 30 seconds. or: timeint(0,30[s],(T>400[K])) will compute and plot how long a particular region is held above 400K in the first 30 seconds.

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.