June 25, 2021 at 4:51 pmchupacabraSubscriber
My prof asked me to write a UDF for a body force term and simulate it for a flow over a flat plate at a certain location of the domain.
This code doesn't seem to have any effect on the solution.
Here are the steps I followed:
- Interpreted the UDF
- Hooked the UDF in the cell zone conditions as X_Momentume Source term
- Used SIMPLE method (I am not sure if this has something to do with the solution being the same, I am a noob in this field) and nearly 6000 iterations.
After doing all these steps, there was no difference in the solution I obtained.
I am attaching the UDF below.
I begin to suspect if the solution scheme I used has to something with the working of the UDF.
Thanks for reading.June 28, 2021 at 1:11 pmKarthik RAdministratorHello Can you share a screenshot of the UDF instead of attaching the files to your post? Ansys employees are not able to download attachments.
What effect do you expect when you add this source term to your flat plate case? Can you please provide some more context to your question?
June 28, 2021 at 2:29 pmchupacabraSubscriberHey Karthik, thanks for commenting.
Here is the screenshot of the UDF.
I was just trying to simulate the lift force experienced by the flat plate due to asymmetric velocity distribution above and below the plate. So, instead of diving straight into the problem, I was simulating flow over a flat plate with this UDF and tried to observe changes in the velocity field. But, no luck.
June 29, 2021 at 1:38 pmRobAnsys EmployeeHow large is the domain, and how well resolved is the mesh? Use an adaption register to mark the cells according to the constraints in your code.
June 29, 2021 at 2:00 pmKarthik RAdministratorHello Just to add to 's comment - these sources are volumetric in nature. Please make sure that you are adding these right. In your UDF, you seem to be specifying a constant number of 0.02. The total volumetric integral of this force might be pretty small depending on the overall volume of your domain. Just something to ponder about.
June 29, 2021 at 2:13 pmchupacabraSubscriberThe domain is 200 cm x 100 cm. There are nearly 50K elements with a good resolution near the plate.
June 29, 2021 at 2:41 pmchupacabraSubscriberThank you so much!!!!!
I just changed the CON value to 2000 and there are significant changes in the contours.
But I have one doubt left. The units of CON are N/m3 right? And if we are doing a 2D problem, Z direction is 1m by default and CON units are N/m2. Right?
June 29, 2021 at 2:55 pmRobAnsys EmployeeWrong. It's still N/m3 but the third dimension is 1m when you work out the volume.
June 29, 2021 at 3:01 pmKarthik RAdministratorYes, it uses the area of the cell (in 2D) multiplied by 1 m (depth) to obtain the volume.
Viewing 8 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- The solver failed with a non-zero exit code of : 2
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Rated Tags
© 2022 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.