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

UDF for linear PTT model implementation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 25, 2011, 12:35
Default UDF for linear PTT model implementation
  #1
New Member
 
Join Date: Jan 2011
Location: Curitiba, Brazil
Posts: 4
Rep Power: 6
dpitz is on a distinguished road
Hello,

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:

Code:
(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, 11:08
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
I also want to simulate viscoelastic flow . I think OpenFOAM is more powerful than polyflow isn't it ?
Amir is offline   Reply With Quote

Reply

Tags
linear ptt model, polyflow, udf

Thread Tools
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 On
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 6 February 19, 2013 01:56
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 03:56


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