Visualize scalarCodedSource in paraFoam
I'm coding a scalarCodedSource to use with my case, and I'm trying to visualize the results in paraFoam. Is there a way to make it write the result of the calculation at each time step?
Essentially, I am making the field Code:
scalarField& qq = eqn.source(); |
Anyone? I know there has to be a way to do this.
|
Hi Jonathan,
I'm not sure, if it's the best solution, but this might work: Code:
qq += ...; |
Quote:
|
So it also doesn't create qq files in your time folders?
|
Quote:
|
Correction*
I realized that your code was printing the qq field every time step, rather than every 500 like my controlDict file specifies. That's almost certainly the cause of the slowdown, as my time step is 1e-5 and I'm running for several seconds. I guess I need to figure out how to make it write only at the same intervals as the rest of my data. |
Ah, ok, I thought you wanted to write it at each time step ;)
This should do it: Code:
if (mesh_.time().writeTime()) |
Quote:
|
All times are GMT -4. The time now is 03:29. |