How do I execute solve w/in a loop over which the solved variable is changing?
I thought this would be straight forward but it is tripping me up. Any help would be appreciated.
I need to iterate a 2D (geographical space, x and y) equation for each point in wave space (say kx and ky). I thought the following would work: Code:
for (int m=0; m<nkx; ++m) A simplified version of this problem is Code:
#include "fvCFD.H" (Note that this post is an update to a post I made on 11/19) Tom |
Hi Tom,
What you are running into is a been of underlying OpenFoam thing. When you are calling Code:
fvm::ddt(T) Another detail, which affect you, is that if the old time values do not exist, then they are set equal to T itself, so as you are initialising T with 0 in the solving, you are also initialising the previous time step to 0. And it stays zero for the remaining solutions. You can find the details on old time fields in: GeometricField.C Good luck, Niels |
Niels,
Thanks for your post. It was very helpful. Looks like I have some issues to resolve. Tom |
All times are GMT -4. The time now is 08:21. |