CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   CFX - Read file with values on a BC (

kordou March 22, 2011 05:55

CFX - Read file with values on a BC

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


ghorrocks March 22, 2011 07: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 12:57

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

joey2007 March 22, 2011 14: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 12:11.