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

deltaT is getting very small on using interFoam solver

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By pbachant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2017, 12:17
Default deltaT is getting very small on using interFoam solver
  #1
New Member
 
Dhinesh_Bala
Join Date: Sep 2016
Posts: 7
Rep Power: 10
dhineshcecfd is on a distinguished road
Dear Foamers,

I am simulating a simple 3D geometry using interFoam. While running interFoam, deltaT is going upto 1e-7 but my actual deltaT is 0.01 and simulation runs for some days : ( Could anyone help me to fix this issue.? I have attached here the snap shot of mesh, U, p_rgh, alpha.water files:

alpha.water:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0;

boundaryField
{

INLET
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}

OUTLET
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

FACES
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;

}

OBSTACLES
{
type zeroGradient;
}



defaultFaces
{
type empty;
}
}

// ************************************************** *********************** //

U:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
INLET
{
type fixedValue;
value uniform (0 -0.01 0);
}

OUTLET
{
type zeroGradient;

}

FACES
{
type zeroGradient;
}

OBSTACLES
{
type fixedValue;
value uniform (0 0 0);
}


}


// ************************************************** *********************** //

p_rgh:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{

INLET
{
type zeroGradient;
}

OUTLET
{
type fixedValue;
value uniform 0;
}

FACES
{
type fixedValue;
value uniform 0;

}

OBSTACLES
{
type fixedFluxPressure;
value uniform 0;
}

}

// ************************************************** *********************** //
Attached Images
File Type: png snap.png (37.9 KB, 104 views)
dhineshcecfd is offline   Reply With Quote

Old   January 14, 2017, 23:45
Default
  #2
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14
pbachant is on a distinguished road
Try turning off the automatic time step adjustment in the controlDict first. This may cause your simulation to crash however. Are you running setFields before interFoam to get the initial alpha distribution setup?
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   January 15, 2017, 05:57
Default
  #3
New Member
 
Dhinesh_Bala
Join Date: Sep 2016
Posts: 7
Rep Power: 10
dhineshcecfd is on a distinguished road
Thanks for the reply pbachant.. I have tried turning off "adjustable run time" but my courent no became too large and simulation stopped with core dumped error (pls refer screen shot).. is there any other option to try it out?

I am not using setFields Instead I have mentioned water fields in the alpha.water file


Sent from my Nexus 4 using CFD Online Forum mobile app
Attached Images
File Type: png Screenshot from 2017-01-15 12:44:12.png (173.8 KB, 158 views)

Last edited by dhineshcecfd; January 15, 2017 at 07:50.
dhineshcecfd is offline   Reply With Quote

Old   January 15, 2017, 08:54
Default
  #4
New Member
 
Dhinesh_Bala
Join Date: Sep 2016
Posts: 7
Rep Power: 10
dhineshcecfd is on a distinguished road
Hi All,

I found the solution of the above problem. The problem was with deltaT in controlDict and it was very large when compared to my smallest element in the grid.

Thanks for your answer.
dhineshcecfd is offline   Reply With Quote

Old   January 15, 2017, 12:11
Default
  #5
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14
pbachant is on a distinguished road
What are you trying to simulate? It looks like the way you have it setup, you'll have an infinitesimally thin layer of water at the inlet, and that's it.
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   January 15, 2017, 13:07
Default
  #6
New Member
 
Dhinesh_Bala
Join Date: Sep 2016
Posts: 7
Rep Power: 10
dhineshcecfd is on a distinguished road
I am just trying to find the permeability of this geometry.. so the water is continuously flowing from inlet to outlet..I will measure pressure drop once the flow reaches steady state

Sent from my Nexus 4 using CFD Online Forum mobile app
dhineshcecfd is offline   Reply With Quote

Old   August 6, 2018, 16:29
Default
  #7
New Member
 
Charles
Join Date: Jul 2018
Posts: 2
Rep Power: 0
charlescfd is on a distinguished road
Quote:
Originally Posted by dhineshcecfd View Post
Hi All,

I found the solution of the above problem. The problem was with deltaT in controlDict and it was very large when compared to my smallest element in the grid.

Thanks for your answer.
Hello,
I am also facing the same problem. Does the smallest element mean the minimum face area or the minimum volume? Was the solution to your problem was to make the magnitude of delta T equal to minimum face area or the minimum volume?
charlescfd is offline   Reply With Quote

Old   August 18, 2018, 19:11
Default
  #8
Member
 
Join Date: Jan 2018
Posts: 34
Rep Power: 8
UchihaMadara is on a distinguished road
Am also looking at a similar problem, could you explain a little bit please!!!
UchihaMadara is offline   Reply With Quote

Old   August 19, 2018, 13:27
Default
  #9
Member
 
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8
vivek05 is on a distinguished road
Quote:
Originally Posted by charlescfd View Post
Hello,
I am also facing the same problem. Does the smallest element mean the minimum face area or the minimum volume? Was the solution to your problem was to make the magnitude of delta T equal to minimum face area or the minimum volume?
Hi,
Minimum deltaT (time_step) is based on your smallest size of grid in you mesh..if you know your minimum size of your cell you can approximately predict the deltaT based on courant no
vivek05 is offline   Reply With Quote

Old   August 9, 2022, 08:53
Default
  #10
New Member
 
wangjikang
Join Date: Apr 2022
Posts: 4
Rep Power: 4
sciFoam is on a distinguished road
Quote:
Originally Posted by vivek05 View Post
Hi,
Minimum deltaT (time_step) is based on your smallest size of grid in you mesh..if you know your minimum size of your cell you can approximately predict the deltaT based on courant no
do you leave alone the U magnitude?
sciFoam is offline   Reply With Quote

Old   September 4, 2022, 03:33
Default
  #11
New Member
 
Anthony Moris Danve
Join Date: Jul 2020
Posts: 3
Rep Power: 6
Anthony Danv is on a distinguished road
Quote:
Originally Posted by vivek05 View Post
Hi,
Minimum deltaT (time_step) is based on your smallest size of grid in you mesh..if you know your minimum size of your cell you can approximately predict the deltaT based on courant no
May you explain to me in details. I face the same problem. I run in olaFlow solver with solitary wave propagation. the smallest mesh size: 0.1 m in Z direction, Delta T = 0.1 s. Co= 0.5.
Anthony Danv is offline   Reply With Quote

Reply

Tags
interfoam, openfoam 2.3.x


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
interFoam solver - Vacuum saba_saeb OpenFOAM Running, Solving & CFD 3 October 13, 2014 11:41
can rho2 be varied in interfoam solver shash OpenFOAM Programming & Development 0 July 24, 2012 13:53
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
interFoam solver needs pdRefCell? openTom OpenFOAM Running, Solving & CFD 2 May 10, 2009 11:20
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 22:58


All times are GMT -4. The time now is 16:49.