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.

How can I define an arbitrary function as an initial condition?

Please login with a confirmed email address before reporting spam

Hi!

I am new to COMSOL, and I am trying to solve the diffusion equation by PDE interface module.

For the initial condition of the diffusion,

I want to define square concentration of amplitude 1 which ranges from x=44 to 84 within total range (0 128)

How can I define this function and use it as the initial condition?

Thank you for your attention!


1 Reply Last Post 3 gen 2018, 02:11 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 3 gen 2018, 02:11 GMT-5

This problem has been discussed in this forum quite frequently. Type, e.g. "pulse train" in the search field.

BR Lasse

This problem has been discussed in this forum quite frequently. Type, e.g. "pulse train" in the search field. BR Lasse

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.