-
-
November 14, 2019 at 10:54 am
MohammadUT
SubscriberQuestion: How can I make solver not to further in time after Max Iteration/Time step is done, and repeat the calculation with new B.C.s at same step of time util a criterion is met?
more information:
I have two simple equations which determine the pressure and velocity at the inlet and outlet of my CFD domain. Starting with an initial guess for these values, I want to couple these values to the result of Fluent and in each time step perform a loop till the values predicted by equations drop in a specific range of those predicted by Fluent.
So, basically I want to perform a loop without solver going to the next time step until a certain residual is reached.
Please notice that in a steady state solver DEFINE_PROFILE and DEFINE_ADJUST updates every iteration and in a transient solver every time step. -
November 14, 2019 at 11:35 am
Rob
Ansys EmployeeIf you're altering the inlet & outlet conditions to suit an external model what are you solving in the Fluent case?
-
November 14, 2019 at 11:52 am
MohammadUT
Subscriberwhat I know from the B.C.s is the relation between Pressure and Flow rate as follow:
from Method of characteristics (external model):
Inlet: H=known and Q=unknown;
outlet: H(outlet)=C(a known constant) - D(a known constant)*Q(outlet)
constants are obtained from values of H and Q at previous time step.
I want to couple these equations to fluent case and obtain the pressure drop = H(inlet)-H(outlet) as well as Q.
So basically the loop that I want to perform in each time step is going to find the H(outlet) and Q.
-
November 14, 2019 at 1:35 pm
Rob
Ansys EmployeeThe CFD model geometry will give the relationship between pressure & flow. So you want to alter the outlet pressure and find the flow rate at that pressure? Given it's transient I have no idea how this will work (physically or computationally) as you're also working within a finite time with changing values.
Work through the logic and sketch out the physical process: that may make it easier to understand.
-
November 14, 2019 at 3:06 pm
MohammadUT
Subscriber -
November 14, 2019 at 4:27 pm
Rob
Ansys EmployeeThanks, I'm not sure you'll be able to do that within a time step. Run the system without the MOC loop and monitor pressure & flow to see what you get.
-
November 14, 2019 at 7:59 pm
MohammadUT
SubscriberI know it can be done with Scheme programming (don't know how!), but is there any way to set flow time in UDF? Can I remain flow time constant till convergence of the above image is reached.
like:
(rpsetvar 'flow-time 0.2)
-
November 15, 2019 at 11:50 am
Rob
Ansys EmployeeYou can call/push scheme from a UDF.
-
- 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
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5454
-
3401
-
2473
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.