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

Outlet Pressure BC dependent from velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2019, 14:14
Default Outlet Pressure BC dependent from velocity
  #1
New Member
 
Nicola D'Ettole
Join Date: Nov 2018
Posts: 12
Rep Power: 7
ing.nicola.dettole is on a distinguished road
hI,
is possible to assign Pressure value on a patch based on a user-defined function of velocity in this patch ?


p at outlet patch = f_user (U at outlet patch)...
ing.nicola.dettole is offline   Reply With Quote

Old   December 20, 2019, 04:13
Default
  #2
New Member
 
Frédéric MR
Join Date: Jun 2019
Posts: 18
Rep Power: 6
FM_Stiral is on a distinguished road
Hi Nicola,


Yes it is. You need to install swak4foam and in the P file (0 directory) in outlet patch part, set :



type groovyBC;
valueExpression "f(U)";
value your initial value;


And in your controlDict file, add


libs (
"libOpenFOAM.so"

"libSimpleSwakFunctionObjects.so"

"libswakFunctionObjects.so"

"libgroovyBC.so"
)


(not sure for all librarie adds but it works for me).


The next problem will be the convergence (my current step...)


Sincerly
FM_Stiral 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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Bearing simulation outlet pressure Tierce CFX 1 October 31, 2018 16:00
Pressure Boundary Inlet and Outlet AS_Aero CFX 5 March 28, 2018 10:46
The method on dealing with velocity in static pressure outlet boundary condition mona.li CFX 2 September 30, 2017 01:33
changing velocity (outlet) BC to pressure outlet majid_kamyab FLUENT 7 October 22, 2014 11:50


All times are GMT -4. The time now is 01:23.