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

How to implement bulk viscosity in Navier stokes eqn using UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2022, 06:02
Default How to implement bulk viscosity in Navier stokes eqn using UDF?
  #1
Member
 
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6
Siba11 is on a distinguished road
Hello everyone,
I'm trying to implement the bulk viscosity term in the X-momentum equation using a UDF in FLUENT.
From my understanding of the UDF manual, the best way to go about it is to model the bulk-viscosity term as a "source" term.
So I worked out the source term and wrote a small code for it (please find the attached PDF for the code.)

I then started FLUENT and compiled my UDF. It showed no errors.

However, when I start the calculation, the 'continuity' & 'X-velocity' residuals blow up and the calculation stops. This means there's some problem with the code or my source term.
I will appreciate any help on this matter.

Sincerely,
Sibasish
Attached Files
File Type: pdf Source_term UDF.pdf (127.4 KB, 7 views)
Siba11 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
Viscosity UDF works when interpreted, Doesn't when compiled? bloodflow Fluent UDF and Scheme Programming 4 April 11, 2019 09:06
Bulk Viscosity Database pflaume Main CFD Forum 5 February 5, 2019 15:07
Bulk Viscosity Tobi OpenFOAM 0 January 18, 2017 16:36
ILU for Navier stokes problems Raju Main CFD Forum 5 July 29, 2006 14:15
implementation of Bigham viscosity by UDF Bob FLUENT 0 February 28, 2002 08:24


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