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

feature or bug - deltaT issue

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2012, 12:11
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
You can open another bug report with a feature request
__________________
wyldckat is offline   Reply With Quote

Old   January 9, 2012, 18:11
Default
  #22
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
You can re-open the bug report I think (scroll down the page).
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   January 10, 2012, 04:38
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by alberto View Post
You can re-open the bug report I think (scroll down the page).
Nope, only the original poster can re-open his/her own bug report. And I've reported before about this and... see for yourself: http://www.openfoam.com/mantisbt/view.php?id=228
__________________
wyldckat is offline   Reply With Quote

Old   January 10, 2012, 09:51
Default
  #24
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Nope, only the original poster can re-open his/her own bug report. And I've reported before about this and... see for yourself: http://www.openfoam.com/mantisbt/view.php?id=228
Hmm. I add this as a reason to prefer bugzilla to mantis ;-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   January 25, 2012, 19:57
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alberto and Daniel,

Quote:
Originally Posted by alberto View Post
Hmm. I add this as a reason to prefer bugzilla to mantis ;-)
I think mantis has an option for this... but I'm not 100% certain about this

By the way, to close the loop on this thread, a proper solution has been implemented for the issue that lead to the creation of this thread! Seen here: http://www.openfoam.com/mantisbt/view.php?id=382#c950 - the aforementioned commit is this one: https://github.com/OpenFOAM/OpenFOAM...e6cf8aa2c9bf39

Apparently the solution was a lot simpler than I first deduced... I thought there would be far more logical/cyclic issues with these variables, but I didn't look deep enough into an actual solution

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 25, 2012, 20:19
Default
  #26
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
It's good to see Henry's revision.

Code:
    if (timeDict.readIfPresent("deltaT", deltaT_))

    // Read and set the deltaT only if timestep adjustment is active

    // otherwise use the deltaT from the controlDict

    if (controlDict_.lookupOrDefault<Switch>("adjustTimeStep", false))

     {
        deltaTSave_ = deltaT_;
        deltaT0_ = deltaT_;

        if (timeDict.readIfPresent("deltaT", deltaT_))
        {
            deltaTSave_ = deltaT_;
            deltaT0_ = deltaT_;
        }
     }
To change deltaT, "Go to controlDict" is a user's most natural selection.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   November 1, 2012, 03:19
Default What would be the reason for this
  #27
Member
 
Suranga Dharmarathne
Join Date: Jan 2011
Location: TX, USA
Posts: 39
Rep Power: 15
sdharmar is on a distinguished road
Hi Bruno, Daniel, Albreto and others,

I created tempPimpleFoam solver adding T field into basic pimpleFoam. And I tested it for pitzDaily tutorial case. But when I run the actual case it gave me the following error massage after running few iterations.

deltaT = 1.58835e-65
--> FOAM Warning :
From function Time:erator++()
in file db/Time/Time.C at line 1010
Increased the timePrecision from 145 to 146 to distinguish between timeNames at time 0.00166302
Time = 0.001663021666070488464861387711835050140507519245 147705078125



I could see that deltaT is keep on reducing and timePrecision value was adjusting in every timestep.

Sorry I can not attach the test case since the forum file size is very small.

Any idea would be appreciated.
Best regards,
Suranga.
sdharmar is offline   Reply With Quote

Old   October 23, 2019, 18:48
Default similar problem
  #28
Senior Member
 
Brett
Join Date: May 2013
Posts: 217
Rep Power: 14
Bdew8556 is on a distinguished road
Hey guys,

I'm getting super small time steps:
circa 1x10^-8 when I've set my deltaT to 0.001

Anyone know why its doing this?

Also does anyone have any best practice tips for getting a fireFoam simulation to run a bit faster? for example can you get by with a course mesh? any parameters in fvSchemes or fvSolution that you would recommend?

I'm aware LES solvers take a long time to solve but mine is taking a bit too long I think.

This is my fvSolution file:

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

solvers
{
"(rho|rhoFinal)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-6;
relTol 0;
};

p_rgh
{
solver GAMG;
tolerance 1e-6;
relTol 0.1;
smoother GaussSeidel;
};

p_rghFinal
{
$p_rgh;
tolerance 1e-6;
relTol 0;
};

ph_rgh
{
$p_rgh;
}


"(U|Yi|k|h)"
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-6;
relTol 0.1;
nSweeps 1;
};

"(U|Yi|k|h)Final"
{
$U;
tolerance 1e-6;
relTol 0;
};

Ii
{
solver GAMG;
tolerance 1e-4;
relTol 0;
smoother symGaussSeidel;
maxIter 1;
nPostSweeps 1;
}

G
{
solver PCG;
preconditioner DIC;
tolerance 1e-04;
relTol 0;
}

}

PIMPLE
{

nNonOrthogonalCorrectors 2;
pRefPoint (1 0 0.25);
pRefValue 84437;


momentumPredictor yes;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;

hydrostaticInitialization yes;
nHydrostaticCorrectors 5;
}

relaxationFactors
{
equations
{
"(U|k).*" 1;
"(CH4|O2|H2O|CO2|h).*" 1;
}
}

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



Followed by fvSchemes:

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

ddtSchemes
{
default Euler;
}

gradSchemes
{
default Gauss linear;
}

divSchemes
{
default none;

div(phi,U) Gauss LUST grad(U);
div(phi,K) Gauss linear;
div(phi,k) Gauss limitedLinear 1;
div(phi,Yi_h) Gauss multivariateSelection
{
O2 limitedLinear01 1;
C12H24 limitedLinear01 1;
N2 limitedLinear01 1;
H2O limitedLinear01 1;
CO2 limitedLinear01 1;
h limitedLinear 1;
};
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(Ji,Ii_h) Gauss upwind;
}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}


// ************************************************** *********************** //
Bdew8556 is offline   Reply With Quote

Old   August 8, 2020, 02:07
Default
  #29
Senior Member
 
Join Date: Jan 2019
Posts: 125
Blog Entries: 1
Rep Power: 0
Michael@UW is on a distinguished road
I have a similar question about time control when using overPimpleDyMFoam in OpenFOAM v2006. It's weird that I lose the data for the last few time steps when I try to write out data every 10 time steps.

I tried different combinations but none of them work.

Option 1:

Code:
deltaT                      0.00001028; // small time step to reduce CFL
writeControl             adjustableRunTime;
writeInterval            0.0001028;  //  every 10 time steps to save space
runTimeModifiable    yes; // changing to 'no' doe not work either
adjustTimeStep	      no;
timePrecision          10; //time precision is enough

Option 2:

Code:
deltaT                      0.00001028;
writeControl             timeStep;
writeInterval            10; 
runTimeModifiable    no; 
adjustTimeStep	      no;
timePrecision           10;
Option 2:

Code:
deltaT                      0.00001028;
writeControl        runTime;
writeInterval            0.0001028; // = 10 time steps
runTimeModifiable    no; 
adjustTimeStep	      no;
timePrecision           10;

Here is the complete controlDcit for the first one:
Code:
application     overPimpleDyMFoam;


startFrom		latestTime;

deltaT          0.00001028;

startTime		0.0073502;

endTime		0.0147004;
//0.294008


writeControl    adjustableRunTime;
writeInterval   0.0001028;
//writeControl    timeStep;
//writeInterval   10;
//writeControl    runTime;
//writeInterval   0.0001028;

purgeWrite      0;

writeFormat     binary;

writePrecision  10;

writeCompression off;

timeFormat      general;

timePrecision   10;

runTimeModifiable yes;
adjustTimeStep	no;
maxCo 2.0;
maxDeltaT 0.0001028;
Here is the time directories (first column) generated. The second column is the time difference calcualted by hand (current - previous time step). It shows the deltaT is correct. But the last one is 0.0072988 which should be 0.0073502 as set in controlDict. That means the data for the last 5 time steps are not outputed. But when I the log file shows the solver goes through all the time steps including Time = 0.00733992.

Code:
time	 time difference
0	
0.0001028	0.0001028
0.0002056	0.0001028
0.0003084	0.0001028
0.0004112	0.0001028
0.000514	0.0001028
0.0006168	0.0001028
0.0007196	0.0001028
0.0008224	0.0001028
0.0009252	0.0001028
0.001028	0.0001028
0.0011308	0.0001028
0.0012336	0.0001028
0.0013364	0.0001028
0.0014392	0.0001028
0.001542	0.0001028
0.0016448	0.0001028
0.0017476	0.0001028
0.0018504	0.0001028
0.0019532	0.0001028
0.002056	0.0001028
0.0021588	0.0001028
0.0022616	0.0001028
0.0023644	0.0001028
0.0024672	0.0001028
0.00257	0.0001028
0.0026728	0.0001028
0.0027756	0.0001028
0.0028784	0.0001028
0.0029812	0.0001028
0.003084	0.0001028
0.0031868	0.0001028
0.0032896	0.0001028
0.0033924	0.0001028
0.0034952	0.0001028
0.003598	0.0001028
0.0037008	0.0001028
0.0038036	0.0001028
0.0039064	0.0001028
0.0040092	0.0001028
0.004112	0.0001028
0.0042148	0.0001028
0.0043176	0.0001028
0.0044204	0.0001028
0.0045232	0.0001028
0.004626	0.0001028
0.0047288	0.0001028
0.0048316	0.0001028
0.0049344	0.0001028
0.0050372	0.0001028
0.00514	0.0001028
0.0052428	0.0001028
0.0053456	0.0001028
0.0054484	0.0001028
0.0055512	0.0001028
0.005654	0.0001028
0.0057568	0.0001028
0.0058596	0.0001028
0.0059624	0.0001028
0.0060652	0.0001028
0.006168	0.0001028
0.0062708	0.0001028
0.0063736	0.0001028
0.0064764	0.0001028
0.0065792	0.0001028
0.006682	0.0001028
0.0067848	0.0001028
0.0068876	0.0001028
0.0069904	0.0001028
0.0070932	0.0001028
0.007196	0.0001028
0.0072988	0.0001028 // last one dumped
By the way, the delataT in uniform/time shows consistent with that in controlDict.
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "0.0072988/uniform";
    object      time;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

value           0.00729879999999991612; // this value looks weired

name            "0.0072988";

index           710;

deltaT          1.028e-05; // same value as that in controlDict

deltaT0         1.028e-05; // same value ... but in scientific format
I hope Bruno, Alberto or some others can have a look at my problem. I have been stuck in this problem for a few days. I will add more information if needed.
Michael@UW is offline   Reply With Quote

Old   August 8, 2020, 02:34
Default
  #30
Senior Member
 
Join Date: Jan 2019
Posts: 125
Blog Entries: 1
Rep Power: 0
Michael@UW is on a distinguished road
After posting, I just found I changed the endTime during the run incorrectly which made the endTime not a multiple of writeInterval though it is a multiple of deltaT. That's why the data were not outputed.

Sorry about that!
Michael@UW 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
Feature Capture Problem brunob ANSYS Meshing & Geometry 0 July 21, 2011 05:17
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 09:27
for developers: bug or feature? akarak Siemens 0 October 22, 2009 03:47
Maybe a bug in CFX12.0 BETA? frank CFX 4 November 26, 2008 19:08
Bug or a feature of OF15 rafal OpenFOAM Bugs 5 July 25, 2008 06:25


All times are GMT -4. The time now is 01:15.