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

Transient profile boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 22, 2010, 01:02
Default Transient profile boundary conditions
  #1
New Member
 
David Ladd
Join Date: May 2009
Posts: 1
Rep Power: 0
dladd is on a distinguished road
Hi everyone,

I am trying to apply transient 3D velocity values from experimental data to the inlet of a model in CFX 12. There is quite a bit of variation to the velocities over the inflow profile and the subsequent secondary flows they produce are of particular interest for my application. I know this is fairly easy to do with a steady state problem using Profile Boundary Conditions but was wondering if anyone had advice for doing this for a transient case. It seems like a logical step to me so I am hoping there is something I have missed in my searches of the manual and CFD-Online. Ideally, I would be able to load a .csv file, with something along the lines of:

x[m] y[m] z[m] u[m/s] v[m/s] w[m/s] t[s]
x1 y1 z1 u1(t1) v1(t1) w1(t1) t1
x2 y2 z2 u2(t1) v2(t1) w2(t1) t1
...
x1 y1 z1 u1(t2) v1(t2) w1(t2) t2
x2 y2 z2 u2(t2) v2(t2) w2(t2) t2
...

or something similar (separated into groups or files by timesteps perhaps), and have CFX interpolate values across the mesh at each timestep. It would also be nice if I could interpolate at intermediate timesteps but I can do the interpolation spatially and temporally myself with scripts if it is an issue. The problem is loading the data into the boundary at each timestep.

To me it seems like my options could possibly be:

1) Separate each velocity component into separate timestep data files. Create a Junction Box Routine that executes at the end of each timestep then increment the name of the data file it reads for the velocity info (u_profile_t1.dat --> u_profile_t2.dat) for each component. Read in the new data, interpolate values across the mesh, solve, repeat.

2) Write a CEL routine somehow capable of passing the current time back and tricking CFX into doing Profile Boundary Conditions at each timestep.

3) Appeal to the helpful team at CFD-Online and see if anyone can give me a push in the right direction.

Cheers,
Dave
dladd is offline   Reply With Quote

Old   April 22, 2010, 07:25
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
I think you will need a Junction Box routine to do this, as you suggest.
ghorrocks is offline   Reply With Quote

Old   June 16, 2010, 07:48
Default
  #3
Member
 
Join Date: Apr 2009
Posts: 34
Rep Power: 8
cosine is on a distinguished road
Hello,

I have a similar problem. I would like to know if you have successfully managed to make your simulation. If so, could you explain how to do this?

Thank you very much
Regards
cosine is offline   Reply With Quote

Old   July 11, 2011, 08:20
Default
  #4
SLC
New Member
 
Join Date: Jul 2011
Posts: 5
Rep Power: 6
SLC is on a distinguished road
Quote:
Originally Posted by dladd View Post
Hi everyone,

I am trying to apply transient 3D velocity values from experimental data to the inlet of a model in CFX 12. There is quite a bit of variation to the velocities over the inflow profile and the subsequent secondary flows they produce are of particular interest for my application. I know this is fairly easy to do with a steady state problem using Profile Boundary Conditions but was wondering if anyone had advice for doing this for a transient case. It seems like a logical step to me so I am hoping there is something I have missed in my searches of the manual and CFD-Online. Ideally, I would be able to load a .csv file, with something along the lines of:

x[m] y[m] z[m] u[m/s] v[m/s] w[m/s] t[s]
x1 y1 z1 u1(t1) v1(t1) w1(t1) t1
x2 y2 z2 u2(t1) v2(t1) w2(t1) t1
...
x1 y1 z1 u1(t2) v1(t2) w1(t2) t2
x2 y2 z2 u2(t2) v2(t2) w2(t2) t2
...

or something similar (separated into groups or files by timesteps perhaps), and have CFX interpolate values across the mesh at each timestep. It would also be nice if I could interpolate at intermediate timesteps but I can do the interpolation spatially and temporally myself with scripts if it is an issue. The problem is loading the data into the boundary at each timestep.

To me it seems like my options could possibly be:

1) Separate each velocity component into separate timestep data files. Create a Junction Box Routine that executes at the end of each timestep then increment the name of the data file it reads for the velocity info (u_profile_t1.dat --> u_profile_t2.dat) for each component. Read in the new data, interpolate values across the mesh, solve, repeat.

2) Write a CEL routine somehow capable of passing the current time back and tricking CFX into doing Profile Boundary Conditions at each timestep.

3) Appeal to the helpful team at CFD-Online and see if anyone can give me a push in the right direction.

Cheers,
Dave
Did you ever have any luck with this? I am looking at solving a very similar issue.
SLC is offline   Reply With Quote

Old   July 11, 2011, 09:55
Default
  #5
New Member
 
pfister
Join Date: Jul 2011
Posts: 1
Rep Power: 0
pfister is on a distinguished road
Hello!

I had a similar problem and I solved it by using a function.

Create a new function, use the option interpolation and specify the arguments unit (e.g. [s] for time) and the results unit (e.g. [m/s] for velocity).

At the interpolation data option tab use three dimensional and then right click in the field below and choose import data.

If you want to use these data as a boundary condition you have to specify an expression. Create an expression and define it as your function with the corresponding argument (e.g. t for time).

Now you can use your data as bc.

That's it, I think!

Cheers.
pfister is offline   Reply With Quote

Old   January 8, 2012, 15:58
Default Greate the a csv file
  #6
New Member
 
Athanasios Papadopoulos
Join Date: Jan 2012
Posts: 23
Rep Power: 5
Super Sonic is on a distinguished road
Hi,

I am tryinf to create a file, apparently .csv file, to import it to a transient simulation.But me problem is that i don't know how to create the collums. For expample from where I can find the coordinates of

x , z , y

And secondly, how I can create a .csv file.
Can some give an example.
Thanks
Super Sonic is offline   Reply With Quote

Old   January 8, 2012, 20:25
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
You can create csv files in excel or any text editor. They are simply comma separated value files (hence CSV).
ghorrocks is offline   Reply With Quote

Old   January 9, 2012, 05:03
Default Transient Simulation
  #8
New Member
 
Athanasios Papadopoulos
Join Date: Jan 2012
Posts: 23
Rep Power: 5
Super Sonic is on a distinguished road
Thank you very much for your respond.

Is it possible for you to upload an example file and explain me exactly the reason of each factor?

Thank you very much.
Super Sonic is offline   Reply With Quote

Old   January 9, 2012, 05:45
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Search google for CSV file format.
ghorrocks is offline   Reply With Quote

Reply

Tags
boundary, profile, transient

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
Transient boundary conditions Dave FLUENT 5 October 30, 2011 09:58
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25
Fluent accuracy and boundary conditions Paolo Lampitella FLUENT 0 June 12, 2008 06:25
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 08:15


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