thanks.
thus if I comment out that coeffs and use a crankNicolson .5 scheme it will be like a rhoPimpleFoam.true? but I've found it more stable than rhoPimpleFoam even when I use crankNicolson and without coeffs. whats your opinion about this method? |
if you remove the "localEuler rDeltaT", the coefficients become useless so you actually don't even need to comment them. You can still do it for safety but you also need to check in the code what is the default value (sometimes even you don't declare it, the solver takes a default value by itself).
I also found that it is more stable but I didn't compare the 2 codes. I think only the pressure file has been changed. |
these are defaults:
Code:
scalar rDeltaTSmoothingCoeff there isn't any p folder in rhoLTSPimpleFoam.it seems it uses same folder of p as rhoPimpleFoam. |
This is a C++ requirement... If you use the solver, you must create the variable and if possible initialize it in case the user made a mistake or forgot it. No matter if you use it or not, the variable must be there ! It is declared in the program so the program creates it.
As a programmer, you always try your best to give a default value to a variable to avoid any hazardous effects. Here the solver gives a default value like any other function does. For example, the k-epsilon model gives default value for the constant but you can use others if you want. The two variables are used just below there declaration: Code:
// Limit rate of change of time scale Code:
if (rDeltaTSmoothingCoeff < 1.0) Quote:
|
All times are GMT -4. The time now is 00:20. |