CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > 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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2011, 08:02
Default read a file .txt with nurecial values of time and acceleration
  #1
New Member
 
Elias Paez
Join Date: Nov 2011
Location: Madrid
Posts: 25
Rep Power: 14
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

Reply

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


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