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.

Specify inflow

Please login with a confirmed email address before reporting spam

Hi everyone!

I'm dueling with a problem and I'm a very recent user of COMSOL so probably this is an easy thing but not that simple for me. So, I'm trying to simulate the flow of a specific amount of fluid from a main inlet to a "chamber", with a small outlet. The way I was thinking of doing it was to define a function with a step form to control the flow rate of the laminar inflow in my inlet, doing something similar to what was proposed here www.comsol.com/community/forums/general/thread/24784/.

But, for some reason that I don't understand, no matter how much time of inflow that I define, the fluid stops right before the chamber entrance. Do you think that it as something to do with my boundaries definitons or the function that I'm using is not the best aproach or something like that?

Thanks in advance for anykind of help :)

3 Replies Last Post 11 set 2013, 11:02 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 10 set 2013, 08:53 GMT-4
I have used the function "flc2hs" for the step function. How are you trying to use it? Let us say that you wish to send a flow pulse into the chamber with the duration of Tp[s]. If the low rate is Vin

then inflow could be

Vin*(1-flc2hs(Tp-t,0.001))

The latter parameter defines the steepness of the pulse raise.

Now inflow = Vin, t < Tp and 0, t > Tp.

I wonder if this is what you asked ;)

BR
Lasse
I have used the function "flc2hs" for the step function. How are you trying to use it? Let us say that you wish to send a flow pulse into the chamber with the duration of Tp[s]. If the low rate is Vin then inflow could be Vin*(1-flc2hs(Tp-t,0.001)) The latter parameter defines the steepness of the pulse raise. Now inflow = Vin, t < Tp and 0, t > Tp. I wonder if this is what you asked ;) BR Lasse

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 11 set 2013, 11:02 GMT-4
Thanks for your reply Lasse! I was starting to think that no one would answer me :p

Well, frst of all I not sure what do you mean by function "flc2hs". Is that a predefined function of Comsol?

The way I was doing it was to first define a parameter "vol" with the amount of flow that I want (10e-9 m^3/s), for instance). Then I defined a step function, with values from 0 to 1, centered at 2s. After that, I created an analytic function whose expression is defined as: vol - vol*step1. I thought that this way, if I define my microfluidic inlet as a laminar flow with this function, it would control the amount of fluid that would enter the system.

I think that my approach is similar to the one you're proposing, but I really dont know waht do you mean by that function "flc2hs". Do you think that my approach is the best?

Thanks in advance,
Carlos H
Thanks for your reply Lasse! I was starting to think that no one would answer me :p Well, frst of all I not sure what do you mean by function "flc2hs". Is that a predefined function of Comsol? The way I was doing it was to first define a parameter "vol" with the amount of flow that I want (10e-9 m^3/s), for instance). Then I defined a step function, with values from 0 to 1, centered at 2s. After that, I created an analytic function whose expression is defined as: vol - vol*step1. I thought that this way, if I define my microfluidic inlet as a laminar flow with this function, it would control the amount of fluid that would enter the system. I think that my approach is similar to the one you're proposing, but I really dont know waht do you mean by that function "flc2hs". Do you think that my approach is the best? Thanks in advance, Carlos H

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 11 set 2013, 11:02 GMT-4
Thanks for your reply Lasse! I was starting to think that no one would answer me :p

Well, frst of all I not sure what do you mean by function "flc2hs". Is that a predefined function of Comsol?

The way I was doing it was to first define a parameter "vol" with the amount of flow that I want (10e-9 m^3/s), for instance). Then I defined a step function, with values from 0 to 1, centered at 2s. After that, I created an analytic function whose expression is defined as: vol - vol*step1. I thought that this way, if I define my microfluidic inlet as a laminar flow with this function, it would control the amount of fluid that would enter the system.

I think that my approach is similar to the one you're proposing, but I really dont know waht do you mean by that function "flc2hs". Do you think that my approach is the best?

Thanks in advance,
Carlos H
Thanks for your reply Lasse! I was starting to think that no one would answer me :p Well, frst of all I not sure what do you mean by function "flc2hs". Is that a predefined function of Comsol? The way I was doing it was to first define a parameter "vol" with the amount of flow that I want (10e-9 m^3/s), for instance). Then I defined a step function, with values from 0 to 1, centered at 2s. After that, I created an analytic function whose expression is defined as: vol - vol*step1. I thought that this way, if I define my microfluidic inlet as a laminar flow with this function, it would control the amount of fluid that would enter the system. I think that my approach is similar to the one you're proposing, but I really dont know waht do you mean by that function "flc2hs". Do you think that my approach is the best? Thanks in advance, Carlos H

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.