-
-
July 14, 2019 at 4:36 am
jzliuyu
SubscriberHi, everyone,
I am working on a case of laminar flow of a viscous liquid in a cylinder. The rheological model of the liquid can be written as follows:
The Udf I wrote is as follows:
#include "udf.h"
#include "mem.h"
DEFINE_PROPERTY(cell_viscosity,cell,thread)
{
#if
real tau0=10;
real a=20;
real b=5;
real gamma = C_STRAIN_RATE_MAG(cell,thread);
real mu_lam;
mu_lam=tau0/gamma+a+b*pow(gamma,2);
returnmu_lam;
}
However, I found it does not work in Fluent (Ansys 2019 R1) and the following message is shown in Console window:
Error: floating point exception
Error Object: #f
Can anybody tell me what is wrong with my UDF?
-
July 15, 2019 at 5:10 am
DrAmine
Ansys EmployeeYou might use for viscosity a standard value on the beginning. Consider that in your UDF. -
July 15, 2019 at 10:28 am
Rob
Ansys EmployeeWhen you interpret/compile the code what errors do you see? If there aren't any does the model run with a fixed viscosity?
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.

Ansys Blog
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
-
3682
-
2552
-
1761
-
1232
-
584
© 2023 Copyright ANSYS, Inc. All rights reserved.