CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

valve directed by pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2016, 11:36
Default valve directed by pressure
  #1
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10
flo90000 is on a distinguished road
Hello

I want to write an UDF who moves a valve in function of the pressure around it. But I don't know how to do it in function of the pressure applied or if I should write a pivoting link between the valve and the support and the pressure will move the valve directly.

Thanks for your advices or help.
flo90000 is offline   Reply With Quote

Old   May 11, 2016, 04:28
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
There is no need to ask exactly the same question three times.

Edit: the two other threads have since been removed.

Last edited by pakk; May 11, 2016 at 10:19.
pakk is offline   Reply With Quote

Old   May 11, 2016, 05:08
Default
  #3
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
You could move the valve as a function of the pressure in the fluid by using the dynamic mesh (moving/deforming mesh model). Specifically, use the DEFINE_GRID_MOTION macro and displace the valve boundary nodes as a function of the local pressure (with the C_P macro). Take care to ensure a high mesh quality is conserved throughout your simulation; use deforming for small valve displacements and enable remeshing should your geometry change significantly.
`e` is offline   Reply With Quote

Old   May 23, 2016, 06:07
Default
  #4
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10
flo90000 is on a distinguished road
Quote:
Originally Posted by `e` View Post
You could move the valve as a function of the pressure in the fluid by using the dynamic mesh (moving/deforming mesh model). Specifically, use the DEFINE_GRID_MOTION macro and displace the valve boundary nodes as a function of the local pressure (with the C_P macro). Take care to ensure a high mesh quality is conserved throughout your simulation; use deforming for small valve displacements and enable remeshing should your geometry change significantly.
Hello

thanks for your answer `e`. I am a beginner in the using of UDF so I searched how to use the DEFINE_GRID_MOTION macro with the C_P macro. Is it possible to have an example?
flo90000 is offline   Reply With Quote

Old   May 23, 2016, 08:08
Default
  #5
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
The UDF manual is a good place to start learning how to code user-defined functions as they describe what each function does and also provides examples. C_P is a flow variable macro which retrieves the local cell pressure (it's not specific to the dynamic mesh). The example in the manual for the grid motion describes the deflection of a cantilever beam (start with this example and then change the dependent variable to pressure).
`e` 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
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 14:04
Modelling an initially closed valve which a fluid opens siw CFX 1 April 26, 2014 07:32
how to measure pressure drop through a valve hmasenger CFX 5 April 8, 2013 15:30
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 14:19


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