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.

variable determined by integral formula

Please login with a confirmed email address before reporting spam

Normally when people talk about integration, they refer to coulpling variables, which could be integrated over space or time.

In my variable definition, I have a variable determined by a integral formula.
For example, one varialble is the integration of f(r) over r with up and low limits, r can be particle size or whatever, other than space coordinates or time.
I tried to search from the website for information, but still have no idea to figure this problem out.

This qustion was also posed by others 1 year ago. Please refer to:
www.comsol.com/community/forums/general/thread/28492/

Could someone give me some nice advices? I will appreaciate a lot for your answer!

2 Replies Last Post 31 mars 2014, 11:14 UTC−4
Daniel Smith COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 13 févr. 2014, 17:33 UTC−5
Dear Terence, you can use the integrate() function, as described on P230 of the COMSOL Multiphysics Reference manual (in the V4.3b documentation):

integrate(expr, var, lower, upper) computes the integral of expr for the integration variable var over an interval specified by expressions lower for the lower limit and upper for the upper limit. The expressions for lower and upper limits do not have to be constants but are required to evaluate to real values.

Dan
Dear Terence, you can use the integrate() function, as described on P230 of the COMSOL Multiphysics Reference manual (in the V4.3b documentation): integrate(expr, var, lower, upper) computes the integral of expr for the integration variable var over an interval specified by expressions lower for the lower limit and upper for the upper limit. The expressions for lower and upper limits do not have to be constants but are required to evaluate to real values. Dan

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 31 mars 2014, 11:14 UTC−4
Hello,
I am using Comsol 4.3b. I arrived in a problem. Could you please help me. The problem is,
u'=\int_{0}^{t}(-u)ds, u(0)=1 , u'(0)=0, which implies u(t)=cost. Now I want to see the value of cos1.
I choose coefficient form of PDE (time dependent) .
Thanking you.
Best regards.
- Paramita Chatterjee
Hello, I am using Comsol 4.3b. I arrived in a problem. Could you please help me. The problem is, u'=\int_{0}^{t}(-u)ds, u(0)=1 , u'(0)=0, which implies u(t)=cost. Now I want to see the value of cos1. I choose coefficient form of PDE (time dependent) . Thanking you. Best regards. - Paramita Chatterjee

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.