# About storing 'solve' data and changing data

 Register Blogs Members List Search Today's Posts Mark Forums Read

 August 1, 2013, 11:57 About storing 'solve' data and changing data #1 Senior Member   Jian Zhong Join Date: Feb 2012 Location: Birmingham Posts: 109 Rep Power: 6 Dear Foamers, How does 'solve' store old values? What is the difference between A and B? It seems that Method 'A' does not work. Method A: --- changing the value of 'C' here----- solve ( fvm::ddt(C) + fvm::div(phi, C) - fvm::laplacian(kappaEff, C) == SourceC ); Method B:--- changing the value of 'C' here----- My best regards, Jian

 August 1, 2013, 12:08 #2 Senior Member     Anton Kidess Join Date: May 2009 Location: Delft, Netherlands Posts: 1,163 Rep Power: 20 All GeometricFields have a member oldTime() with a copy of the data of the previous time instance. zxj160 likes this. __________________ *On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. *Join the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oHPxcPqde7HtA2

 August 1, 2013, 13:22 #3 Senior Member   Jian Zhong Join Date: Feb 2012 Location: Birmingham Posts: 109 Rep Power: 6 Thanks. If I want to change 'C' by assignment after completing 'solve', then whether the GeometricFields of 'C' will be changed corresponding to the assignment. Thanks, Jian

 August 1, 2013, 13:37 #4 Senior Member     Anton Kidess Join Date: May 2009 Location: Delft, Netherlands Posts: 1,163 Rep Power: 20 What exactly are you trying to achieve? Why do you want to change C, and how? __________________ *On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. *Join the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oHPxcPqde7HtA2

 Tags solver

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules