|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14 ![]() |
Hi everyone,
I am running a gas jet penetrating into a liquid bath. I set the boundary condition on inlet as fixedValue (uniform (0 0.1 0))for velocity (at 0/U) and ran my case for 5s. Now I have changed my inlet velocity to 0.25. the problem is I want to monitor the inflow/outflow rate. I know at the end of the simulation I can use patchIntegrate to calculate the flow rate at inlet/outlet but I am wondering if I can do that during the run inside the controlDict and write them into a file so that I can check it and plot it! I am not sure if there is any simillar post respect to this, I couldnt find it but if anyone knows I appreciate to give me a link or maybe explain how to do it. tanx |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Hi,
The faceSource functionObject can do the monitoring: Code:
FlowRateInlet { type faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl timeStep; log false; valueOutput true; source patch; sourceName inlet; operation sum; fields ( phi ); surfaceFormat null; } Regards, Tom |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14 ![]() |
tanx Tom
now I can monitor my inflow-outflow while running. I am wondering if you can help me with one other thing. I want to monitor the pressure at certain coordinate. I have a experimental results and I want to save the pressure at a certain coordinate into a file. I am currently using the experimental results for validation of my model so I am wondering how I can save pressure at certain coordinate the same as the inflow-outflow. appreciate your help. /Reza |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
|
Hi Reza,
You can use the probes functionObject. Please have a look at this page: OpenFOAM source guide and click on post-processing for more functions like this. Many also have examples, will be a lot quicker than asking on the forum. Regards, Tom |
|
![]() |
![]() |
![]() |
Tags |
boundary condition u, latesttime, openfoam, run from latesttime |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Elastic or Plastic Deformations in OpenFOAM | NickolasPl | OpenFOAM Pre-Processing | 36 | September 23, 2023 08:22 |
How to export time series of variables for one point? | mary mor | OpenFOAM Post-Processing | 8 | July 19, 2017 10:54 |
To change temperature in mass flow inlet boundary condition per iteration | ajinkya201991 | FLUENT | 1 | July 11, 2014 11:29 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 15:33 |