-
-
September 14, 2017 at 12:38 am
mckoz
SubscriberHi all,
I am attempting to create a conditional statement in CFX-Pre using CEL, either the step() function or an if() statement. Basically, I am running a Non-Newtonian simulation and some of the results of my simulation fall outside of the shear rate range specified within the CFX Non-Newtonian model. I am attempting to assign a constant value to the Dynamic Viscosity if the shear strain rate (sstrnr) is less than 0.001 s^-1, which is the lower limit of CFX. If the shear strain rate is greater than or equal to 0.001 s^-1, I would like for my Non-Newtonian model to be applied. I would like to do this because there are a few areas in my geometry that have shear strain rates lower than 0.001s^-1, and it is yielding unrealistically high viscosity results. Thus, for these regions, I would just like to assign some constant value of viscosity to make up for this.
Does anyone have any ideas about how I could do this? Thanks in advance.
-
November 2, 2017 at 8:58 pm
raul.raghav
SubscriberI assume you are trying to model the Non-Newtonian fluid using the Ostwald de Waele model. I could be wrong but I don't think you can assign a specific value for dynamic viscosity if the sstrnr goes below a certain value.
If I were in your shoes, I would write an expression for the the dynamic viscosity and bound the lower limit of the shear strain rate such that if sstrnr < 0.001 s^-1, I'd assume it to be 0.001 s^-1. So wherever your shear strain rate would be less than 0.001 s^-1, the dynamic viscosity will be calculated at sstrnr = 0.001 s^-1. The following CEL expressions would bound the lower and upper limits of sstrnr and implement the dynamic viscosity as an expression.
dynVisc = K * ((L * bSSTRNR)^(n-1))
bSSTRNR = if(sstrnr < 0.001 [s^-1], 0.001 [s^-1], cond)
cond = if(sstrnr > 1000 [s^-1], 1000 s^-1, sstrnr)
K - viscosity consistency; L - time constant; n - power law index; bSSTRNR - bounded sstrnr
-
November 3, 2018 at 3:51 am
-
November 15, 2018 at 6:59 am
DrAmine
Ansys EmployeeDo you have problems with the expressions or with the setup itself?
-
- 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
-
2722
-
2146
-
1357
-
1150
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.