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

Udf for boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pakk
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2019, 08:20
Default Udf for boundary condition
  #1
New Member
 
Nitesh Kumar
Join Date: May 2016
Posts: 17
Rep Power: 10
dexter is on a distinguished road
Hi
Is there a way to change uniform wall temperature condition to uniform heat flux boundary condition using UDF based on the value of residuals?
i.e. if my solution converges for uniform wall temperature condition then i want to change the boundary condition to uniform heat flux boundary condition.
Its a transient simulation.
Thanks
dexter is offline   Reply With Quote

Old   April 4, 2019, 11:46
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Is there any reason why you would want to do this?


In a steady state calculation, I could understand it. You want to do a simulation with uniform wall temperature, if it converges then save the result, change the BC and run again.


But in a transient calculation, it makes no sense. Why would you change your BC after 3 seconds if it converges well, and after 6 seconds if it converges slower?
dexter likes this.
pakk is offline   Reply With Quote

Old   April 4, 2019, 23:33
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
it is possible.
Actually you don't need UDF for this, scheme language and TUI commands are enough
1. get residual value
2. change boundary condition

using scheme+UDF is also possible

best regards
dexter likes this.
AlexanderZ is offline   Reply With Quote

Old   April 5, 2019, 01:47
Default
  #4
New Member
 
Nitesh Kumar
Join Date: May 2016
Posts: 17
Rep Power: 10
dexter is on a distinguished road
Quote:
Originally Posted by pakk View Post
Is there any reason why you would want to do this?


In a steady state calculation, I could understand it. You want to do a simulation with uniform wall temperature, if it converges then save the result, change the BC and run again.


But in a transient calculation, it makes no sense. Why would you change your BC after 3 seconds if it converges well, and after 6 seconds if it converges slower?
Thanks for your reply.
I want to study the effect of sudden change in boundary condition.
Also, will it have same effect if i change the boundary condition manually or using UDf?
dexter is offline   Reply With Quote

Old   April 5, 2019, 01:49
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
same effect

best regards
AlexanderZ is offline   Reply With Quote

Old   April 5, 2019, 01:56
Default
  #6
New Member
 
Nitesh Kumar
Join Date: May 2016
Posts: 17
Rep Power: 10
dexter is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
it is possible.
Actually you don't need UDF for this, scheme language and TUI commands are enough
1. get residual value
2. change boundary condition

using scheme+UDF is also possible

best regards
Can you elaborate a little bit about how to proceed?

Thanks
dexter is offline   Reply With Quote

Old   April 5, 2019, 03:02
Default
  #7
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Is there a way to change uniform wall temperature condition to uniform heat flux boundary condition using UDF based on the value of residuals?
what residuals are you talking about?

best regards
AlexanderZ is offline   Reply With Quote

Old   April 5, 2019, 07:37
Default
  #8
New Member
 
Nitesh Kumar
Join Date: May 2016
Posts: 17
Rep Power: 10
dexter is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
what residuals are you talking about?

best regards
Actually, I should have said based on flow time not residual.
dexter is offline   Reply With Quote

Old   April 10, 2019, 12:04
Default
  #9
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Then you should use journal files.
Find the command to run the simulation for 4 seconds.
Find the command to change the BC.
Find the command to run the simulation for 3 more seconds.


Put these commands in a journal file, and let Fluent run the journal file.


No need for UDFs.
pakk is offline   Reply With Quote

Old   February 22, 2022, 03:37
Default
  #10
New Member
 
dhiraj
Join Date: Nov 2021
Posts: 6
Rep Power: 5
dhiraj kumar is on a distinguished road
hello everyone. I have a solar receiver in which at outer surface of the receiver i have to apply non-uniform heat flux [cosine profile - q(θ) = qnet ·
cos θ(−90 ≤ θ ≤ 90)] with radiation and convection losses to ambient. can anyone give me the idea for writing the UDF for ansys fluent for this condition. thanks !
dhiraj kumar 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
How to setup the wall boundary condition of maxwell_slip_velocity_x_full UDF? ailee0303 Fluent UDF and Scheme Programming 5 November 12, 2024 22:37
write a UDF to give a velocity boundary condition at an interior face Tharanga Fluent UDF and Scheme Programming 19 August 5, 2018 05:29
Define_profile UDF for Transient Heat flux boundary condition Amoljoshi Fluent UDF and Scheme Programming 2 June 20, 2018 22:55
map outlet boundary profile as an inlet condition using UDF Daniel_Khazaei Fluent UDF and Scheme Programming 2 June 20, 2016 12:53
udf for dpm boundary condition ucmaen Fluent UDF and Scheme Programming 0 July 15, 2014 14:33


All times are GMT -4. The time now is 20:05.