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 thermal conductivity relation of nano fluid

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2016, 03:41
Default
  #21
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Idea: Initialize your problem, load the UDF, and (without doing any iterations) plot your thermal conductivity and viscosity. Analyze the values that you see, are they what you expect?

If you see NaN or -1e30 or 1e30, it is obviously wrong. Then, find the error in your code.
pakk is offline   Reply With Quote

Old   September 26, 2016, 08:41
Default
  #22
Member
 
NGP
Join Date: Mar 2016
Posts: 33
Rep Power: 10
ngonbadipoor@yahoo.com is on a distinguished road
Hi
thanks for your help
I have the following massages from fluent solver:


divergence detected in AMG solver: temprature -> increasing relaxation sweeps!
you may try the enhanced divergence recovery with( rpsetvar ' amg/ protective -enhanced? #t)

i attached the picture of massages.
I need your advice.
many thanksAttachment 50718
ngonbadipoor@yahoo.com is offline   Reply With Quote

Old   September 26, 2016, 08:49
Default
  #23
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Look at my message from April 21, 2016 08:41.
pakk is offline   Reply With Quote

Old   September 26, 2016, 09:39
Default
  #24
Member
 
NGP
Join Date: Mar 2016
Posts: 33
Rep Power: 10
ngonbadipoor@yahoo.com is on a distinguished road
hi
plot ?
where is this ''plot command'' for conductivity"?
is it in Result bar of fluent"?
ngonbadipoor@yahoo.com is offline   Reply With Quote

Old   September 26, 2016, 09:58
Default
  #25
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
You should know that you can show results in Fluent...

Did you never make a picture of velocity??? Did you never make a picture of pressure???

If you did not: please follow some tutorials first.
If you did: do the same, but then with viscosity in stead of velocity.
pakk is offline   Reply With Quote

Old   September 26, 2016, 11:23
Default
  #26
Member
 
NGP
Join Date: Mar 2016
Posts: 33
Rep Power: 10
ngonbadipoor@yahoo.com is on a distinguished road
1) yes. the the thermal conductivity is zero ... every where!!
and viscosity has a constant value 8.9e-4


2) when
checking the case topology...
-this case has both inlet and outlets
-pressure information is not available at the boundaries.

are these 2 issues makes any problem for my set up?
ngonbadipoor@yahoo.com is offline   Reply With Quote

Old   September 26, 2016, 11:44
Default
  #27
Member
 
NGP
Join Date: Mar 2016
Posts: 33
Rep Power: 10
ngonbadipoor@yahoo.com is on a distinguished road
Hi
this is what i try to write in my code:
ImageUploadedByCFD Online Forum1474900809.891608.jpg
the 2nd picture is what i wrote:
ImageUploadedByCFD Online Forum1474900978.125366.jpg
this code is for conductivity.
i may have some problem in the code writing
please help me
thanks
navid
ngonbadipoor@yahoo.com is offline   Reply With Quote

Old   September 26, 2016, 11:44
Default
  #28
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Your problem is the thermal conductivity. It is zero. So that is why your temperature calculation immediately goes wrong.

The problem is in your udf. It gives zero as a value. Fix that!
pakk is offline   Reply With Quote

Old   September 26, 2016, 11:47
Default
  #29
Member
 
NGP
Join Date: Mar 2016
Posts: 33
Rep Power: 10
ngonbadipoor@yahoo.com is on a distinguished road
yes Pakk
there is a problem with the code.
ngonbadipoor@yahoo.com is offline   Reply With Quote

Old   April 1, 2017, 04:02
Default
  #30
New Member
 
HASAN
Join Date: Oct 2016
Location: canada
Posts: 9
Rep Power: 10
alburkatyhasan@yahoo.com is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
I suggest you to read the manual and use its examples as a base for your code.
please can u send me the manual that help me to use CFD because i need to measure nanoparticle diameter by using CFD
alburkatyhasan@yahoo.com 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
UDF to modify inlet fluid temperature Vipul_Patel Fluent UDF and Scheme Programming 0 February 22, 2016 22:11
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 20:42
UDF for thermal conductivity ayoub1989 Fluent UDF and Scheme Programming 5 August 18, 2014 06:15
UDF to simulate an object moving in a fluid? charlestan88 Fluent UDF and Scheme Programming 0 October 25, 2013 10:37
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


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