CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

UFD Unsteady Pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2022, 08:39
Exclamation UFD Unsteady Pressure
  #1
New Member
 
Aviral Raj
Join Date: Aug 2021
Posts: 2
Rep Power: 0
weezyvi is on a distinguished road
Hey,
I’ve been told to write the code for UDF unsteady pressure with frequency between 300-500 hz.
The code I am writing is -
#include
"udf.h"
DEFINE _PROFILE (unsteady pressure, thread, position)
{
face tf;
real t = CURRENT TIME;
begin f_loop(f, thread)
F PROFILE(f, thread, position) = 3209122.0 + 5.0*sin(10.*t);
}
end f loop(f,thread)
}

I want to know how can I include frequency in this and this code gives multiple errors when I use pressure value as 3209122. On the other hand when I use value such as 101325 it runs.
Please help me out with the pressure value and frequency.

Last edited by weezyvi; June 24, 2022 at 10:05.
weezyvi is offline   Reply With Quote

Reply

Tags
ansys 13 work bench, fluent, fluent - udf, ufd


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
Pressure fields in FOAM, p field, total pressure, etc. Tobi OpenFOAM Post-Processing 9 March 25, 2022 02:33
Update Pressure values for unsteady, multiphase, parallel - not updating properly dhaya400 Fluent UDF and Scheme Programming 6 June 7, 2021 02:43
viscosity udf don't use correct temperature and strain rate rezvani Fluent UDF and Scheme Programming 8 May 27, 2021 06:40
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 15:42
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 13:41


All times are GMT -4. The time now is 17:32.