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

converting damBreak tutorial from interFoam to multiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2023, 08:17
Default converting damBreak tutorial from interFoam to multiphaseEulerFoam
  #1
New Member
 
Elia Kazemi
Join Date: Sep 2022
Posts: 14
Rep Power: 3
Elia38 is on a distinguished road
Hello all.
I am trying to convert the simple tutorial of two-phase damBreak (laminar) from interFoam solver to multiphaseEulerFoam solver and for the validation of it, I have to plot the pressure-time diagram at point B (look at the image). My problem is when I'm fining the mesh (like uploaded image), multiphaseEulerFoam solve starts to oscillate (after 0.33 second) like the image. Here are my fvSchemes and fvSolution files. What should I do? Is it because of inappropriate scheme? If yes, which of them and what scheme do you recommend?

Thank you all in advance.


Quote:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default Euler;
}

gradSchemes
{
default Gauss linear;
}

divSchemes
{
div(phi,alpha) Gauss vanLeer;
div(phir,alpha,alpha) Gauss vanLeer;

div(alphaRhoPhi,U) Gauss limitedLinearV 1;
div(phi,U) Gauss limitedLinearV 1;

"div\(alphaRhoPhi,(h|e)\)" Gauss limitedLinear 1;
div(alphaRhoPhi,K) Gauss limitedLinear 1;
div(alphaRhoPhi,(p|rho)) Gauss limitedLinear 1;

div((((alpha*rho)*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

// ************************************************** *********************** //
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
"alpha.*"
{
nAlphaCorr 2;
nAlphaSubCycles 1;

MULESCorr yes;
nLimiterIter 3;

solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-8;
relTol 0;
}

"pcorr.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0;
}

p_rgh
{
solver PCG;
preconditioner DIC;
tolerance 1e-07;
relTol 0.05;
}

p_rghFinal
{
$p_rgh;
relTol 0;
}

"(U|k|epsilon|omega).*"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
minIter 1;
}
}

PIMPLE
{
momentumPredictor no;
nOuterCorrectors 1;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
}

relaxationFactors
{
equations
{
".*" 1;
}
}

// ************************************************** *********************** //
Attached Images
File Type: jpg Mesh.jpg (166.9 KB, 7 views)
File Type: jpg Point B.jpg (37.7 KB, 6 views)
File Type: jpg pressure-time diagram.jpg (56.1 KB, 13 views)
Elia38 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
Miscibility in interFoam tutorial (eulerianInjection) EdgarRey OpenFOAM Running, Solving & CFD 0 August 21, 2022 21:48
I need the grid file for dambreak tutorial please baker FLUENT 8 February 19, 2019 02:15
Help on interFoam writeControl in damBreak tutorial asaha OpenFOAM Running, Solving & CFD 1 February 2, 2009 07:36
FoamX refuses to open an interFoam tutorial case vrecha OpenFOAM Pre-Processing 5 March 12, 2008 12:36
Estimating of time step in dambreak tutorial CFD researcher FLUENT 0 January 13, 2008 06:27


All times are GMT -4. The time now is 20:36.