|
[Sponsors] |
April 6, 2018, 02:54 |
|
#21 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
Regards, Elham |
||
April 7, 2018, 12:28 |
|
#22 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
I have added source term on MULES of alpha2 and the fvScalarMatrix alpha2Eqn. The solver compiled but it crashed at the time of running. Code:
#0 Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/printStack.C:221 #1 Foam::sigFpe::sigHandler(int) at ~/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/signals/sigFpe.C:108 #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const at ~/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverScale.C:57 #4 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMatrix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ~/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverSolve.C:370 (discriminator 1) #5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ~/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverSolve.C:119 #6 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ~/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/fvMatrices/fvScalarMatrix/fvScalarMatrix.C:169 (discriminator 1) #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ~/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/fvMatrixSolve.C:82 #8 at ~/OpenFOAM/elham-2.3.1/applications/solvers/multiphase/interFoam/interMixingHeatFoam/pEqn.H:58 (discriminator 5) #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 at ??:? Floating point exception (core dumped) elham@elham-Precision-T7610:~/OpenFOAM/elham-2.3.1/tutorials/multiphase/interMixingHeatFoam/droplet$ Regards, Elham |
||
April 11, 2018, 05:55 |
|
#23 |
Senior Member
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17 |
have you tried interPhaseChangeFoam?
|
|
April 11, 2018, 10:40 |
|
#24 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
||
April 27, 2018, 05:01 |
|
#25 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
In interMixingFoam there are diffusion terms in alpha equations,eg, Code:
- fvm::laplacian(Dc23 + Dc32 + alphatab*turbulence->nut() , alpha3) Regards, Elham |
||
April 29, 2018, 06:31 |
|
#26 |
Senior Member
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17 |
Hi,
Interesting version you found there, where I experimented with eddy diffusivity... However, the code I ment is in the supplement of https://www.geosci-model-dev.net/10/3963/2017/ and it is ment as "inspiration" and can't be taken as 1:1 copy to interMixingFoam because it has implemented other stuff to deal with debris flows. Phase1 stays separate, phase 2 and 3 can mix, but do not have momentum transfer. |
|
May 21, 2018, 03:03 |
|
#27 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
Dear Albrecht, I have checked your code. In the debrisInterMixingFoam.C you have added a resetting velocity and pressure feature in the PISO loop after outerCorrection loop to prevent melting or freezing of the material. It was a problem that I encountered and is really helpful. But I am after the origin of the error and is there any resource to give more insight? Cheers, Elham |
||
August 14, 2018, 18:46 |
|
#28 | |
New Member
Aaron
Join Date: Aug 2018
Location: BC Canada
Posts: 1
Rep Power: 0 |
Quote:
How is this going, I am interested in what became of it! I am looking to model the distillation process, so from a miscible mixture to a pure vapour phase change. Is there a working (or non working) version of your solver? Kindly, |
||
August 15, 2018, 00:05 |
|
#29 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
My model based on interMixingFoam is working now, although not published yet. What else do you need to know now? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem setting with chtmultiregionFoam | Antonin | OpenFOAM | 10 | April 24, 2012 10:50 |
Zero Diffusive flux | Subramani Sockalingam | FLUENT | 1 | May 27, 2009 11:36 |
Zero Diffusive flux | Subramani Sockalingam | Main CFD Forum | 0 | January 19, 2008 14:02 |
Help: diffusive flux BC at wall | Quarkz | Main CFD Forum | 7 | July 17, 2005 12:24 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |