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

Transient profile boundary conditions

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

Like Tree2Likes
  • 2 Post By pfister

Reply
 
LinkBack Thread Tools Search this Thread 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: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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: 17
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
Member
 
Join Date: Jul 2011
Posts: 53
Rep Power: 15
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.
sadjad.s and Mkalantar like this.
pfister is offline   Reply With Quote

Old   January 8, 2012, 14:58
Default Greate the a csv file
  #6
New Member
 
Athanasios Papadopoulos
Join Date: Jan 2012
Posts: 23
Rep Power: 14
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, 19:25
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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, 04:03
Default Transient Simulation
  #8
New Member
 
Athanasios Papadopoulos
Join Date: Jan 2012
Posts: 23
Rep Power: 14
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, 04:45
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Search google for CSV file format.
ghorrocks is offline   Reply With Quote

Old   June 10, 2022, 07:20
Default
  #10
New Member
 
Non-US/Non-Canadian
Join Date: May 2015
Posts: 6
Rep Power: 11
Mkalantar is on a distinguished road
Quote:
Originally Posted by pfister View Post
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.
Hi,
You mentioned :
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).

How I can define this expression?
I don't know how to couple my first raw (time) to second raw (velocity or pressure).

BR,
Mehrdad
Mkalantar is offline   Reply With Quote

Old   June 10, 2022, 07:24
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
pfister was describing an interpolation function. It does not use any expressions, just a table of values to interpolate from.

If you want to see how to use interpolation functions have a look at the CFX tutorials. Hopefully one of them will cover interpolation functions.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
boundary, profile, transient

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
Transient boundary conditions Dave FLUENT 5 October 30, 2011 08:58
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 21: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 07:15


All times are GMT -4. The time now is 05:17.