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

Transient heat flux changing in spatial coortinate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2016, 09:29
Default Transient heat flux changing in spatial coortinate
  #1
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
I want to apply HeatFlux [W/m^2] on a boundary between t=0s & 1s with x,y,z=0,0,0. The same heat flux is needed to apply between t=1s & 2s with x,y,z=1,0,0.

How to set STEP function for it in CEL?
shahpar73 is offline   Reply With Quote

Old   September 2, 2016, 09:46
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
For your first point, try:

if(t<1[s],100[W/m^2],0[W/m^2])

As the heat flux on the boundary.

I do not understand your comment about x,y,z=0,0,0 or 1,0,0.
ghorrocks is offline   Reply With Quote

Old   September 2, 2016, 15:33
Default
  #3
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
Please read my rephrased question bellow....

I am trying to run a transient analysis for 2s. I want to apply HeatFlux [W/m^2] on a boundary between t=0s & 1s with x=0 mm. The same heat flux is needed to apply between t=1s & 2s with x=1mm. Note that x is the x-axis in cartesian coordinate system.

How to set STEP function for it in CEL?

The analysis is aimed to simulate moving heat source with increment of 1mm in the x-direction.
shahpar73 is offline   Reply With Quote

Old   September 3, 2016, 08:59
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The if function is easier to understand compared to step.

Try these functions:
StartX = if(t<1[s],0[mm],1[mm])
EndX = if(t<1[s],1[mm],2[mm])
HeatFlux = if(x>StartX,if(x<EndX,100[W/m^2],0[W/m^2]),0[W/m^2])

And then use the HeatFlux variable as the function for the boundary heat flux.
ghorrocks is offline   Reply With Quote

Old   September 4, 2016, 15:52
Default
  #5
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
Dear Glenn
I really appreciate your help...
Can you please modify the above CEL expressions to apply HeatFlux of 100 [W/m^2] at x=0mm when time t=0s-to-1s, then at x=1mm when t=1s-to-2s, and then at x=2mm when t=2s-to-3s.

I tried defining (in red colour);

StartX1 = if(t<1[s],0[mm],1[mm])
StartX2 = if(t<2[s],1[mm],2[mm])

EndX1 = if(t<1[s],1[mm],2[mm])
EndX2 = if(t<2[s],2[mm],3[mm])

And then tried to add to the HeatFlux equation (given above in your reply), but failed to get the required results.
shahpar73 is offline   Reply With Quote

Old   September 4, 2016, 19:56
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can see how these nested if statements get pretty ugly when it gets more complex.

Things you can do to simplify in include using a 1D interpolation function.

Hopefully you get the idea of if statements now and I do not have to write them for you. But if it is still not working please post the statement you are using and any error message it gives.
ghorrocks is offline   Reply With Quote

Reply


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
Inverse and Transient Heat Transfer Problem on commercial software: is it possible? rogbrito Main CFD Forum 1 February 19, 2019 03:11
Wall Heat Flux & Temperature Greg Perkins FLUENT 10 November 20, 2015 10:32
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Heat Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 13:20
udf for transient heat flux BC isaac FLUENT 1 June 3, 2004 17:29


All times are GMT -4. The time now is 21:47.