|
[Sponsors] |
Calculate a custom flux through the interface of a two phase flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2016, 20:41 |
Calculation of a custom flux through the interface of a two phase flow
|
#1 |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 12 |
Dear Foamers,
I'm simulating a typical two-phase flow by modified interFoam solver in OF 2.3.0, well the problem is i need to calculate a custom flux ( a kind of heat flux) through the interface of two phases as follows: where D is a transport property like rho that added to the solver, T is an added variable like temperature, is the volume fraction and is the normal to the interface. Well with these descriptions, how the flux F could be calculated through the interface during the simulation? Any help and comment will be greatly appreciated, Regards, Arsalan. Last edited by arsalan.dryi; October 19, 2016 at 14:18. |
|
October 19, 2016, 17:08 |
|
#2 |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 12 |
I still got stuck in this problem, can anyone give some help or comment on this?!
Thanks in advance, Regards. |
|
October 20, 2016, 13:24 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
You need to create a surfaceScalarField and update its values in your solver. Here is an example from simpleFoam:
https://github.com/OpenFOAM/OpenFOAM...Foam/pEqn.H#L4 |
|
October 20, 2016, 17:08 |
|
#4 | |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 12 |
Quote:
Thanks for your replay, but how could I compute my flux through gas-liquid deformable interface in my solver?! Actually I just do not understand what should I do! Please give me more details about it. |
||
October 20, 2016, 17:11 |
|
#5 |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 12 |
I think this flux could be calculated by using swak4Foam expressions as follows:
Code:
createInterface { type createSampledSurface; outputControl timeStep; outputInterval 1; surfaceName interface; surface { type isoSurface; isoField alpha; isoValue 0.5; interpolate true; } } Flux { type swakExpression; valueType surface; surfaceName interface; expression "(D*snGrad(T)+snGrad(alpha))/T";// accumulations ( sum ); verbose true; } Well how should I reconstruct interface that snGrad() could be used?! |
|
October 24, 2016, 15:31 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Tags |
flux calculation, interface, interfoam, swak4foam, swakexpression |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting rotating frame of referece. | RPFigueiredo | CFX | 3 | October 28, 2014 05:59 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
mass flux in two phase flow | nimasam | OpenFOAM | 0 | December 9, 2010 04:48 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |