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

CFX - Read file with values on a BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2011, 05:55
Question CFX - Read file with values on a BC
  #1
New Member
 
Join Date: Mar 2009
Posts: 19
Rep Power: 17
kordou is on a distinguished road
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
kordou is offline   Reply With Quote

Old   March 22, 2011, 07:49
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Put the values into a 1D interpolation function and use the output of that function to control the boundary condition.
ghorrocks is offline   Reply With Quote

Old   March 22, 2011, 12:57
Default
  #3
New Member
 
Join Date: Mar 2009
Posts: 19
Rep Power: 17
kordou is on a distinguished road
the values are quite complex to be in a function.
any way of reading a file
kordou is offline   Reply With Quote

Old   March 22, 2011, 14:48
Default
  #4
Senior Member
 
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17
joey2007 is on a distinguished road
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 ...."
joey2007 is offline   Reply With Quote

Old   March 2, 2013, 23:51
Default
  #5
New Member
 
Join Date: Mar 2013
Posts: 4
Rep Power: 13
amaly is on a distinguished road
But this should be done every time step as the input velocity is changing with time.
amaly is offline   Reply With Quote

Old   March 3, 2013, 06:21
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
txt, ventilation, vfx


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
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


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