|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31 ![]() |
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 17:51 |