CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to get pressure on the boundary at a certain point

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2018, 06:56
Talking how to get pressure on the boundary at a certain point
  #1
New Member
 
chen qi
Join Date: Apr 2018
Posts: 2
Rep Power: 0
chenqi is on a distinguished road
hi, Everyone.
I want to define a velocity boundary condition, the value of the velocity is relative to the pressure at a certain point, such as (x0, y0, z0). The used type of boundary condition is codeFixedValue, but i do not know how to get the value of the pressure. I am very new in C++, Can you hlep me
chenqi is offline   Reply With Quote

Old   August 3, 2018, 11:25
Default
  #2
New Member
 
Join Date: May 2018
Posts: 14
Rep Power: 8
Jeneas is on a distinguished road
I'm not sure to understand your problem but if u want to find the pressure in a point (x,y,z), you can use a probe.
(/etc/casDicts/postProcessing/probes)
Jeneas is offline   Reply With Quote

Old   August 6, 2018, 06:00
Default
  #3
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by chenqi View Post
hi, Everyone.
I want to define a velocity boundary condition, the value of the velocity is relative to the pressure at a certain point, such as (x0, y0, z0). The used type of boundary condition is codeFixedValue, but i do not know how to get the value of the pressure. I am very new in C++, Can you hlep me
A reference pressure can be set in the fvSolution Dict.

Code:
    pRefPoint            0;
    pRefValue            0;
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Reply

Tags
boundary condition p, code fixed value


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Problem with an old Simulation FrankW CFX 3 February 8, 2016 05:28
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30


All times are GMT -4. The time now is 14:27.