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.

Flow past a cylinder

Please login with a confirmed email address before reporting spam

Hello,

I am working on the "flow past a cylinder" example and I am asked to input "0.1exp(-t/10)0.1*sin(y)" as the inlet velocity. Should I write these expressions in some other way? I mean I have to include the default local curve parameter s and a step function?

Thanks,

Alexandra


2 Replies Last Post Jun 28, 2023, 6:24 p.m. EDT
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago Jun 28, 2023, 3:03 a.m. EDT
Updated: 1 year ago Jun 28, 2023, 3:04 a.m. EDT

Hi Alexandra,

I'm not sure about what version of the Flow Past a Cylinder model that you are looking at. In the latest version, COMSOL Multiphysics 6.1, the expression for the inlet velocity is the following:

6*U_mean*y*(H-y)/H^2*step1(t[1/s])

where H is the height of the inlet, and step1 is a user-defined step function in the model, used to ramp up the velocity. Since the inlet is a straight line in the y direction, you can describe the parabolic inflow velocity using the y coordinate variable, but you are correct that it's fine to use the curve length parameter s as s*(1-s) instead of y*(H-y)/H^2, if desired.

Best regards,

Magnus

Hi Alexandra, I'm not sure about what version of the Flow Past a Cylinder model that you are looking at. In the latest version, COMSOL Multiphysics 6.1, the expression for the inlet velocity is the following: 6*U_mean*y*(H-y)/H^2*step1(t[1/s]) where `H` is the height of the inlet, and `step1` is a user-defined step function in the model, used to ramp up the velocity. Since the inlet is a straight line in the *y* direction, you can describe the parabolic inflow velocity using the `y` coordinate variable, but you are correct that it's fine to use the curve length parameter `s` as `s*(1-s)` instead of `y*(H-y)/H^2`, if desired. Best regards, Magnus

Please login with a confirmed email address before reporting spam

Posted: 1 year ago Jun 28, 2023, 6:24 p.m. EDT

Thank you very much!

Thank you very much!

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.