CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

read a file .txt with nurecial values of time and acceleration

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

LinkBack Thread Tools Display Modes
Old   November 21, 2011, 08:02
Default read a file .txt with nurecial values of time and acceleration
New Member
Elias Paez
Join Date: Nov 2011
Location: Madrid
Posts: 25
Rep Power: 5
sicfred is on a distinguished road
Hi all!

Someone know how to make an UDF that reads a file (.txt) with numerical values of time and aceleration. I'll use the acceleration as a source term in the momentun equation.
I though to copy these values in two arrays (one for time and one for acceleration) and if the current time is between two times use a linear inerpolation to calculate the acceleration, but I don't know how to do that and, also I'm not very sure about the efficiency of this method, becouse the arrays are going to be too large (more than 2000).

thank you and excuse me for my english (I'm trying to improve)
sicfred is offline   Reply With Quote


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
Discrete acceleration in time feupes FLUENT 0 August 31, 2010 06:35
help: acceleration change wrt time rajat kumar bhuyan FLUENT 0 May 23, 2007 02:59
Dual Time Stepping CFD Student Main CFD Forum 20 October 24, 2005 15:57

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