]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Improved message display
authormichael <michael@localhost.localdomain>
Fri, 10 Dec 2021 13:40:43 +0000 (14:40 +0100)
committermichael <michael@localhost.localdomain>
Fri, 10 Dec 2021 13:40:43 +0000 (14:40 +0100)
CoreFlows/Models/src/SinglePhase.cxx
CoreFlows/Models/src/SinglePhaseStaggered.cxx

index acf6566f731c9bf9d459049869d27a8711dd10b5..759182d5bbb57a7e5295e3ef7733e042148c917e 100755 (executable)
@@ -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"<<endl;
-       *_runLogFile<<"Initialising the Navier-Stokes model"<<endl;
+       cout<<"\n Initialising the Navier-Stokes model\n"<<endl;
+       *_runLogFile<<"\n Initialising the Navier-Stokes model\n"<<endl;
 
        _Uroe = new double[_nVar];
        _gravite = vector<double>(_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<<endl;
+
        string prim(_path+"/SinglePhasePrim_");///Results
        string cons(_path+"/SinglePhaseCons_");
        string allFields(_path+"/");
index 0c5af4c554611c112fde9ccd230b2cf4931dba03..a9119065bc7ca1774ebc497cd5577d8c44ee1331 100755 (executable)
@@ -58,8 +58,8 @@ SinglePhaseStaggered::SinglePhaseStaggered(phaseType fluid, pressureEstimate pEs
        }
 }
 void SinglePhaseStaggered::initialize(){
-       cout<<"Initialising the Navier-Stokes model"<<endl;
-       *_runLogFile<<"Initialising the Navier-Stokes model"<<endl;
+       cout<<"\n Initialising the Navier-Stokes model\n"<<endl;
+       *_runLogFile<<"\n Initialising the Navier-Stokes model\n"<<endl;
 
        _Uroe = new double[_nVar];
        _gravite = vector<double>(_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<<endl;
+
        string prim(_path+"/SinglePhaseStaggeredPrim_");///Results
        string cons(_path+"/SinglePhaseStaggeredCons_");
        prim+=_fileName;