CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   patch option (https://www.cfd-online.com/Forums/fluent-udf/151246-patch-option.html)

adi.ptb April 7, 2015 09:46

patch option
 
hi guys
I have a little problem that hope someone could help me with,lets say we have 2 seperate tubes that are connected with a connector,i need to initialize each tubes with different pressure,the upper tube and the connector with 18 mpa and the bottom tube with 10 mpa,I used this approach,first i defined 3 zones for each tube,and initialized the whole system with 18 mpa,then i went to patch option and selected the bottom tube for the "zones to patch" and pressure for "variable" and 10mpa for "value",but when i tracked the pressure in the bottom tube the pressure was set to 18mpa instead of 10 mpa,I didnt use the mark and seperate options because of the complexibility of my geometry,can anyone help me please?thanks

`e` April 7, 2015 18:46

Are you sure you've applied the patch correctly (followed the steps in the user's guide)? It sounds like you've taken the correct steps, so it's strange the pressure is incorrect for the bottom tube.

Another way of achieving this pressure initialisation is to use the DEFINE_INIT macro (within a UDF) to create a set of initial values for your solution.

adi.ptb April 14, 2015 11:17

actually my approach was correct,monitoring the pressure was wrong,thanks anyway

kr660170 April 26, 2017 08:50

UDF Patch Coding
 
Hallo friends,
Currently i am working on Ansys fluent 17.2 for simulation of atmospheric plasma spraying. I need a help in performing a UDF coding for patches. For ex: i need to do 60 patches, ie one sec = 1 patch and so on 60 secs. I have to simulate the molten liquid particle coming form the spray gun and hits on the substrate, then it splashes and solidified. The size of my patch is x=0.25 and Y =0.25 and the size of the substrate (2D) is 0.05mm. Please help with this issue.


All times are GMT -4. The time now is 18:43.