
Hello,
I'm using the following function call to use the OpenFOAM solver.
[fea.sol.u,~,fea.vars] = openfoam( fea, 'application', 'simpleFoam', 'ddtScheme', 'steadyState', 'deltaT', 0.1, 'endTime', 20, 'tolres', 1e04, 'upwind', 'linearUpwind', 'bound', 2, 'turb', struct( 'model', 'kOmegaSST', 'inlet', [0.00322804,7.72379], 'wallfcn', 1 ),'control',true,'hax',axes(),'casedir',[pwd '\Run']);
I'm looking for a steady state solution, but my residuals are pretty high 1e3. I need to look at the max pressure and max sqrt(u^2+w^2) and see how they are changing with the number of iterations to see if they are stable and not changing to help me evaluate if the solution has converged, or is at least stable enough for my purposes. At the end of the day all I really need is the pressure drop.
I know in OpenFOAM I can set it up to store solutions however often I want, so I can inspect them while the simulation is running, but after it stops then the whole casedir is deleted, so I can't plot inspect, etc after it completes. Is there some way to prevent the deletion of the casedir? I see that I'm supposed to be able to start from a previous solution, but I can't get that to work either, because none of the previous solutions are stored.
As always thank you for your help,
Matt
