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

Square wave function/expression in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2016, 09:22
Default Square wave function/expression in CFX
  #1
New Member
 
Join Date: Nov 2016
Posts: 5
Rep Power: 9
Johndm is on a distinguished road
I am working on a transient analysis and am wondering if there is any way to write an expression which will give a square wave function over the duration of the analysis.
The situation is I am analysing the heat entering a brake disc during repeated braking. I want to model a heat flux on a surface but switch it on and off as the brakes are applied.
For example, is it possible to model a 30 second transient analysis with brakes/heat applied for 5 seconds and released (disc able to cool) for 5 seconds then repeated two more times to see the disc temperature at the end of the analysis?
The square wave would then give a heat flux of xxx W/sqm for time 0 to 5 seconds and zero W/sqm from 5 to 10 seconds. It could be a binary function which is multiplied by the flux value.

Last edited by Johndm; November 17, 2016 at 09:26. Reason: expanded explanantion
Johndm is offline   Reply With Quote

Old   November 17, 2016, 10:46
Default
  #2
New Member
 
parviz hash
Join Date: May 2012
Posts: 16
Rep Power: 13
parvaz747 is on a distinguished road
I think u can use if or step function:
if( cond_expr, true_expr, false_expr )
or
step ()
parvaz747 is offline   Reply With Quote

Old   November 18, 2016, 19:22
Default
  #3
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
either vhat parviz said or tabular data:
You can inport tabular data via user function
urosgrivc is offline   Reply With Quote

Reply

Tags
function, square, transient, wave


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
Differences between CFX and OpenFOAM regarding convergence and robustness! magjohan OpenFOAM Running, Solving & CFD 4 February 26, 2015 10:26
Wave in CFX divoone1985 CFX 2 February 25, 2015 11:36
WAVE TANK star-ccm+ . wave height dampens. WHY? muhsin STAR-CCM+ 3 October 9, 2012 13:24
Question about the shock wave in CFX software nucharin Main CFD Forum 1 January 25, 2005 08:26
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


All times are GMT -4. The time now is 11:28.