|
[Sponsors] |
June 24, 2022, 08:39 |
UFD Unsteady Pressure
|
#1 |
New Member
Aviral Raj
Join Date: Aug 2021
Posts: 2
Rep Power: 0 |
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. |
|
Tags |
ansys 13 work bench, fluent, fluent - udf, ufd |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |