November 12, 2018 at 1:10 pmsam_5195Subscriber
Hello, I am trying to simulate flow over a solar structure. For the wind profile i have interpreted a udf. The flow direction is z, and the height is in y direction. Though i think the udf should work, initialization throws up a floating point exception. I am pasting the udf here:
F_PROFILE(f,thread,index) = 47*pow(0.1*y,0.15);
Thing is that if i change the "F_PROFILE(f,thread,index)" to y*y or something, it runs without any error. I am using k-epsilon realizable model and SIMPLE scheme with second order TKE and TDR while keeping most of the things as default. Any suggestion would be appreciated. Thanks
November 12, 2018 at 1:34 pmKarthik RAdministrator
I took your UDF and was able to successfully compile it. The problem does not seem to be with the UDF.
Floating point error generally refers to the fact that you have a really small or large value in one of your denominators and Fluent throws this message. Here are some pointers.
- Could you please check your mesh quality?
- What values are you using for your initialization?
- Could you please share a few more details about your model?
- What are your boundary conditions?
- How does your geometry look like?
- Where and how are you using the above profile?
November 12, 2018 at 1:56 pmsam_5195Subscriber
Thanks for the reply. The mesh quality is
Minimum Orthogonal Quality = 1.06680e-01
(To improve Orthogonal quality , use "Inverse Orthogonal Quality" in Fluent Meshing,
where Inverse Orthogonal Quality = 1 - Orthogonal Quality)
Maximum Aspect Ratio = 3.42408e+01"
I am using hybrid initialization with 10 as number of iterations for initialization.
The model is kind of like a blackboard or a pizza box with small thickness and large length surrounded by an even larger cuboidal enclosure. The dimensions are 10m x 3m x 4cm and tilted at 20 degrees wrt ground for the model without enclosure.
For boundary conditions, the enclosure wall have roughness height of 0.1 and roughness constant of 0.5. At inlet i put the velocity specification method as components and put the x and y components as 0 and z velocity as the udf. Turbulent intensity is 5% and viscosity ratio is 10.
I am using the above profile at inlet with flow in z direction which hits the above structure from the front.
The error is:
Initialize using the hybrid initialization method.
Checking case topology...
-This case has both inlets & outlets
-Pressure information is not available at the boundaries.
Case will be initialized with constant pressure
hybrid initialization is done.
Error at host: floating point exception
Error at Node 0: floating point exception
Error: floating point exception
Error: Object: #f
November 12, 2018 at 2:17 pmKarthik RAdministrator
Could you please share some screenshots of your mesh - both in the enclosure region as well as in the inlet regions?
Also, from ANSYS meshing, can you check what your maximum mesh skewness value? Do you have any inflation mesh in your model? What settings did you use?
Are you using wall function model or enhanced wall treatment?
What are your boundary conditions?
Could you also explain your physical model here so we understand it better?
November 12, 2018 at 2:23 pmKeyur KanadeAnsys Employee
First solve only flow and check if it gives any error.
Then solve energy equations.
Also try to use first order for tke.
Also though mesh quality is ok, what is cell count?
Is it possible for you to reduce problem to 2D?
November 13, 2018 at 6:29 amsam_5195Subscriber
The maximum skewness is 0.48 with average of 0.25. I haven't used any inflation rather i used face meshing and edge sizing. The near wall treatment is kept to standard wall function. i tried the steps but all are okay. I am required to do the problem in 3d. What i don't get is that everything works fine if the expression doesn't have any log, pow or sin or any such function. I am interpreting the udf and not compiling, could that be in any way affecting the result? Also i don't have the microsoft visual installed on this computer which could be the reason that any of those functions aren't working. But since i am interpreting the udf, do i still need the ms visual for math.h. Is that the culprit here? and if i do have to install it, which version would be suitable for ansys 18.2?.Thanks.
Edit: Turns out that installing visual c++ solves the problem
- You must be logged in to reply to this topic.
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.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2023 Copyright ANSYS, Inc. All rights reserved.