CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for linear PTT model implementation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2011, 11:35
Default UDF for linear PTT model implementation
New Member
Join Date: Jan 2011
Location: Curitiba, Brazil
Posts: 4
Rep Power: 15
dpitz is on a distinguished road

I've been using Polyflow to perform simulations of a PTT fluid in axisymmetric geometries. My problem is that Polyflow has only the exponential PTT model implemented, and I would like to perform simulations using the linear PTT model, in order to compare my results with some data that I have from some authors.

My first attempt was to create an UDF for the eps parameter, in order to eliminate the exponential term from the constitutive equation of the exponential PTT model.

Here is the line from my UDF where I rewrite the eps parameter:

(bind ?R (* ?n0 (/ 1 (* ?lbd ?tr)) (log (+ 1 (* ?lbd ?reps ?tr (/ 1 ?n0))))))
where R is the modified eps paramater (that's the parameter responsible for "transforming" the exponential ptt model into the linear ptt model), n0 is the zero shear-rate viscosity, lbd is the relaxation time, reps is the "real" eps parameter and tr is the trace of the stress tensor.

I've tested my UDF file in qa.exe, and it works fine.
Unfortunately, I couldn't obtain any good results from my simulations using this UDF; most of them diverge, and some converge to a wrong result (I have only simulated cases of low Reynolds and Deborah numbers).
I think the difficulty to obtain convergency is due to the presence of the log term, but I couldn't find another way to do what I need.

I hope someone have an alternative suggestion to implement the linear PTT model in Polyflow, or an explanation for the instability of the numerical solutions using the UDF that I've created.

Thanks in advance!
dpitz is offline   Reply With Quote

Old   February 4, 2011, 10:08
Senior Member
Amir's Avatar
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
I also want to simulate viscoelastic flow . I think OpenFOAM is more powerful than polyflow isn't it ?
Amir is offline   Reply With Quote


linear ptt model, polyflow, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 VOF model on Fluent baechtel Fluent UDF and Scheme Programming 7 January 20, 2016 18:13
Problem with udf radiation model in 2d combustion model..???? shshiva17 FLUENT 0 July 28, 2009 09:44
UDF for Herschel-Bulkely model emad Fluent UDF and Scheme Programming 5 July 20, 2009 08:16
Real gas model with UDF Ed FLUENT 4 September 18, 2003 10:42
A reference on implementation of Spalart-Alam. Turbulence Model? Mohammad Kermani Main CFD Forum 2 December 26, 1999 02:56

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