|
[Sponsors] |
May 10, 2016, 11:36 |
valve directed by pressure
|
#1 |
Member
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10 |
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. |
|
May 11, 2016, 04:28 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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. |
|
May 11, 2016, 05:08 |
|
#3 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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.
|
|
May 23, 2016, 06:07 |
|
#4 | |
Member
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10 |
Quote:
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? |
||
May 23, 2016, 08:08 |
|
#5 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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).
|
|
|
|
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 |