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.

Gaussian distribution

Alvar Torello Massana

Please login with a confirmed email address before reporting spam

Hey!

I want to know if it is possible to add a gaussian distribution as a initial condition. I am working in 1D and in the Math Module, simulating a heat transfer. I want an initial temperature distribution being like the gaussian distribution to avoid some discontinuity problems.

Thanks!

1 Reply Last Post 2015年10月2日 GMT-4 08:12
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年10月2日 GMT-4 08:12
Yes, it's as simple as typing in the expression you want in the Initial Condition node. In your case, for a normalized centered Gaussian distribution, (1/(sigma*sqrt(2*pi)))*exp(-(x^2/(2*sigma^2))) where the value of sigma is specified in the Parameters node, or whatever you wish. COMSOL's GUI is interpreted.
Jeff
Yes, it's as simple as typing in the expression you want in the Initial Condition node. In your case, for a normalized centered Gaussian distribution, (1/(sigma*sqrt(2*pi)))*exp(-(x^2/(2*sigma^2))) where the value of sigma is specified in the Parameters node, or whatever you wish. COMSOL's GUI is interpreted. Jeff

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.