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.

Applying Analytical Function as Boundary Condition

Please login with a confirmed email address before reporting spam

I know this has been asked a lot... but none of the solutions mentioned in the search I did in the forum solved my problem. I'm simulating a piezoelectric membrane, and doing a Time Dependent Study of it's displacement.

I want to apply a time variable rectangular function as an electrical input. I already plotted the rect() function in a an1() function: Vp=45V; Rt=200us; fo=50Hz

expression: Vp*rect1(t[1/s])
argument: t
function: V
"make periodic" lower limit: -Rt
"make periodic" upper limit: -Rt+1/fo

The plot of the an1() function is exactly what I need. But when I try the apply it to the "Electrical Potential" Boundary condition (BC) I write: an1(t,V); an1(t[1/s]); an1(t,V,t[1/s]); an1(V).... all of those give the same problem: "Unexpected Unit of Input" what is the correct way to write it so the unit seen by the BC is volts [V]???

Any help will be appreciated


0 Replies Last Post 25 apr 2013, 03:42 GMT-4
COMSOL Moderator

Hello David Sanchez

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.