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.

Initial condition as Piecewise function

Please login with a confirmed email address before reporting spam

The below post is related to an archived discussion


I am trying to solve a PDE inside a rectangular domain. I want to specify the initial condition as a piecewise function as shown below:

1 if x^2+y^2<=R^2 0 otherwise

I am new to COMSOL and am not able to figure this out. Please help.


1 Reply Last Post Jul 6, 2018, 8:57 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Jul 6, 2018, 8:57 a.m. EDT
Updated: 6 years ago Jul 6, 2018, 8:59 a.m. EDT

Hi,

Go to "definitions", right click on it, get to "functions", and then you'll find "piecewise function".

Johan

Hi, Go to "definitions", right click on it, get to "functions", and then you'll find "piecewise function". Johan

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.