CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

interFoam microchannel runs dry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2014, 08:10
Default interFoam microchannel runs dry
  #1
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 12
NiFl is on a distinguished road
Hi everybody,

I am trying to simulate an array of microchannels (each 100x100 microns) (in x-y-plane) between two manifolds which are slightly bigger. The liquid is entering through an inlet and exits through a similar outlet, both - in/outlet - point in x-direction.
My mesh is created with gmsh and I use 'transformPoints -scale' to scale it to microns.
I use interFoam to get a multiphase simulation.

My configurations:

alpha1:
boundaryField
{
wall
{
type fixedValue;
value uniform 0;
}
inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
}

U
internalField uniform (0 0 0);

boundaryField
{
wall
{
type fixedValue;
value uniform (0 0 0);
}

inlet
{
type zeroGradient;
value uniform ( 0 0 0 );
}
outlet
{
type zeroGradient;
value uniform ( 0 0 0 );
}

}

p
boundaryField
{
wall
{
type fixedFluxPressure; // tried also zeroGradient but exploded ;
value uniform 0;
}

inlet
{
type fixedValue;
value uniform 500;
}
outlet
{
type fixedValue;
value uniform 0;
}

}

setFieldsDict

defaultFieldValues
(
volScalarFieldValue alpha1 1
);

regions
(
boxToCell
{
box (-1 -1 -1) (1 1 1e-4);
fieldValues
(
volScalarFieldValue alpha1 0
);
}
boxToCell
{
box (1e-2 1e-2 1e-4) (1 1 1);
fieldValues
(
volScalarFieldValue alpha1 0
);
}
);

So that only my inlet is filled with liquid (phase1) and the rest of the channels is filled with air (phase2).

When I run my case, everythings looks good until I reach something around a second, then my inlet runs dry! Does someone have experience with this problem? Do I have to add a sort of 'basin' on my inlet to supply more liquid or is it due to my BC?

Thanks for your help
Nils
NiFl is offline   Reply With Quote

Old   January 14, 2014, 14:31
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
i recommend for inlet, to use
Quote:

alpha1: fixedValue 1
U: pressureInletVelocity
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   January 15, 2014, 07:39
Default
  #3
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 12
NiFl is on a distinguished road
Thanks, works so far, but I still have the impression that there are some difficulties at my outlet...

Last edited by NiFl; January 16, 2014 at 05:50.
NiFl is offline   Reply With Quote

Old   January 17, 2014, 07:59
Default
  #4
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 12
NiFl is on a distinguished road
Hi ,

just to come to a kind of conclusion:

I changed the alpha1 settings to:

boundaryField
{
wall
{
type fixedValue;
value uniform 0;
}
inlet
{
type fixedValue;
value uniform 1;
}
outlet
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
}

Now I see the Flux with funkyDoCalc and my Massflow Script:

MassFlow
{
valueType patch;
patchName outlet;

variables ( "threshold=0.5;"
"flux=sum(alpha1>threshold?mag(U*Sf() ):0);");
expression "flux";

accumulations (
min
max
average
sum
);
}
NiFl is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
error message cuteapathy CFX 14 March 20, 2012 06:45
Interfoam Microchannel flow parasitic velocities cfd_user2011 OpenFOAM 2 June 12, 2011 15:43
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56


All times are GMT -4. The time now is 02:02.