|
[Sponsors] |
about mass transfer model in reactingTwoPhaseEulerFoam solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 2, 2017, 14:49 |
about mass transfer model in reactingTwoPhaseEulerFoam solver
|
#1 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear All,
Recently I am working on reactingTwoPhaseEulerFoam solver from OpenFOAM 3.0.1. I have to implement my own mass transfer model, and hence have to read a little bit about the mass transfer model in this solver. We all know that there is a source term in the RHS of the mass fraction governing equation: Code:
Y1iEqn==*massTransfer[Y1[i].name()]+ fvOptions(alpha1, rho1, Y1[i]) Code:
Foam::tmp<Foam::volScalarField> Foam::massTransferModels::Frossling::K() const { volScalarField Sh(scalar(2) + 0.552*sqrt(pair_.Re())*cbrt(Le_*pair_.Pr())); return 6.0*pair_.dispersed()*Sh/sqr(pair_.dispersed().d()); } Code:
Foam::tmp<Foam::volScalarField> Foam::massTransferModels::sphericalMassTransfer::K() const { return 60.0*pair_.dispersed()/sqr(pair_.dispersed().d()); } best regards, OFFO |
|
May 3, 2017, 11:53 |
|
#2 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
In the massTransfer() function, we have the following several lines:
Code:
// Implicit transport through the phase *eqns[name] += phase.rho()*KD*Yf - fvm::Sp(phase.rho()*KD, eqns[name]->psi()); // Sum the mass transfer rate dmdtExplicit += dmdtSign*phase.rho()*KD*Yf; dmdt -= dmdtSign*phase.rho()*KD*eqns[name]->psi(); // Explicit transport out of the other phase if (eqns.found(otherName)) { *eqns[otherName] -= otherPhase.rho()*KD*compositionModel.dY(member, Tf); } |
|
May 5, 2017, 11:20 |
|
#3 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear All,
About the BasePhaseSystem, it is widely used for the class template in the reactingTwoPhaseEulerFoam solver. For example, it is used for the heatTransferModel.H, and the piece of the code is as follows: Code:
/*---------------------------------------------------------------------------*\ Class HeatTransferPhaseSystem Declaration \*---------------------------------------------------------------------------*/ template<class BasePhaseSystem> class HeatTransferPhaseSystem : public BasePhaseSystem { protected: // Protected typedefs typedef HashTable < autoPtr<BlendedInterfacialModel<heatTransferModel> >, phasePairKey, phasePairKey::hash > heatTransferModelTable; |
|
June 27, 2019, 05:26 |
|
#4 |
New Member
James Lee
Join Date: Jul 2017
Posts: 5
Rep Power: 9 |
Hi,
The BasePhaseSystem can be found in reactingTwoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystems.C Say if the phaseSystem used is interfaceCompositionPhaseChangeTwoPhaseSystem, it can be seen in the code that typedef InterfaceCompositionPhaseChangePhaseSystem < PhaseTransferPhaseSystem < TwoResistanceHeatTransferPhaseSystem < MomentumTransferPhaseSystem<twoPhaseSystem> > > > interfaceCompositionPhaseChangeTwoPhaseSystem; So the BasePhaseSystem of HeatTransferPhaseSystem would be MomentumTransferPhaseSystem<twoPhaseSystem>. By the way the code is from newer version though. Hope it helps. Regards, James |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
which solver to model a falling film with mass transfer ? | Cyp | OpenFOAM | 7 | April 7, 2015 19:53 |
Difficulty In Setting Boundary Conditions | Moinul Haque | CFX | 4 | November 25, 2014 18:30 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
Mass and het transfer using eulerian model | Pablo | FLUENT | 0 | February 16, 2007 09:36 |
VOF model with the mass transfer? | ROOZBEH | FLUENT | 0 | April 21, 2003 05:23 |