TAGGED: ansys-fluent, boundary-conditions, cfd, transient, udf
-
-
July 14, 2021 at 12:11 pmharry93Subscriber
Hello 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 pmRobForum 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 amharry93SubscriberHello 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.amatriainSubscriberYou 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 AliAnsys 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 amharry93SubscriberHello 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 AliAnsys 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 amharry93Subscriberok got it
Thank you so much DrAnime.
July 23, 2021 at 10:50 amAmine Ben Hadj AliAnsys EmployeeWelcome! But DrAnime does not sound healthy ! :)
July 23, 2021 at 3:44 pmRobForum ModeratorYou have been looking quite drawn lately.....July 23, 2021 at 4:09 pmharry93SubscriberHaha.. 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 discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
Top Contributors-
1216
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 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.