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

CEL expression for controlling an energy source with respect to time

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 6, 2011, 08:07
Post CEL expression for controlling an energy source with respect to time
  #1
New Member
 
Richard Glithro
Join Date: Dec 2011
Location: Bournemouth UK
Posts: 4
Rep Power: 5
rglithro is on a distinguished road
Hello all
I would like to be able to control an energy source in my transient simulation with respect to time e.g. t=0 on at t=2 off at t=20 on at t=22 off etc. The simulation is for testing conformal cooling channel designs for injection moulding tools with the energy source simulating the injection phase of the moulding cycle.
From reading tutorials on the CFX Expression Language I understand it should be possible to do this using CEL and I have read a couple of tutorials on creating feedback loops to control temperature but what I donít understand is how to write an expression for a boundary condition or with respect to time. I am not a programmer so this is all pretty new to me; any help would be greatly appreciated.
Software: ANSYS Workbench V13
So to summarise my question
1) Does anyone know of an example/tutorial of an expression which is written for turning an energy source on or off with respect to time step
2) Can anyone help me out with creating an example of the code I need to achieve the above

Additional info: I currently have the above problem setup as 3 separate analysis; a) steady-state (for initial conditions of the fluid flow in the cooling channel) b) transient 2s (heating) c) transient 18s (cooling time) but I would like to be able to run it multiple times to simulate multiple moulding cycles all in the same analysis.
rglithro is offline   Reply With Quote

Old   December 6, 2011, 19:45
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
This is just a straight forward CEL expression. No programming needed. Use the mod function to define a periodic function and link the CEL expression to your boundary condition.
ghorrocks is offline   Reply With Quote

Old   December 7, 2011, 12:28
Default
  #3
New Member
 
Richard Glithro
Join Date: Dec 2011
Location: Bournemouth UK
Posts: 4
Rep Power: 5
rglithro is on a distinguished road
Sorted, thank you for pointing me in the right direction.
rglithro is offline   Reply With Quote

Reply

Tags
cel, transient bc

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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Mass and energy source - evaporation neilduffy1024 ANSYS 4 July 16, 2013 23:50
time dependent source using DEFINE_SOURCE T81 Fluent UDF and Scheme Programming 5 February 28, 2011 18:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 13:22


All times are GMT -4. The time now is 13:07.