|
[Sponsors] |
January 14, 2014, 08:10 |
interFoam microchannel runs dry
|
#1 |
New Member
Join Date: Jul 2013
Posts: 8
Rep Power: 12 |
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 |
|
January 14, 2014, 14:31 |
|
#2 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
i recommend for inlet, to use
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
January 15, 2014, 07:39 |
|
#3 |
New Member
Join Date: Jul 2013
Posts: 8
Rep Power: 12 |
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. |
|
January 17, 2014, 07:59 |
|
#4 |
New Member
Join Date: Jul 2013
Posts: 8
Rep Power: 12 |
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 ); } |
|
|
|
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 |