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 Cross-WLF viscosity model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2021, 04:17
Default UDF for Cross-WLF viscosity model
  #1
New Member
 
Azeem
Join Date: Nov 2019
Posts: 4
Rep Power: 6
Azeem160 is on a distinguished road
Can anyone please help me to write a udf for cross-wlf viscosity model for fluent.
Azeem160 is offline   Reply With Quote

Old   October 15, 2021, 13:45
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Sure! Show how far you got, where you are stuck, and we can think about how to get further.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   October 18, 2021, 04:39
Default
  #3
New Member
 
Azeem
Join Date: Nov 2019
Posts: 4
Rep Power: 6
Azeem160 is on a distinguished road
I have written the expressions that are to be used in the UDF. Please take a look. As I have no background of C++ so I need help how to write the UDF
Attached Images
File Type: jpg 1.jpg (150.8 KB, 35 views)
File Type: jpg 2.jpg (129.1 KB, 26 views)
Azeem160 is offline   Reply With Quote

Old   October 18, 2021, 12:46
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
OK, first thing to do: see if you can find a UDF that is similar to your problem. Then you don't have to start from nothing. A good start is the Fluent manual, you should have that on your computer that has fluent.

Look in that manual for a UDF that changes viscosity.

(and forget about c++, the normal language to write in is c, not c++)
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   January 28, 2022, 05:35
Default
  #5
Member
 
Join Date: Sep 2016
Posts: 43
Rep Power: 9
diggee is on a distinguished road
Quote:
Originally Posted by Azeem160 View Post
I have written the expressions that are to be used in the UDF. Please take a look. As I have no background of C++ so I need help how to write the UDF
hi Azeem, were you able to write the UDF then? Apologies for opening an old thread, I am also stuck in the same problem
diggee is offline   Reply With Quote

Reply

Tags
fluent - udf


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
Multiphase non-Newtonian viscosity of blood mdmtramper Fluent Multiphase 3 January 22, 2021 06:09
error after implementing a new viscosity model Lee Kyun Bum OpenFOAM Running, Solving & CFD 0 January 1, 2021 17:57
Fluid turns into solid at given T (via viscosity UDF or solidifcation model?) jpina FLUENT 1 April 3, 2016 03:48
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Regarding Implementation of Hershel Bulkley Model in Viscosity correlation Pathak FLOW-3D 0 August 24, 2009 06:34


All times are GMT -4. The time now is 21:46.