|
[Sponsors] |
May 6, 2015, 12:11 |
Suppress twoPhaseEulerFoam energy
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
I am playing with the new twoPhaseEulerFoam. We developed a general population balance class as a diameterModel similar to IATE model but we plan to have different methods there. For now we have some good comparisons with analytical solutions for the method of classes but would like to go to method of moments of various forms.
We are really trying hard to follow minimalilty of code and future maintainability, so we believe we have a fairly well abstracted class structure. The twoPhaseEulerFoam solve is untouched and we only add our PBE library to controlDict in order to make our PBE diameter model selectable. So far so good. I really like the current implementation of twoPhaseEulerFoam but I still haven't grasped everything. In particular I still haven't dived into thermophysical side of it which is fairly new to me. Thermophysics shouldn't be really playing any role in my PBE cases so I am trying to suppress it as occasionally my cases diverge because of energy equation. Is there a way to do it? At the moment I switched off all interfacial terms related to temperature and fixed temperature or each boundary of my domain to constant uniform value. Same for internal mesh. My `thermophysicalProperties' for both phases Code:
thermoType { type heRhoThermo; mixture pureMixture; transport const; thermo hConst; equationOfState rhoConst; specie specie; energy sensibleInternalEnergy; } At the moment I just set under relaxtion to 0 and will see how this works, but is there a way to actually supress completely the solution of the energy equation under the new solver without changing the code of the solver? |
|
July 2, 2015, 08:39 |
|
#2 |
New Member
Benoit Soubelet
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Hello,
Due to repeating crashes with twoPhaseEulerFoam and the energy equations also, we found a way around by by-passing the solution of these equations in the fvSolution file: Code:
"e.*" { solver smoothSolver; smoother symGaussSeidel; //tolerance 1e-7; relTol 2; minIter 0; } After several thousands of iterations, I was able to switch them on again with: Code:
"e.*" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-7; relTol 0; minIter 1; } |
|
July 2, 2015, 11:54 |
|
#3 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
__________________
My OpenFOAM algorithm website: http://dyfluid.com By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html |
||
November 5, 2015, 17:47 |
|
#4 |
Member
Andrew Eisenhawer
Join Date: Nov 2012
Location: Alberta, Canada
Posts: 35
Rep Power: 14 |
Robert,
Could you elaborate a bit on your PBE implementation? I would like to model emulsion separation in the presence of surfactants, and am feeling pushed towards a PBE solution rather than a modification of the IATE model. Would you be willing to share code? Andrew |
|
January 10, 2016, 10:37 |
|
#5 |
Senior Member
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14 |
I used this work around succesfuly in OF2.3.x. Now that i wanted to do the same in OF3.0.1 it doesn' t work anymore.
When i set: "e.*" { solver smoothSolver; smoother symGaussSeidel; // tolerance 1e-7; relTol 2; minIter 0; } The solver is still solving for "e.air" and "e.water" and calculating "min T.air" and "min T.water". Normally that would not bother me but i suspect it to be the reason twophaseeulerfoam crashes after 4.3 seconds of simulation time. Is there another possibilty to turn off energy in twophaseeulerfoam OF3.0.1? |
|
January 11, 2016, 09:45 |
|
#6 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13 |
You can use reactingTwoPhaseEulerFoam, and make the problem isothermal.
This is done by using 'pureIsothermalPhaseModel' in constant/phaseProperties. |
|
January 11, 2016, 10:32 |
|
#7 |
Senior Member
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14 |
Thanks. I will look into that.
I also found out that setting air phase diameter model to "constant" and setting min inter for e.water and e.air to "0" yields quasi-isothermal running. Temperatures are constant during solving. |
|
March 17, 2016, 08:15 |
|
#8 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
|
||
March 17, 2016, 09:04 |
|
#9 |
Senior Member
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14 |
Hi,
yes, i think i tried what i posted on January 11th: You can try that also. And don't get confused that the solver will show actual temperatures. They should remain constant though during the simulation. Don't forget also to set the same temperature for each phase, e.g. 300 K. |
|
March 17, 2016, 09:08 |
|
#10 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Yes, I tried that but I still get Code:
smoothSolver: Solving for e.*, Initial residual = 0.997813, Final residual = 0.000848293, No Iterations 6 The temperature fluctuates around the 300K. |
||
March 17, 2016, 10:06 |
|
#11 |
Senior Member
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14 |
Hm, if u have set both diameter models to constant i'm afraid i don't know what's causing this. Maybe instead of "minIter" you can try "maxIter"?! Sorry that i can't be of any better help.
|
|
March 17, 2016, 10:11 |
|
#12 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
||
March 30, 2016, 06:26 |
|
#13 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Code:
"(h|e).*" { solver smoothSolver; smoother symGaussSeidel; tolerance 1; relTol 0; minIter 0; maxIter 0; } |
||
March 30, 2017, 05:33 |
|
#14 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13 |
Hey
Has anyone managed to make the solver not solve alphat? I don't want temperature to be solved at all, but this still has values, which means it must be affected somehow? Cheers Ali |
|
March 30, 2017, 05:54 |
|
#15 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
What are you trying to achieve? Sent from my LeTv x500 (BB72 ROM) |
||
March 30, 2017, 06:03 |
|
#16 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13 |
Hi
Thanks for the information. The temperatures do not change anymore with the above post, so thanks for that. I'm trying to model a slurry flow (2 phase) submerged jet impingement, but the solver is struggling to converge. I'm just looking for tips for convergence! It seems to be the turbulence which is blowing up all the time, as omega (KOmegaSST) is up to 1000ish. Alasdair |
|
March 30, 2017, 06:28 |
|
#17 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Let us know how it goes and if you manage to solve the problem (and how!!) |
||
July 11, 2017, 16:00 |
|
#18 | |
Member
Hooman
Join Date: Apr 2011
Posts: 35
Rep Power: 15 |
Quote:
I have problems using twoPhaseEulerFoam/reactingTwoPhaseEulerFoam. My p_rgh blows up and my temperatures go to very high numbers. This is confusing to me, since I set maxIter and minIter both to zero for h/e equations. Can you please guide me on this? Relaxation factor: 0.5, maxCo 0.5. OF 4.1. Thanks! |
||
July 11, 2017, 16:02 |
|
#19 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Most probably the computation is diverging somewhere else influencing also the value of the temperature somehow. Try also to post an excerpt of the log so we can see what is happening... Sent by my Honor 8 using Tapatalk |
||
July 11, 2017, 16:13 |
|
#20 | |
Member
Hooman
Join Date: Apr 2011
Posts: 35
Rep Power: 15 |
Quote:
https://www.dropbox.com/s/2lrcoyzymx...files.rar?dl=0 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
energy in sonicFoam | joern | OpenFOAM Running, Solving & CFD | 1 | September 24, 2019 01:15 |
energy spectra from LES simulations | kumar | OpenFOAM Post-Processing | 2 | February 23, 2016 13:25 |
Natural convection, problems with total energy balance | MdoNascimento | STAR-CCM+ | 0 | March 13, 2014 13:15 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
SIMPLE and energy equation convergence | Fabio | Main CFD Forum | 0 | June 1, 2007 07:06 |