From 9bb102848d337ac23224c4edabb87bb38eaacfad Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 10 Dec 2021 14:40:43 +0100 Subject: [PATCH] Improved message display --- CoreFlows/Models/src/SinglePhase.cxx | 10 ++++++++-- CoreFlows/Models/src/SinglePhaseStaggered.cxx | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CoreFlows/Models/src/SinglePhase.cxx b/CoreFlows/Models/src/SinglePhase.cxx index acf6566..759182d 100755 --- a/CoreFlows/Models/src/SinglePhase.cxx +++ b/CoreFlows/Models/src/SinglePhase.cxx @@ -49,10 +49,13 @@ SinglePhase::SinglePhase(phaseType fluid, pressureEstimate pEstimate, int dim, b _fluides[0]= new StiffenedGas(594.,_Pref,_Tref,1.6e6, 621.,3100.); //stiffened gas law for water at pressure 155 bar, and temperature 345°C } } + + _fileName = "SolverlabSinglePhase"; + PetscPrintf(PETSC_COMM_WORLD,"\n Navier-Stokes equations for single phase flow\n"); } void SinglePhase::initialize(){ - cout<<"Initialising the Navier-Stokes model"<(_nVar,0);//Not to be confused with _GravityField3d (size _Ndim). _gravite (size _Nvar) is usefull for dealing with source term and implicitation of gravity vector @@ -2729,6 +2732,9 @@ void SinglePhase::getDensityDerivatives( double pressure, double temperature, do } } void SinglePhase::save(){ + PetscPrintf(PETSC_COMM_WORLD,"Saving numerical results at time step number %d \n\n", _nbTimeStep); + *_runLogFile<< "Saving numerical results at time step number "<< _nbTimeStep << endl<(_nVar,0);//Not to be confused with _GravityField3d (size _Ndim). _gravite (size _Nvar) is usefull for dealing with source term and implicitation of gravity vector @@ -1222,6 +1222,9 @@ void SinglePhaseStaggered::getDensityDerivatives( double pressure, double temper } } void SinglePhaseStaggered::save(){ + PetscPrintf(PETSC_COMM_WORLD,"Saving numerical results at time step number %d \n\n", _nbTimeStep); + *_runLogFile<< "Saving numerical results at time step number "<< _nbTimeStep << endl<