|
[Sponsors] |
Qdot keeps all zero when using xxxFoam postProcess |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 13, 2019, 18:13 |
Qdot keeps all zero when using xxxFoam postProcess
|
#1 |
New Member
Mingyi Luan
Join Date: May 2018
Posts: 1
Rep Power: 0 |
I postprocess my resault from reactingFoam openfoam v7
1. Code:
reactingFoam -postProcess -func Qdot 2. If i modify the code by adding a fields named "Qdot" and add code "Qdot=reaction->Qdot()" in main loop, like OF v6 then use Code:
reactingFoam -postProcess -func "writeObjects(Qdot)" 3. but if I do it in run-time data processing using "#includeFunc", everything is good. How can I get the Qdot if I do not output in runtime. |
|
May 14, 2020, 10:05 |
Have you found a solution ?
|
#2 |
New Member
François
Join Date: Apr 2020
Posts: 3
Rep Power: 6 |
Hi Minguy,
I am trying to post-process results of an engine simulation (between -152CAD and 30CAD hence the starting time being -152) done with the engineFoam under OpenFOAM7. My goal is also to obtain the heat release rate using the Qdot Functionobjects. However, when I type : "engineFoam -postProcess -func Qdot", here is the error message that I recieve : Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 7-1ff648926f77 Exec : engineFoam -postProcess -func Qdot Date : May 14 2020 Time : 10:57:44 Host : "LAPTOP-6V17VGK6" PID : 276 I/O : uncollated Case : /home/francois/OpenFOAM/francois-7/run/combEngineFoam2 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create engine time Selecting engine type crankConRod Create mesh for time = -152 Selecting engineMesh layered --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times "-152" down to constant From function virtual Foam::IOobject Foam::fileOperation::findInstance(const Foam::IOobject&, Foam::scalar, const Foam::word&) const in file global/fileOperations/fileOperation/fileOperation.C at line 871. FOAM exiting It seams that some variables are only available with the solver,meaning that only run-time data processing is possible. However, my simulations are quite time consuming so I would appreciate not to do that. I am relatively new to OpenFOAM (and in C++ for that matter), have you found a way to use Qdot without doing it during run-time ? If not, could you quickly explain how to do it in run-time data processing using "#includeFunc" ? Any help is welcomed, Thanks in advance, François VdP. |
|
May 20, 2020, 19:20 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
- The error message suggests that you don't have a `points` file which is a part of the mesh definition. - I have never seen negative time, in your case it seems to be `-152`. Is there any reason? Or is it just some user defined angle (like for engines)? - Could you please check if `Qdot` is a part of `postProcess` by executing `postProcess -list`? (You don't need to run the FO during the process, but after your simulation, in principle).
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 26, 2021, 18:52 |
|
#4 |
Senior Member
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 151
Rep Power: 10 |
I have the same problem that, if I do post-processing Qdot after computation, the results are all zero when plotted in paraFoam. Any thing we are missing here? Appreciate any help.
__________________
Charles L. |
|
September 13, 2023, 07:50 |
|
#5 |
New Member
Join Date: Dec 2022
Posts: 5
Rep Power: 3 |
Hi all,
Has anyone resolved this problem? I also experienced the same problem in OF 10. I want to post-process by calculating Qdot, however, the results are 0. I use reactingFoam solver with LES and PaSR model. Thanks |
|
September 13, 2023, 11:15 |
|
#6 |
Senior Member
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 151
Rep Power: 10 |
I ended up using run-time data processing function. As written in the user guide, you include the Qdot function in functions sub-dictionary in the case controlDict file. (see OpenFOAM User Guide section 6.2.2).
__________________
Charles L. |
|
September 15, 2023, 01:47 |
|
#7 |
New Member
Join Date: Dec 2022
Posts: 5
Rep Power: 3 |
Thank you Charles for your reply.
Well, I had done that too. But, I forgot to include the function object within one of my simulations and wanted to calculate it while post-processing it. So, I guess I need to re-run my simulation haha :,) |
|
Tags |
combustion, postprocess, qdot |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
postProcess Utility: icoFoam -noFunctionObjects Why?How? | TeresaT | OpenFOAM Post-Processing | 8 | July 26, 2023 03:41 |
postProcess calculate Tdeg | jonfah | OpenFOAM Post-Processing | 2 | November 1, 2018 07:07 |
postprocess: symbol lookup error | BenAsbo626 | OpenFOAM Post-Processing | 2 | October 26, 2018 14:28 |
[ddtExtended] Extended objectFunction for postProcess application | Tobi | OpenFOAM Community Contributions | 2 | January 21, 2018 15:25 |
postProcess functionality in openFOAM 4 | bullmut | OpenFOAM Post-Processing | 23 | July 21, 2017 10:11 |