Monitor Total Pressure in a running simulation using functionobjects
Hi,
I'm new to Open Foam, so probably the solution of my problem will be really simple for other user but I couldn't find anything about this in the forum. I'm running a simulation of something similar to a pipe in simpleFoam ( OpenFoam 2.2.0). I'd like to monitor the areaAverage of the total pressure on the outlet boundary as a parameter to judge when the simulation reaches a good convergence. I'm doing the same for the massflowrate with a functionobject and it works fine but when I try to do it using the new pressureTools I got this warning: Code:
--> FOAM Warning : this is my control dictionary function: Code:
functions Ale |
anybody can help me?
Did I do something wrong? |
Greetings CFD-Cat,
Mmm... this looks sort-of familiar... OK, 2 details:
Beyond this, I need an example case to test this for myself. Best regards, Bruno |
I added the quote but it gives the same error. :-(
|
Hi CFD-Cat,
I finally managed to have a look into the case you sent me and it was fortunately rather simple! A bit of a introduction - the idea behind "()" and "{}" is this:
Code:
functions Code:
functions Bruno |
Hi CFD-Cat,
To answer the question you've asked via private message, the full "functions" entry should look something like this: Code:
functions Best regards, Bruno |
Hi,
I'm sorry to restart this old discussion but since when I installed OF2.2.2 instead of OF2.2.0 I'm facing a new problem with pressureTools function object. I can't understand the reason why when i try to calculate the total(p) the output reports only the BC like if no internal field has been calculated. It I try to calculate the static(p) I got the same problem, while for the total(p)_coeff I got a field distribution(maybe wrong) even setting the pInf =0. Code:
/*--------------------------------*- C++ -*----------------------------------*\ Except for this sentence that sincerely I don't understand completely: "Where the function generates a field, e.g. wallShearStress, pressureTools, yPlusRAS, etc., the field is now stored on the mesh database so that it is available for further post-processing. " from http://www.openfoam.org/version2.2.2/ |
Hi CFD-Cat,
I need more information in order to be able to help you, namely:
Bruno |
I'm out of office. On monday I'll try the tutorial and I'll send you the file.thank you for your help
|
Hi wyldckat,
I reproduced it with the tutorial Tjunction. This is my controlDict Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Best regards, Ale |
Hi Ale,
I finally managed to look into this. This should work: Code:
pressure // user-defined name of function object entry Code:
rhoName rhoInf; Although a bit cryptic, this can be spotted if we look at the source code: https://github.com/OpenFOAM/OpenFOAM...reTools.C#L263 Quote:
Bruno |
Thank you very much Bruno. Now it works! I really appreciate your help.
I didn't check it because in OF2.2.0 it works fine without Code:
rhoName rhoInf; |
Monitor Total Pressure in a running simulation using functionobjects
For people looking for the same functionality in OpenFOAM version 6
Code:
functions |
Does anybody know how to do that in OpenFOAM-1906 and 1912? Does not seem to accept "pressure" as a function type. "unknown function type pressure"
Solved: needed to add "libfieldFunctionObjects.so" in the libs-section on top of "controlDict" to make it work. |
All times are GMT -4. The time now is 04:40. |