|
[Sponsors] |
Pressure in x y and z at a point with type probes ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 25, 2022, 07:46 |
Pressure in x y and z at a point with type probes ?
|
#1 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
Hi Foamers,
I am using the type : probes , to get the pressure field at a specific point of the domain (front of a cube). I use the following code which I include in controlDict : Code:
Probes { type probes; functionObjectLibs ("libsampling.so"); probeLocations ( (30.77 28.5 5.7) (33.59 28.5 5.7) (36.39 28.5 5.7) (39.15 28.5 5.7) (41.99 28.5 5.7) (44.77 28.5 5.7) (30.77 29.9 5.7) (30.77 27.1 5.7) ); fields ( p p_rgh U ); writeControl timeStep; writeInterval 1; } I would like to have : Probe 0 : (Px Py Pz) at each time step. For P the file looks like this : Code:
# Probe 0 (30.77 28.5 5.7) # Probe 1 (33.59 28.5 5.7) # Probe 2 (36.39 28.5 5.7) # Probe 3 (39.15 28.5 5.7) # Probe 4 (41.99 28.5 5.7) # Probe 5 (44.77 28.5 5.7) # Probe 6 (30.77 29.9 5.7) # Probe 7 (30.77 27.1 5.7) # Probe 0 1 2 3 4 5 6 7 # Time 0.01 10.7422 9.9048 9.11383 8.19736 7.29158 6.52847 10.741 10.7384 0.02 1.28521 0.841686 0.624537 0.413598 0.278632 0.158449 1.23397 1.22539 0.03 0.658324 0.0997469 -0.0174502 -0.0836282 -0.155532 -0.142431 0.598483 0.584415 0.04 0.750789 0.127352 0.0405554 0.049611 -0.0688022 -0.0475112 0.711535 0.700472 0.05 0.926458 0.266654 0.165103 0.201805 0.0322193 0.0212896 0.916224 0.907715 How can I do this ? Thanks! Last edited by cfd_saad; July 25, 2022 at 11:10. |
|
July 26, 2022, 06:20 |
|
#2 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
any ideas ?
|
|
July 26, 2022, 14:53 |
|
#3 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
I did not test it, but I would try the following:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
activeBaffleVelocity boundary condition ? | om3ro | OpenFOAM Programming & Development | 10 | November 17, 2020 00:26 |
multiphaseEulerFoam/tank discharge | ves | OpenFOAM Running, Solving & CFD | 8 | December 31, 2017 15:59 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |
singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 18:18 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |