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.

Piecewise constant function over a boundary

Please login with a confirmed email address before reporting spam

Hello,

I have a 2D axisymmetrc model and I'm trying to define an input pressure on the edge as a piecewise constant function of the r-coordinate.

Here's what I want to have for each segment: P=p_0*exp(1i*phase_j), for r_j < r < r_(j+1) where p_0, phase_j, r_j and r_(j+1) are input parameters.

I have tried several approches, but there is a jump in the input pressure at the segment boundaries after meshing. I'm wondering what is the best way to do this?

Thank you in advance for your help.


0 Replies Last Post Apr 19, 2020, 5:15 p.m. EDT
COMSOL Moderator

Hello Yichi Zhang

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.