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.
Time dependent boundary
Posted 24 giu 2013, 10:36 GMT-4 Fluid & Heat, Computational Fluid Dynamics (CFD), Materials, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.3, Version 4.3a, Version 4.3b 10 Replies
Please login with a confirmed email address before reporting spam
I have flow through a cylinder, and want the inlet velocity to be periodic [ u(r,t) ]. Im new to comsol and havent been able to find an answer to this.
Thanks in advance for any help!.
Please login with a confirmed email address before reporting spam
I use the analytic function under definitions for that.
I needed a pulse and solve it with a rectangle (rect1) under definitions and an analytic function:
Analytic function name: an1
Expression: mod1.rect1(mod(t,period1))
argument: t
and fill in at your inlet velocity: "value" *an1(t[1/s])
I hope this will help you.
Good luck,
--
Barend
Please login with a confirmed email address before reporting spam
One question, where do you define the "period1" variable?
Please login with a confirmed email address before reporting spam
I define it in the parameters under Global definitions, but you can also fill in the value of your period instead of periond1.
--
Barend
Please login with a confirmed email address before reporting spam
Ok, so I defined the parameters, Amp and period1 in the parameters menu. When I try to plot the an1, it gives me an error "unknown function or operator" mod1.rect1.
I attached a picture of the error if you want to take a look.
Thanks again for helping!
Attachments:
Please login with a confirmed email address before reporting spam
Hope that it will work now.
--
Barend
Please login with a confirmed email address before reporting spam
That you velocity have a particular value of t=1 till t=3 in a period and for the rest the inlet velocity is 0.
Or do you want a wavelike kind of inlet velocity?
That will make it perhaps easier to help you.
--
Barend
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
--
Barend
Please login with a confirmed email address before reporting spam
-Jon
Please login with a confirmed email address before reporting spam
Attachments:
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.