TAGGED: ansys-fluent, boundary-conditions, cfd, transient, udf
-
-
July 14, 2021 at 12:11 pm
harry93
SubscriberHello CFD clan,
I am working on patient specific geometry. I have the waveform (attached) , from which I want to create a UDF and use it as my inlet BC. In the waveform, I want to use mass inflow and time as parameters. I have tried using transient profile by creating .txt file but I want to explore more on UDF. Can anyone let me know, how can I use this waveform and create a UDF from this.
Thank you
July 14, 2021 at 12:25 pmRob
Forum ModeratorDEFINE_PROFILE and there's an example in the UDF manual. You may find you need 2-3 polynomial equations to get a good fit on the above data, so IF will be needed. I'd also look up the C function "floor".
July 15, 2021 at 4:19 amharry93
SubscriberHello rob,
How do I extract the polynomial equation for this sinusoidal waveform. Can you help me with some examples ?
Thank you
July 15, 2021 at 6:41 amaitor.amatriain
SubscriberYou can take n points from the plot, and then obtain a polynomial of order n-1 after solving a linear system, but this doubt is not related to the use of ANSYS Fluent.
July 15, 2021 at 9:05 amAmine Ben Hadj Ali
Ansys EmployeeYou can make a regression using Python or even using Excel and from there you might the polynomials. if you have the data as table data you might just it directly as Transient Table :)
July 23, 2021 at 4:33 amharry93
SubscriberHello DrAmine,
In case of using UDF and transient table, which one gives the accurate results ? Does using transient table decrease the accuracy of my results ?
July 23, 2021 at 6:29 amAmine Ben Hadj Ali
Ansys EmployeeBoth will depend on the number of data points and the time steps you are using. Transient Table is accurate enough if it does contain enough frames.
July 23, 2021 at 9:04 amharry93
Subscriberok got it
Thank you so much DrAnime.
July 23, 2021 at 10:50 amAmine Ben Hadj Ali
Ansys EmployeeWelcome! But DrAnime does not sound healthy ! :)
July 23, 2021 at 3:44 pmRob
Forum ModeratorYou have been looking quite drawn lately.....July 23, 2021 at 4:09 pmharry93
SubscriberHaha.. Noted !Viewing 10 reply threads- The topic ‘How to create a UDF for fluent from sinusoidal waveform’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
2778
-
965
-
841
-
599
-
591
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.