Get initialResidual of each space direction
Hi all,
I have a question about the initial residuals for the questions in the x, y and z direction. I can make a scalar where i get the lowest initial residuals of x,y and z like: Code:
scalar initResidual = UEqn.solve().initialResidual(); Code:
scalar initResidual_x = UEqn.solve().initialResidual().x(); |
component(initialResidual, xyz)
Hi Tobi
have a look into /src/OpenFOAM/matrices/LduMatrix/LduMatrix/SolverPerformance.C. This is the part of OpenFOAM where all the solver outputs come from. Here they use component(initialResidual, xyz). May be this is what you're looking for. Code:
for(direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++) Fabian |
Dear Fabian, thanks for the hint. Is exactly need component(finalResidual_, clot). But how to access to that value out of that function? I am not at my computer at the moment but will check it later.
|
Hi Tobi,
Have you found out a way to extract the individual components of the initialResidual()? If you make scalar initRes = UEqn.solve().initialResidual() I think you get the initial residual of the last equation solved. I need this for a transient solver I am making. Thanks, Kumar |
All times are GMT -4. The time now is 16:03. |