CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   CFX - Read file with values on a BC (http://www.cfd-online.com/Forums/cfx/86405-cfx-read-file-values-bc.html)

kordou March 22, 2011 06:55

CFX - Read file with values on a BC
 
Hi,

I'd like to ask if anyone know how can i read txt file with values (for example wind velocity on an inlet) and apply this value on a bc (inlet for example) on each step of a transient simulation.

What i need to do is to simulate a ventilated facade for one day with different inlet velocities on every time step

thanks
Kordou

ghorrocks March 22, 2011 08:49

Put the values into a 1D interpolation function and use the output of that function to control the boundary condition.

kordou March 22, 2011 13:57

the values are quite complex to be in a function.
any way of reading a file

joey2007 March 22, 2011 15:48

Have a look into the manual: there is a way to export profiles from post. These profiles can be used in CFX-Pre as boundaries.

Export a dummy profile from post. The file is readable with editor. Just overwrite with your values in the same format.

amaly March 2, 2013 23:51

But this should be done every time step as the input velocity is changing with time.

ghorrocks March 3, 2013 06:21

I am not sure what the previous two posts are talking about, that does not seem relevant to the question.

If the 1D interpolation function is not suitable but you still want to read from a file then you will need to use a fortran user routine.


All times are GMT -4. The time now is 00:18.