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

Transient with time-varying boundary conditions

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

Like Tree4Likes
  • 2 Post By monkey1
  • 2 Post By monkey1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2012, 04:26
Default Transient with time-varying boundary conditions
  #1
New Member
 
Jordi
Join Date: May 2010
Posts: 26
Rep Power: 15
Jordi is on a distinguished road
I want to model the behaviour of an accelerating body in air. So I'd like to set up my upstream face as an input with a time-dependent speed. But apparently I can only set constants in boundary values, even if the analysis type is set as transient.
I have been suggested running a series of stationary analysis, but what I want to see is just the dynamics of the flow.
I'd be happy with just a linear speed with time, something like going from 10 m/s to 100 m/s in 30 seconds. Is it possible to do such analysis?
Jordi is offline   Reply With Quote

Old   July 31, 2012, 04:52
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
To set varying boundary conditions you must define a "user function" in CFX Pre. There you can provide a set of tabulated values. If you want a linear profile it would be a "table" saying at 0s the speed is 10 m/s and at 30s it is 100 m/s. The user function always interpolates between the given values. If you then name the function for example speedfunc, you can then go to your BC and select "enter expression" where you provided a single value yet. There you would then write speedfunc(t). The paranthesis are necessary as the table works with a parameter in this case the time.

Using the user function allows you also to define a "speed profile" over the time. In my case I always provide the experimentally measured time dependent wind speed for my simulations. Meaning one value per second. If you have a file with speed values that are too much to input them manually you can also read a file. Right click into the interpolation data field and select "import data".
Format of the file should be tab separated columns.
monkey1 is offline   Reply With Quote

Old   July 31, 2012, 05:04
Default
  #3
New Member
 
Jordi
Join Date: May 2010
Posts: 26
Rep Power: 15
Jordi is on a distinguished road
Fantastic, man, that's what I was looking for. In addition I can have non-linear and maybe f(x,t) values. Wow, a new world has opened to my eyes! Danke schoen.
Jordi is offline   Reply With Quote

Old   July 31, 2012, 05:20
Default
  #4
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
I am glad it helped

You can definitly define any kind of data pairs. Linear, non linear etc. The only thing to take care of is when defining a step function. Smth, I use for switching mass sources on and off. For example I want to have mass released only from 10s to 20s in a 30s simulation. Then I define a user Function with the following values:
0s - 0
9.999s - 0
10s - 1
20s - 1
20.0001s -0
30s - 0
The 9.999s and 20.0001s are necessary because if I would let them away he would make an interpolation between 0s and 10s with values increasing from 0 to 1 and a conitnuous decrease between 20 and 30s.

Btw. if you check extend min and extend max it will use the first and last value defined for all values outside the range defined in the table.
Lissette_acn and spl like this.
monkey1 is offline   Reply With Quote

Old   July 31, 2012, 07:42
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Don't forget about CEL expressions. You can simply enter a CEL expression as the boundary condition value (including as a function of time). Setting up CEL expressions is covered in the CFX tutorials.
ghorrocks is offline   Reply With Quote

Old   August 3, 2012, 05:51
Default
  #6
New Member
 
Jordi
Join Date: May 2010
Posts: 26
Rep Power: 15
Jordi is on a distinguished road
thank you all
Jordi is offline   Reply With Quote

Old   February 19, 2014, 05:09
Default
  #7
New Member
 
Join Date: Oct 2013
Posts: 16
Rep Power: 12
cscfx is on a distinguished road
HELLO! i want know how to write the profile of time dependent boundary,can you give a simple format? thanks a lot
cscfx is offline   Reply With Quote

Old   February 19, 2014, 06:36
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It is easy to make CEL expressions a function of time. Have a look at the tutorials for how to do that.

But exactly what profile do you want to use?
ghorrocks is offline   Reply With Quote

Old   June 16, 2015, 12:28
Default
  #9
New Member
 
Willem
Join Date: Oct 2014
Location: Belgium
Posts: 4
Rep Power: 11
CFX_CFD is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
It is easy to make CEL expressions a function of time.
Hi,
I would like to elaborate tutorial chapter 19 (AC simulation) where the temperature at the inlet also varies when a certain value of the thermometer is reached.
I was wondering if it is possible to use a "current timestep" in a transient simulation without it updating every new timestep and this in an automated way.

To give an example:
use t=i where t is the time you want to use and i the time in interval [0 < i < current time]. If so, how can I do this with CEL functions or do I need User Fortran Routines?

In attachment, you may find a figure of what I mean. The red arrows indicate the time I would like to use until the cooling starts again.

Thanks in advance.

Willem
Attached Images
File Type: jpg Tutorial 19 - elaboration.jpg (29.8 KB, 186 views)
CFX_CFD is offline   Reply With Quote

Old   June 16, 2015, 20:12
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I do not understand what you mean. You can easily make the temperature of the inlet a function of anything, including a function of a temperature of a region in the simulation.
ghorrocks is offline   Reply With Quote

Old   June 18, 2015, 05:51
Default
  #11
New Member
 
Willem
Join Date: Oct 2014
Location: Belgium
Posts: 4
Rep Power: 11
CFX_CFD is on a distinguished road
Well, I would like to simulate the following situation (also see previous picture):
We cool with a temperature Tcool = 0°C (a constant value).

When the thermostat reaches a lower limit (in the figure this value is 0.6°C), we turn the cooling off and start heating with
Theat = 1.5°C -1.5*exp(-(t-timeconstant)/3600) => i.e. a changing value in time.

When the thermostat reaches an upper limit (in the figure this value is 1.25°C) we start cooling again until the lower limit is reached again. Then, we update the value for timeconstant and start the heating cycle. And this for multiple cooling-heating cycles.

So in order to automate the cooling-and-reheating cycles, I want to obtain a value for timeconstant and keep this value the same during my heating cycle and update it every time right after the cooling cycle.
CFX_CFD is offline   Reply With Quote

Old   June 18, 2015, 06:27
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can implement just about anything in CEL...... as long as it does not require memory of what has happened at previous time steps . This will mean your heating cycle will be tricky to implement (as you have to remember when you started the heating cycle) and your cooling cycle will be a challenge (you have to know whether you are on a cooling cycle or not to know whether the cooler is on).

So the best way to implement your condition directly is using a user fortran routine. That way you can define your own variables which persist over time steps. Have a look in the CFX manuals for examples on user fortran.
ghorrocks is offline   Reply With Quote

Old   June 18, 2015, 06:54
Default
  #13
New Member
 
Willem
Join Date: Oct 2014
Location: Belgium
Posts: 4
Rep Power: 11
CFX_CFD is on a distinguished road
Too bad it's not possible with CEL functions. I will take a look at the manuals and try to solve it with a User Fortran Routine.
Thanks for your feedback!
CFX_CFD is offline   Reply With Quote

Old   November 8, 2016, 05:30
Default varying heat flux for rotating disc
  #14
New Member
 
Adarsh Nair
Join Date: Sep 2016
Posts: 3
Rep Power: 9
Adarsh nair is on a distinguished road
hi im new to cfx ,im doing a ht analysis of disc brake,my input is constant heat flux for 3seconds on the disc surface and after 3 s convection to surronding air ,plz help me cfx cel for my input of heat flux
Adarsh nair is offline   Reply With Quote

Old   November 8, 2016, 05:41
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Use a 1D interpolation function, or CEL using "if" statements
ghorrocks is offline   Reply With Quote

Old   November 8, 2016, 08:26
Default
  #16
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
(as long as it does not require memory of what has happened at previous time steps )

dear mr. Glenn is this true?

Isnt there some way to do it with TRANS_LOOP comand if I remember corectly.
urosgrivc is offline   Reply With Quote

Old   November 8, 2016, 18:00
Default
  #17
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, there is an unsupported work-around using TRANS_LOOP. Search the forum to find discussion of it.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
UnSteady Boundary Conditions - Changing with time Docker FLUENT 4 July 14, 2011 12:01
Transient boundary conditions in CFX Sohail Ahmed CFX 2 December 11, 2007 14:01
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 07:21


All times are GMT -4. The time now is 04:10.