Dear Thomas,

Thank you for your response and your hint. I am clear now!

Have a nice day.

Mai


On 30.11.2016 08:23, Thomas Fetzer wrote:
Hi Mai,

it depends, when you print this->timeManager().time(). In your case, you have to add this->timeManager().timeStepSize(). Although your Newton has already converged the time is updated after problem_->writeOutput() is called, see timemanager.hh.

Kind regards,
Thomas

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dipl. Ing. Thomas Fetzer
Institut für Wasser- und Umweltsystemmodellierung (IWS)
Lehrstuhl für Hydromechanik und Hydrosystemmodellierung
Universität Stuttgart, Pfaffenwaldring 61, 70569 Stuttgart
Email: thomas.fet...@iws.uni-stuttgart.de
Telefon: 0049-711-685-60103 ** fax: 0049-711-685-60430
http://www.hydrosys.uni-stuttgart.de
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Am 11/29/2016 um 03:29 PM schrieb Trung Hieu Mai:
Dear Dumux,

Recently, I discovered the value of this->timeManager().time() in void
addOutputVtkFields() always 1 time step before as in VTK output. Is it a
bug in Dumux?

More detail: During comparing a time dependent analytical solution with
a Dumux simulation, I have added an anaSol variable in
addOutputVtkFields(). The variable anaSol is calculated as a function of
time which called by  this->timeManager().time(). In the results, I
found some lagging between anaSol and simulation result. Printing out
the value from this->timeManager().time(), I found that the time is
always 1 time step before as in VTK (Ex: with time step 810s, the time
in VTK results are 0, 810, 1620...and the this->timeManager().time()
returns value: 0, 0, 810 respectively)

Best wishes,

Mai

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to