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

Heat and mass transfer using multiphaseEulerFoam solver in OF-8

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2020, 14:08
Default Heat and mass transfer using multiphaseEulerFoam solver in OF-8
  #1
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 9
viraj20feb is on a distinguished road
Hello everyone,

I have three phases solid, liquid, and gas. I want to simulate heat transfer between all three phases, and mass transfer between liquid and gas. I am using multiphaseEulerFoam solver in OF-8. My simulation breaks down immediately in the first time step and gives me the following error:
Quote:
#0 Foam::error:rintStack(Foam::Ostream&) at ~/OpenFOAM-8/OpenFOAM-8/src/OSspecific/POSIX/printStack.C:218
#1 Foam::sigFpe::sigHandler(int) at ~/OpenFOAM-8/OpenFOAM-8/src/OSspecific/POSIX/signals/sigFpe.C:104
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ~/OpenFOAM-8/OpenFOAM-8/src/OpenFOAM/fields/Fields/scalarField/scalarField.C:114 (discriminator 2)
#4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/viraj/OpenFOAM-8/OpenFOAM-8/platforms/linux64GccDPInt32Debug/bin/multiphaseEulerFoam"
#5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam:perator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<doub le, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ~/OpenFOAM-8/OpenFOAM-8/src/OpenFOAM/lnInclude/GeometricScalarField.C:107 (discriminator 8)
#6 Foam:hasePair::Pr() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/phasePair/phasePair/phasePair.C:135
#7 Foam::heatTransferModels::RanzMarshall::K(double) const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C:65
#8 Foam::heatTransferModel::K() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C:78
#9 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::BlendedInterfacialModel<Foam::heatTransferMo del>::evaluate<double, Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<doub le, Foam::fvPatchField, Foam::volMesh> > (Foam::heatTransferModel::*)() const, Foam::word const&, Foam::dimensionSet const&, bool) const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseSystems/../../phaseSystems/lnInclude/BlendedInterfacialModel.C:175 (discriminator 6)
#10 Foam::BlendedInterfacialModel<Foam::heatTransferMo del>::K() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseSystems/../../phaseSystems/lnInclude/BlendedInterfacialModel.C:397
#11 Foam::TwoResistanceHeatTransferPhaseSystem<Foam::M omentumTransferPhaseSystem<Foam:haseSystem> >::heatTransfer() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseSystems/../../phaseSystems/lnInclude/TwoResistanceHeatTransferPhaseSystem.C:462 (discriminator 3)
#12 Foam::PhaseTransferPhaseSystem<Foam::TwoResistance HeatTransferPhaseSystem<Foam::MomentumTransferPhas eSystem<Foam:haseSystem> > >::heatTransfer() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseSystems/../../phaseSystems/lnInclude/PhaseTransferPhaseSystem.C:332
#13 Foam::InterfaceCompositionPhaseChangePhaseSystem<F oam::PhaseTransferPhaseSystem<Foam::TwoResistanceH eatTransferPhaseSystem<Foam::MomentumTransferPhase System<Foam:haseSystem> > > >::heatTransfer() const at ~/OpenFOAM-8/OpenFOAM-8/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseSystems/../../phaseSystems/lnInclude/InterfaceCompositionPhaseChangePhaseSystem.C:455
#14 ? in "/home/viraj/OpenFOAM-8/OpenFOAM-8/platforms/linux64GccDPInt32Debug/bin/multiphaseEulerFoam"
#15 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#16 ? in "/home/viraj/OpenFOAM-8/OpenFOAM-8/platforms/linux64GccDPInt32Debug/bin/multiphaseEulerFoam"
I believe that the error is in the phaseProperties file (attached). Can anyone please guide me in the right direction in order to get rid of this error?

Thank you!
Attached Files
File Type: txt phaseProperties.txt (4.4 KB, 41 views)
viraj20feb is offline   Reply With Quote

Old   November 8, 2020, 23:48
Default
  #2
New Member
 
Sumit Peh
Join Date: Oct 2018
Location: Beijing
Posts: 20
Rep Power: 7
Jamessmp23 is on a distinguished road
Have you solved your case ?

How do you apply mass transfer equation in your case ? I'm trying to apply my mass transfer equation in K modelled but I found only a way to change mass transfer in empirical model.

Thanks in advanced.
Jamessmp23 is offline   Reply With Quote

Old   November 9, 2020, 13:23
Default
  #3
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 9
viraj20feb is on a distinguished road
Quote:
Originally Posted by Jamessmp23 View Post
Have you solved your case ?

How do you apply mass transfer equation in your case ? I'm trying to apply my mass transfer equation in K modelled but I found only a way to change mass transfer in empirical model.

Thanks in advanced.
Hi,

Yes, I solved my case. I had to use a blending model since I have multiple phases. I don't understand what your question is regarding the mass transfer equation. I am using the Frossling model to model mass transfer available in OpenFOAM. You may want to lookup interfacePhaseChangePhaseSystem to understand the solution procedure for mass transfer.

Best,
Viraj
viraj20feb is offline   Reply With Quote

Old   February 15, 2021, 11:17
Default
  #4
New Member
 
Sebastián Moreno Cárdenas
Join Date: Feb 2021
Posts: 1
Rep Power: 0
smoreno84 is on a distinguished road
I also want to simulate heat transfer between three phases, and mass transfer liquid and gas using multiphaseEulerFoam in OpenFoam V8.

I start executing and the solvers stops at the first iteration without saying anything.

log.multiphaseEulerFoam file and phaseProperties are as attach Files

Can anyone help me with this? I really apreciate your guides. thanks.


Reading field p_rgh

Courant Number mean: 0.01374 max: 0.01374

Starting time loop

Courant Number mean: 0.01374 max: 0.01374
Time = 0.001

PIMPLE: Iteration 1
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.395966 0.336801 0.590764
water fraction, min, max = 3.05333e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.395963 0.336801 0.590535
water fraction, min, max = 6.0958e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.39596 0.336801 0.590307
water fraction, min, max = 9.12743e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
smoothSolver: Solving for H2O.air, Initial residual = 0, Final residual = 0, No Iterations 1
Constructing momentum equations
Tf.airAndWater: min = 325, mean = 325, max = 325
Attached Files
File Type: txt phaseProperties.txt (4.2 KB, 26 views)
File Type: txt logmultiphaseEulerFoam.txt (7.5 KB, 12 views)
smoreno84 is offline   Reply With Quote

Old   June 16, 2021, 08:26
Default
  #5
New Member
 
Kennedy Murithi Micheni
Join Date: Apr 2020
Posts: 6
Rep Power: 5
Kenmaster is on a distinguished road
Quote:
Originally Posted by smoreno84 View Post
I also want to simulate heat transfer between three phases, and mass transfer liquid and gas using multiphaseEulerFoam in OpenFoam V8.

I start executing and the solvers stops at the first iteration without saying anything.

log.multiphaseEulerFoam file and phaseProperties are as attach Files

Can anyone help me with this? I really apreciate your guides. thanks.


Reading field p_rgh

Courant Number mean: 0.01374 max: 0.01374

Starting time loop

Courant Number mean: 0.01374 max: 0.01374
Time = 0.001

PIMPLE: Iteration 1
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.395966 0.336801 0.590764
water fraction, min, max = 3.05333e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.395963 0.336801 0.590535
water fraction, min, max = 6.0958e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
MULES: Solving for alpha.air
MULES: Solving for alpha.water
air fraction, min, max = 0.39596 0.336801 0.590307
water fraction, min, max = 9.12743e-06 0 0.05
Phase-sum volume fraction, min, max = 1.00002 0.909946 1.1632
smoothSolver: Solving for H2O.air, Initial residual = 0, Final residual = 0, No Iterations 1
Constructing momentum equations
Tf.airAndWater: min = 325, mean = 325, max = 325
Did you solve this?
Kenmaster 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
Coupled Heat and Mass Transfer Mecroob OpenFOAM Running, Solving & CFD 1 July 12, 2020 19:24
Interphase mass transfer of a reaction cfx_ws1992 Main CFD Forum 0 May 15, 2017 21:42
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


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