CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

Interrupt control condition CFX-Pre

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2013, 11:25
Exclamation Interrupt control condition CFX-Pre
  #1
Member
 
Francesco
Join Date: Jan 2012
Posts: 31
Rep Power: 5
Cecco is on a distinguished road
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
Cecco is offline   Reply With Quote

Old   July 3, 2013, 19:07
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Not easily, CFX does not have good access to previous time steps in CEL. It is most easily implemented with user fortran.
ghorrocks is offline   Reply With Quote

Old   July 4, 2013, 08:47
Default
  #3
Member
 
Francesco
Join Date: Jan 2012
Posts: 31
Rep Power: 5
Cecco is on a distinguished road
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
Cecco is offline   Reply With Quote

Old   July 4, 2013, 20:01
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Yes, it is unfortunate that CEL does not support data at other time steps. It is a very frequently asked for feature.
ghorrocks is offline   Reply With Quote

Old   December 4, 2013, 05:20
Default
  #5
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 5
TrII4d is on a distinguished road
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 ...
TrII4d is offline   Reply With Quote

Old   December 4, 2013, 06:25
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 522
Rep Power: 11
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Old   December 4, 2013, 09:23
Default
  #7
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 5
TrII4d is on a distinguished road
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:

\frac{q - areaInt(Wall Heat Flux)@CYLINDER}{q} < 0.005

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!
TrII4d is offline   Reply With Quote

Old   December 4, 2013, 17:38
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
cel expression, cfx, interrupt

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 10:17
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25


All times are GMT -4. The time now is 00:17.