|
[Sponsors] |
July 3, 2013, 12:25 |
Interrupt control condition CFX-Pre
|
#1 |
Member
Francesco
Join Date: Jan 2012
Posts: 31
Rep Power: 14 |
Hi everybody,
I would like terminate my simulation when a specific variable became stable with accumulated time step. In order to do this I would like write a conditions like this: Interrupt when VARIABLE1(valuated on last time step) - VARIABLE1(valuated on last time step-100)< (a certain constant like 10) How can I write a condition like this? Is it possible? Thanks |
|
July 3, 2013, 20:07 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Not easily, CFX does not have good access to previous time steps in CEL. It is most easily implemented with user fortran.
|
|
July 4, 2013, 09:47 |
|
#3 |
Member
Francesco
Join Date: Jan 2012
Posts: 31
Rep Power: 14 |
mmmh quite hard.
I know F90 language, but never tried to implement a subroutine in CFX. I will try. If someone wanna help me thanks in advance. Thanks ghorrocks |
|
July 4, 2013, 21:01 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Yes, it is unfortunate that CEL does not support data at other time steps. It is a very frequently asked for feature.
|
|
December 4, 2013, 05:20 |
|
#5 |
Member
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 14 |
hey ... i have a similar problem like cecco ... is there any solution in cfx 14.5 or 15 ?
otherwise how is ur progress cecco? my idea is to create a perl script ... u can open the "mon.old" file ... write out the residuals and create ur own convergence criteria ... |
|
December 4, 2013, 06:25 |
|
#6 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
In Pre you can set time derivatives of additional variables. For example myAV.Time Derivative is possible to compute during the solution, and could maybe be used as an indicator of a stable variable. See the manuals, especially cfx_ref.pdf.
|
|
December 4, 2013, 09:23 |
|
#7 |
Member
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 14 |
hi lance ... thanks for ur answer ... let me explain my problem more in detail:
i'm calculating heat flux from a cylinder to a fluid ... in the volumetric cylinder i defined a heat flux q = const. = 20 W i want to implement the following interrupt criteria: so i want to be sure that the simulation ends only when the the heat flux is equal to the BC (20 W) i can implement the formula as an expression at set this expression as interrupt control condition, e.g. : ((myHeatFlux - abs(areaInt(Wall Heat Flux)@FLSO_CYLINDER_SHELL Side 2))/myHeatFlux) <= 0.005) but what i want additional is, that after the criteria reached the solver has to calculate 100 iterations additionally (to be very sure) thanks for any hints! |
|
December 4, 2013, 17:38 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Why not just activate the imbalances as a convergence criterion? Also, the global imbalances are in the results file as well.
What you are doing appears to already be an option in CFX, so no need to write any code. |
|
August 7, 2022, 15:09 |
|
#9 |
New Member
Join Date: Mar 2022
Posts: 5
Rep Power: 4 |
Yes, it is possible to do it so. Check "ANSYS CFX Solver Modeling Guide". A section called "Using Interrupt Control in Cases with Transient Convergence Behavior" describes how you can do it.
|
|
Tags |
cel expression, cfx, interrupt |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition setting regarding turbine simulation using CFX | Lacerlacer | CFX | 11 | March 12, 2012 10:32 |
CFX problems with supersonic inlet condition - Inlet values in CFX-Post are wrong | jannnesss | CFX | 5 | February 25, 2011 17:24 |
Re: Outlet Boundary condition CFX | creddy_trddc | CFX | 3 | February 5, 2011 05:58 |
Notice of wall condition in cfx | td2e09 | CFX | 0 | August 5, 2010 11:17 |
CFX doesn't continue calculation... | mactech001 | CFX | 6 | November 15, 2009 22:25 |