find min/max deltaT
I'm trying to implement the CoEuler (local timestepping) scheme in my solver but I don't think its working. As a simple check to confirm, I want to print the min/max timestep to stdout. I've included the following in main source file of my solver:
Code:
dimensionedScalar maxDt = 0.0; Code:
mySolverFoam.C: In function ‘int main(int, char**)’: I guess, the general questions is how do I find min/max timestep? Also, am I right in assuming the timestep is stored as a scalar field array, i.e. a deltaT for each cell? I'm a noob at C++ so I think this a simple question for someone in the know. |
Quote:
So what you are trying to do is calculate something like max(1). |
Quote:
|
All times are GMT -4. The time now is 00:28. |