CFD Online Logo CFD Online URL
Home > Forums > CFX

How to set up transient BC?

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

LinkBack Thread Tools Display Modes
Old   March 17, 2005, 06:11
Default How to set up transient BC?
Posts: n/a

I've a problem setting up the transient BC.

What I wish to get is:

1-2 sec, function1(t)

2-4 sec, function2(t)

4-6 sec, function1(t)

6-8 sec, function2(t)


Anyone know how to implement this expression in CFX-Pre?

Thanks, Sam
  Reply With Quote

Old   March 17, 2005, 10:10
Default Re: How to set up transient BC?
Posts: n/a
Hi Sam,

Create expressions for each of your functions:function1 = ...
function2 = ...
...Then create an expression that includes all the functions and multiplies each by a corresponding step function:allFunctions = function1*step((2 [s]-t)/1[s]) +
function2*step((t-2 [s])/1[s])*step((4 [s]-t)/1[s]) +
function3*step((t-4 [s])/1[s])*step((6 [s]-t)/1[s]) +
function2*step((t-6 [s])/1[s])*step((8 [s]-t)/1[s]) +
...A step function takes a dimensionless argument (hence dividing by 1 [s]). If the argument is negative, it returns zero, positive returns 1 and if it is equal to zero, it returns 1/2. By combining your functions this way, you can turn them on and off as needed.

  Reply With Quote

Old   March 17, 2005, 22:09
Default Thank you.
Posts: n/a
Thanks, robin.

It works eventhough it's lengthy. I've to simulate over 40 sec & allfunction becomes a giant equation.
  Reply With Quote


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
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Install problem in linux navaladi OpenFOAM Installation 11 July 17, 2008 02:24
Help with GNUPlot Renato. Main CFD Forum 6 June 6, 2007 19:51
set temperature on subdomain, in transient mode nicolas CFX 0 August 16, 2006 06:42
Expert Parameter for compressible transient ioannis CFX 0 November 2, 2005 20:28

All times are GMT -4. The time now is 22:26.