CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to write a UDF that remains the solver in the current step of time?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2019, 10:45
Post How to write a UDF that remains the solver in the current step of time?
  #1
New Member
 
mohammad karimi pour
Join Date: Oct 2018
Posts: 6
Rep Power: 8
MKPP is on a distinguished road
Question: 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.
MKPP is offline   Reply With Quote

Reply

Tags
define_profile, fluent, loop, timestep, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 08:48
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20


All times are GMT -4. The time now is 19:26.