|
[Sponsors] |
March 22, 2011, 05:55 |
CFX - Read file with values on a BC
|
#1 |
New Member
Join Date: Mar 2009
Posts: 19
Rep Power: 17 |
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 |
|
March 22, 2011, 07:49 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Put the values into a 1D interpolation function and use the output of that function to control the boundary condition.
|
|
March 22, 2011, 12:57 |
|
#3 |
New Member
Join Date: Mar 2009
Posts: 19
Rep Power: 17 |
the values are quite complex to be in a function.
any way of reading a file |
|
March 22, 2011, 14:48 |
|
#4 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
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.
__________________
- - - - - ------------------------------------------------------------------------ Please do not forget: I am not paid for answering your questions. Thousands of issues can cause a division by zero. Please do not capture a thread, with the argument: "I have the same issue ...." |
|
March 2, 2013, 23:51 |
|
#5 |
New Member
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
But this should be done every time step as the input velocity is changing with time.
|
|
March 3, 2013, 06:21 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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. |
|
Tags |
txt, ventilation, vfx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
CFX Batch file error: Unable to read the "Length Units" from the "SOLVER UNITS" objec | Saima | CFX | 2 | July 29, 2010 15:13 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
OpenFOAM Install Script | ljsh | OpenFOAM Installation | 82 | October 12, 2009 12:47 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |