SLIDE 28 Outline Introduction The chtMultiRegionFoam solver Loop modification Test the new solver Pressure coupled B.C. Summary and The second approach
Implementation of multiple deltaTs to the multi-region solver
//To write the time step variables in the log file. Info << "RunTime-solidRegionRunTime: " << runTime.value()-solidRegionRunTime << nl << "RunTime, solidRegionRunTime, solidRegionDeltaTRef:" << nl << runTime.value() << ", " << solidRegionRunTime << ", " << solidRegionDeltaTRef << endl; //To check if the solid solver is to be run: if(runTime.value()-solidRegionRunTime > solidRegionDeltaTRef) { //set the solidRegionRunTime as current runTime and //store it in the variable for the next comparison solidRegionRunTime = runTime.value(); forAll(solidRegions, i) { Info<< "\nSolving for solid region " << solidRegions[i].name() << endl; #include "setRegionSolidFields.H" #include "readSolidMultiRegionPIMPLEControls.H" #include "solveSolid.H" } } }
Run wmake.
Yuzhu Pearl Li Implementation of multiple deltaTs based on chtMultiRegionFoam 2016-12-5 28 / 38