CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Pressure in x y and z at a point with type probes ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2022, 07:46
Default Pressure in x y and z at a point with type probes ?
  #1
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
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;
		
}
The issue is that I want the total pressure in x,y and z at each point (at each time step), from what I have understood it gives the resultant of the total pressure ?

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.
cfd_saad is offline   Reply With Quote

Old   July 26, 2022, 06:20
Default
  #2
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
any ideas ?
cfd_saad is offline   Reply With Quote

Old   July 26, 2022, 14:53
Default
  #3
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
I did not test it, but I would try the following:
  1. Use the totalPressureCompressible/totalPressureIncompressible function object to get the total pressure.
  2. Add the name of the total pressure field (should be total(p)) to the fields subdictionary.
Krapf is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:58.