source term that stays constant over outerCorrectors of pimple loop
Dear all,
My transient compressible flow calculation requires addition of random disturbances to the boundary layers of a nozzle at a particular location. The way I tried to do it is 1) create a cellSet of the boundary cells at the location. 2) Add random momentum source terms (disturbances) of the necessary magnitude using fvOptions active only at the aforementioned cellSet. The issue: For reasons I can't elaborate here, I need to use a pimple solver with 5 outerCorrector loops. I would like to keep my source term constant over all the 5 correctors. Unfortunately, when I tried to do so, I realized that fvOptions is called each time the U.Eqn is solved and it modifies the disturbances at each outer corrector step. My code for fvOptions is shared below Code:
codedSource The constant updating of the disturbances within a time step is not what I want and it leads to immediate blow up of the calculation. My questions: Is it possible to use fvOptions to add source terms that stay constant at a time step over all the outer correctors? It seems possible as fvOptions can access the time value. Do I have to modify my solver in order to add disturbances and solve with a pimple loop? |
All times are GMT -4. The time now is 23:10. |