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.

Dirac Function

Please login with a confirmed email address before reporting spam

I need to implement a frequency domain representation of a cosine wave as a scalar expression wave propogation model. This would be a formula an complex expression containing two Dirac delta functions. How would you enter this into COMSOL as a scalar expression? I don't beleive it has a Dirac operator, or does it?

i*pi*[dirac(omega-a)-dirac(omenga+a)]

1 Reply Last Post 2010年12月16日 GMT-5 13:29
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年12月16日 GMT-5 13:29
Hi

the closest you can get to a Dirac function is probably the test() functions, but these apply to dependent variables.
In time series Dirac functions tend to destabilise the solver stepping algorithms, so mostly one should use smoothened functions, but I must admit that I do not really understand what you are doing so I have some difficulties to give you any better clues

--
Good luck
Ivar
Hi the closest you can get to a Dirac function is probably the test() functions, but these apply to dependent variables. In time series Dirac functions tend to destabilise the solver stepping algorithms, so mostly one should use smoothened functions, but I must admit that I do not really understand what you are doing so I have some difficulties to give you any better clues -- Good luck Ivar

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.