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, 05:17
Default UDF for Cross-WLF viscosity model
  #1
New Member
 
Azeem
Join Date: Nov 2019
Posts: 4
Rep Power: 7
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, 14:45
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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, 05:39
Default
  #3
New Member
 
Azeem
Join Date: Nov 2019
Posts: 4
Rep Power: 7
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, 37 views)
File Type: jpg 2.jpg (129.1 KB, 26 views)
Azeem160 is offline   Reply With Quote

Old   October 18, 2021, 13:46
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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, 06:35
Default
  #5
Member
 
Join Date: Sep 2016
Posts: 43
Rep Power: 10
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
error after implementing a new viscosity model Lee Kyun Bum OpenFOAM Running, Solving & CFD 2 November 7, 2024 05:14
Multiphase non-Newtonian viscosity of blood mdmtramper Fluent Multiphase 3 January 22, 2021 07:09
Fluid turns into solid at given T (via viscosity UDF or solidifcation model?) jpina FLUENT 1 April 3, 2016 04:48
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Regarding Implementation of Hershel Bulkley Model in Viscosity correlation Pathak FLOW-3D 0 August 24, 2009 07:34


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