Postprocess: sampleDict works but creates no output folder
Hi everyone,
for postProcessing, I would like to sample the pressure along a line. I have created the following sampleDict in the system folder: Code:
/*--------------------------------*- C++ -*----------------------------------*\ To run the code, I use postProcess -func sampleDict. It runs without errors, but no output folder is created. I have read similar issues, but they could be solved by adding libs ("libsampling.so");. So in my case, that is not the issue. Any ideas? I am using openFoam 5 btw. |
What is the name of the file? is it sampleDict or something else?
|
The name is sampleDict, yes.
|
The name is sampleDict, yes.
|
Could you post the log file when you run the function object?
Code:
postProcess -func sampleDict | tee log |
Yes of course. Unfortunately, I will only be able to do that on sunday.
But there wasnt a single error. It run for every time step, without errors. Really weird. |
Hi again and sry for the delay, I couldnt make it yesterday.
Here is the log: Code:
/*---------------------------------------------------------------------------*\ Ignore the warning, they are because of a self compiled boundary condition which is not compiled on this particular computer. On the other one its the same, just without the warning. |
Hi,
What about this warning? Code:
--> FOAM Warning : Looks like there is a typo in your controlDict. Yann |
Hi Yann,
you are absolutely right, my bad. Here is the right one: Code:
/*---------------------------------------------------------------------------*\ |
Doesn't it solve your problem?
This part of your log file is different in the last log file compared to the previous one: Code:
Reading fields: |
That's what is weird about it. It does something, but I get no postProcessing folder with the data.
|
Can you try running it this way?
Code:
yourSolver -postProcess -func sampleDict (or the parallel equivalent, if you are running your case in parallel) |
I also tried this one and it did not work either.
But by lucky conincidence, I just found the problem. Including: Code:
FoamFile at the beginning solves the problem and an output file with the data is created. |
I didn't notice you didn't have a full header in your sampleDict but I would never have suspected if would behave this way. I would rather have thought you would just get an error.
Glad you could solve your problem, this is good to know! Yann |
Yeah same here.
Next time I will just copy and paste it from a tutorial like I usually do, then this mistake wouldnt even had happened haha. |
All times are GMT -4. The time now is 23:02. |