Created
June 3, 2022 11:51
-
-
Save linjorejoy/b94e1708d3b90ec73d9adcff9c992b10 to your computer and use it in GitHub Desktop.
The User Defined Function (UDF) Code used to model the alternating velocity of air flow in the vortex generator created by a sinusoidally oscillating diaphragm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "udf.h" | |
DEFINE_PROFILE(unsteady_velocity,thread,position) { | |
face_t f; | |
real t=CURRENT_TIME; | |
begin_f_loop(f,thread) { | |
F_PROFILE(f,thread,position)=6*sin(30*t); | |
} end_f_loop(f,thread) | |
} |
References
[1] : UDF User Manual - https://www.afs.enea.it/project/neptunius/docs/fluent/html/udf/node2.htm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Info About the Code