|
[Sponsors] |
August 1, 2013, 12:57 |
About storing 'solve' data and changing data
|
#1 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
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, 13:08 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
All GeometricFields have a member oldTime() with a copy of the data of the previous time instance.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 1, 2013, 14:22 |
|
#3 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
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, 14:37 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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. |
|
Tags |
solver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |