I would like to ask how to define a periodic piecewise function for inlet velocity in UDF.
the function can be like:
thanks a lot!
I've done this using a mix of IF statements, sin(t) and floor https://www.programiz.com/cpp-programming/library-function/cmath/floor I'll leave you to work out the maths!
I have solved this problem already~
@lytsophy Excellent. Please post the solution for others to learn from.
Thanks a lot!
the code could be like:
Ansys customers with active commercial software licenses can access the
customer portal and submit support questions. You will need your active account number to register.