|
[Sponsors] |
execFlowFunctionObjects and the noFlow option in v1706 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2017, 05:54 |
execFlowFunctionObjects and the noFlow option in v1706
|
#1 |
Member
Join Date: Mar 2009
Posts: 89
Rep Power: 17 |
Hello all,
In the past, we used execFlowFunctionObjects to calculate things like Cp or CpTot after a run had finished, often weeks later when nut, and other unecessary post processing variables had already been deleted for disk space savings. We used the noFlow option, to supress loading nut, and other variables not needed for the task at hand (say calculating Cp.) According to the help, -noFlow "suppress[es] creating flow models" We loved this! In 1706, execFlowFunctionObjects has been replaced with the postProcess function, which I bloody hate, but that's another story.... postProcess, called either alone or through the solver (simpleFoam -postProcess) doesn't seem to have the -noFlow option that execFlowFunctionObjects had. Furthermore, execFlowFunctionObjects would execute pressureTools (renamed as "pressure" in 1706, god knows why). With postProcess, I only have access to "totalPressureIncompressible," meaning I cannot call what used to be pressureTools. So it seems I cannot calculate Cp after a case has finished running? So then, my two questions are: 1.) how can I calculate Cp, and CpTot. I only see totalP possible 2.) how can I do this without nut, like with -noFlow in the past 3.) If anyone knows why execFlowFunctions, which was brilliant, was replaced by postProcess, which seems to be less featured and harder to use? |
|
July 14, 2017, 05:16 |
|
#2 |
Senior Member
|
Hi,
I understand your frustration, as the functionality changed significantly. However you can still do what you want and it is actually simplified when you know how to do it. Unfortunately there is a lack of documentation in logical places as far as I am concerned, but from the CFD Direct online user guide one can learn about command line interface postprocessing and than some trial and error usually gets me what I want. For your case you can run: Code:
postProcess -func "totalPressureIncompressible(p,U)" -latestTime Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | \\ / O peration | Version: plus | | \\ / A nd | Web: www.OpenFOAM.com | \\/ M anipulation | ------------------------------------------------------------------------------- Description Calculates the total pressure field for a case where the solver is incompressible (pressure is kinematic, e.g. m^2/s^2). \*---------------------------------------------------------------------------*/ #includeEtc "caseDicts/postProcessing/pressure/pressure.cfg" calcTotal yes; calcCoeff yes; rho rhoInf; pInf 0.0; UInf (15 0 0); pRef 0.0; rhoInf 1.2; // ************************************************************************* // Tom |
|
August 9, 2017, 09:53 |
|
#3 |
Member
Join Date: Mar 2009
Posts: 89
Rep Power: 17 |
Thanks Tom! I think it's less usable than the old way, but so is life....
Question: do you call out U and P ("totalPressureIncompressible(p,U)") in order to suppress reading excess flow variables, as was accomplished in the past with the -noFlow option? |
|
August 20, 2017, 12:47 |
|
#4 |
Senior Member
|
Sorry for the late reply, but was on vacation. I think you specify U and p because those are necessary fields for the computation, but I am not sure. You could try running with and without it and see the difference...
Regards, Tom |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|