0
Time control settings for a periodic bulk forcing

Hello everyone,
I want some help regarding controlDict settings.
I have a periodic bulk forcing for my model set at 50000 rad/s. So, I figured that the cycle is at 2e-5, therefore I need to time step and write data in order 1e-6 or lower.
Now, I am able to run it with these settings, but only when the endTime is 0.01 or greater. This takes a lot of my hard disk space (~175GB).
I just want to run it so that I capture data for a few cycles, like for startTime 0 to endTime 0.001 , but if I am setting endTime less than 0.01, the solver does not do anything.
I am solving for laminar flow using pimpleFoam.

Please suggest methods to fix this.

Following is my current controlDict file:

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

application pimpleFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;

endTime 0.01;

deltaT 5e-7;

writeControl adjustableRunTime;

writeInterval 5e-6;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 7;

runTimeModifiable yes;

adjustTimeStep yes;

//maxCo 5;

maxDeltaT 9e-7;

functions
{
include "wallShearStress";
}


OpenFOAM 20-05-21, 6:22 p.m. Samridh
0

Hi,

The reason why redcuing the endTime doesn't start your simulation could be that the time files from the previous run (endTime 0.01) are already present in your case directory. And since you have selected startFrom as latestTime, the solver sees that the latestTime already present in your directory is greated than the specified endTime and doesn't solve it.

You could try changing your startFrom to startTime or you could remove all the previous run files using the command foamListTimes -rm and run the simulation again with the new endTime. Either way, try to create a copy of your previous run, so that you still have that data as a backup.

Please let us know if that worked. If not we could take a look at the case files to fix them.

Regards,
Ashley

20-05-21, 6:40 p.m. ashleymelvin

Thanks for your reply Ashley,
Before my every run I actually use foamCleanTutorials in my case file to clean it up, and as you suggested, after fixing startTime I used foamListTimes -rm to clear previous run files.
The problem has not yet solved, I changed endTime to 1e-3, then on running the case I get following:

/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 8-1c9b5879390b
Exec   : mypimpleFoam
Date   : May 21 2021
Time   : 22:33:11
Host   : "samridh-GL63-8RC"
PID    : 73091
I/O    : uncollated
Case   : /home/samridh/OpenFOAM/samridh-8/run/smr4_amb
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0

PIMPLE: Convergence criteria found
        p: tolerance 1e-06
        U: tolerance 1e-06

PIMPLE: Operating solver in transient mode with 1 outer corrector
PIMPLE: Operating solver in PISO mode

Reading field p
Reading field U
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
No MRF models present
No finite volume options present
Courant Number mean: 0 max: 0
Starting time loop
End

But when I change endTime to 0.1 then the solver was working after starting time loop.

/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 8-1c9b5879390b
Exec   : mypimpleFoam
Date   : May 21 2021
Time   : 22:34:57
Host   : "samridh-GL63-8RC"
PID    : 82016
I/O    : uncollated
Case   : /home/samridh/OpenFOAM/samridh-8/run/smr4_amb
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Convergence criteria found
        p: tolerance 1e-06
        U: tolerance 1e-06


PIMPLE: Operating solver in transient mode with 1 outer corrector
PIMPLE: Operating solver in PISO mode


Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
No MRF models present

No finite volume options present
Courant Number mean: 0 max: 0

Starting time loop

Courant Number mean: 0 max: 0
deltaT = 8.33333e-07
Time = 8.33333e-07

DILUPBiCGStab:  Solving for Ux, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCGStab:  Solving for Uy, Initial residual = 1, Final residual = 8.68907e-06, No Iterations 5
DILUPBiCGStab:  Solving for Uz, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG:  Solving for p, Initial residual = 0.999999, Final residual = 0.00881613, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.0316546, Final residual = 0.000147678, No Iterations 4
time step continuity errors : sum local = 1.34875e-10, global = 4.15045e-13, cumulative = 4.15045e-13
GAMG:  Solving for p, Initial residual = 0.0800336, Final residual = 0.000503752, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.00270202, Final residual = 3.5654e-08, No Iterations 22
time step continuity errors : sum local = 3.51488e-14, global = -1.42908e-15, cumulative = 4.13616e-13
ExecutionTime = 1.41 s  ClockTime = 1 s

Courant Number mean: 1.46746e-07 max: 1.49566e-06
deltaT = 8.33333e-07
Time = 1.66667e-06

DILUPBiCGStab:  Solving for Ux, Initial residual = 0.34226, Final residual = 6.30088e-06, No Iterations 5
DILUPBiCGStab:  Solving for Uy, Initial residual = 0.735843, Final residual = 7.03418e-06, No Iterations 5
DILUPBiCGStab:  Solving for Uz, Initial residual = 0.461507, Final residual = 8.4511e-06, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.360947, Final residual = 0.0030817, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.0167637, Final residual = 7.75396e-05, No Iterations 4
time step continuity errors : sum local = 1.56596e-10, global = -9.29582e-14, cumulative = 3.20658e-13
GAMG:  Solving for p, Initial residual = 0.0454496, Final residual = 0.000262178, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.0014425, Final residual = 9.94576e-08, No Iterations 20
time step continuity errors : sum local = 2.10779e-13, global = 1.85612e-15, cumulative = 3.22514e-13
ExecutionTime = 2.28 s  ClockTime = 2 s

Courant Number mean: 2.22305e-07 max: 3.34115e-06
deltaT = 8.33333e-07
Time = 2.5e-06

DILUPBiCGStab:  Solving for Ux, Initial residual = 0.245746, Final residual = 3.67497e-06, No Iterations 5
DILUPBiCGStab:  Solving for Uy, Initial residual = 0.64668, Final residual = 6.04482e-06, No Iterations 5
DILUPBiCGStab:  Solving for Uz, Initial residual = 0.378219, Final residual = 6.84117e-06, No Iterations 4

 


21-05-21, 10:45 p.m. Samridh

Could you share the entire case files with us? You could share via any cloud drives (google drive preferrably).

Regards,
Ashley


23-05-21, 5:23 p.m. ashleymelvin

Hey Ashley,
Sorry for this delayed response, I actually figured that "writeControl adjustableRunTime;" had to be changed to timeStep and set writeInterval on basis of my total runTime.
Following controlDict settings work!
 

application     pimpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         0.0003;

deltaT          5e-7;

writeControl    timeStep;

writeInterval   1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

//adjustTimeStep  yes;

//maxCo           5;

maxDeltaT    9e-7;

functions
{
    include "wallShearStress";
}


08-06-21, 8:07 p.m. Samridh

Login to add comment


0
These time control settings for a periodic bulk forcing are perfect, and I like the information here. I am working for the best resume writing service, and I hope that I can get more information about this soon.
16-09-21, 11:32 p.m. ZaynSalvador


0
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. surgical face mask
25-09-21, 4:18 p.m. BrianaBalducci


0
What is an outstanding post! “I’ll be back” (to read more of your content). Thanks for the nudge! wheat
05-10-21, 7:38 p.m. BrianaBalducci


0
Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome! winamp torrent
16-10-21, 10:20 p.m. dirahot469


0
Thank you for providing a recent update on the concern, I look forward to reading more. drift boss
03-11-21, 2:07 p.m. odobasicyu


0
New web site is looking good. Thanks for the great effort. gaming
15-12-21, 4:58 p.m. cooking


0
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. ugly cartoons
23-12-21, 12:50 p.m. cooking


0
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. jok4d
25-12-21, 3:29 p.m. cooking


0
I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. write for us
02-01-22, 5:52 p.m. seoexpert


0
A debt of gratitude is in order for the blog entry amigo! Keep them coming... write for us
15-01-22, 4:57 p.m. seoexpert


0
This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. essay writer service
20-02-22, 3:53 p.m. cooking


0
I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. Digital Global Times
07-03-22, 1:25 p.m. seoexpert


0
Wow, What an exceptional pronounce. i found this too much informatics. it's miles what i used to be searching for for. i'd as soon as to area you that absorb keep sharing such kind of data.If realistic, thank you. Business Planers
08-03-22, 10:09 p.m. seoexpert


0
i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future.. smm panel
22-03-22, 5:19 p.m. Gordon06


0
Thank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC. guide-sportifs.fr
26-03-22, 3:48 p.m. cooking


0
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. www.puericultures-bebes.fr
26-03-22, 5:30 p.m. cooking


0
Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!! LED glow sofa furniture
27-03-22, 1:12 p.m. cooking


0
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. RSO THC Oil For Sale
21-04-22, 1:42 p.m. TALHASIDDIQUI


0
Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Buy Rick Simpson Oil Suppositories
21-04-22, 2:32 p.m. TALHASIDDIQUI


0
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. Truecaller Premium
02-05-22, 6:52 a.m. seoexpert


0
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. We Buy Houses Denver
11-05-22, 3:20 p.m. Gordon06


0
The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. family vacation spots
12-05-22, 12:45 p.m. Gordon06


0
Excellent and very exciting site. Love to watch. Keep Rocking. Buy 4 aco dmt
12-05-22, 6:25 p.m. seohammad90


0
Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting. my response
14-05-22, 1:30 p.m. seohammad90


0
Excellent and very exciting site. Love to watch. Keep Rocking. Softwareacademy.bg
16-05-22, 12:52 p.m. Gordon06


0
That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! jak koupit followers na tiktoku
21-05-22, 5:03 p.m. hammadamir90


0
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. natuzzi ex display
21-05-22, 7:31 p.m. hammadamir90


0
This is such a nice useful resource that you are supplying and also you meet the price of it away for forgive. I hero reward seeing websites that take at the value of supplying a setting useful resource for set wandering. it’s far the primeval what goes on the order of comes almost about recurring. clavierarabehub.com
22-05-22, 12:02 a.m. seoexpert


0
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. Landscaping Company Canonsburg
30-05-22, 4:16 p.m. TALHASIDDIQUI


0
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. https://onohosting.com/
30-05-22, 6:11 p.m. TALHASIDDIQUI


0
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. Katianna Stoermer Coleman
01-06-22, 2:58 p.m. TALHASIDDIQUI


0
I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. EPL news
01-06-22, 6:52 p.m. TALHASIDDIQUI


0
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. fbisd skyward
02-06-22, 5:53 p.m. Natalie12


0
Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. SEO PBN
02-06-22, 5:57 p.m. TALHASIDDIQUI


0
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. Industrial Cleaning Services Michigan
04-06-22, 3:32 p.m. Gordon06


0
Good artcile, but it would be better if in future you can share more about this subject. Keep posting. lenny face
05-06-22, 3:41 p.m. seoexpert


0
You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. fuentes del algar
07-06-22, 6:08 p.m. hammadamir90


0
Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. maillot maroc 2022 2023 pas cher
20-06-22, 3:40 p.m. hammadamir90


0
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. naija news
Oops! Looks like spam! Waiting for moderator approval.
21-06-22, 5:48 p.m. Natalie12

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


0
Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. kimono
04-07-22, 3:40 p.m. browning


Log-in to answer to this question.