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

Application of heat source for 1 second in a 3 seconds transient analysis

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2016, 19:24
Default Application of heat source for 1 second in a 3 seconds transient analysis
  #1
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
Hi
I want to run a transient heat transfer analysis for 3 seconds in which a heat flux on a boundary (in W m^-2) is to be switched on after 1s and then switched off after 2s. The purpose is to see how the surface cools down. How to set it in CFX-Pre.
shahpar73 is offline   Reply With Quote

Old   June 23, 2016, 20:51
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Some options:

Use a CEL if function
heatflux = if(t>1[s],if(t<2[s],100[W],0[W]),0[W])

or

heatflux = step((t-1[s])/1[s])*step((2[s]-t)/1[s])*100[W]

or use a 1D interpolation function
ghorrocks is offline   Reply With Quote

Old   June 25, 2016, 09:08
Default
  #3
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
Thanks Glenn. I really appreciate your help.
(1) In my case, the heat source is initialized from a "Profile data", lets say with the name "HeatSource". can I simply replace 100[W] with "HeatSource" in "step" function?
(2) "if" function is simple, so how to use "HeatSource" with "if".
shahpar73 is offline   Reply With Quote

Old   June 25, 2016, 09:42
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I have never done that with profile data but I think you can do it. Give it a go and see if it works for you.
ghorrocks is offline   Reply With Quote

Old   September 3, 2016, 02:21
Default
  #5
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
"if" function didn't work with profile data (may be I am not using it correctly); however, "step" function did work. The command is follow;

heatflux = step((t-1[s])/1[s])*step((2[s]-t)/1[s])*HeatFlux

Where HeatFlux is initialised as profile data and then defined as user function.

Thanks Glenn for the help.
shahpar73 is offline   Reply With Quote

Old   September 3, 2016, 09:00
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think the if function was introduced in ANSYS V15. If you have an older version you will only have the step function available.
ghorrocks is offline   Reply With Quote

Reply

Tags
heat sources, transient


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
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
Transient spacial dependent heat source Kumudu OpenFOAM Running, Solving & CFD 0 October 28, 2013 12:02
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18


All times are GMT -4. The time now is 15:37.