CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Reading Boundary Condition from a File

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2014, 13:51
Default Reading Boundary Condition from a File
  #1
New Member
 
Shabir Mohamed
Join Date: Jun 2014
Posts: 20
Rep Power: 12
Shabirmean is on a distinguished road
Hi,

I have a case where I want the height and the velocities at the Inlet boundary to be read from a data file "EVERY TIME STEP".

The deltaT is "0.001". The simulation runs for only one(1) second.
Hence my datafile contains 1000 entries for height Data which needs to be read every timestep as the boundary condition at the Inlet.

I am using OF3.1extended. Can someone help me??

Is there a way to properly do this in OpenFOAM 3.1 and if so are there any tutorials or examples to see......

I came across something called timeVaryingFixedValue which interpolates the values I give. However I want something that can read everytime step!!!!

Please help.. It is an urgent need for my undergraduate research....
Shabirmean is offline   Reply With Quote

Old   December 13, 2014, 12:48
Default
  #2
Member
 
Florian Ries
Join Date: Feb 2014
Location: Darmstadt, Germany
Posts: 88
Rep Power: 12
itchy is on a distinguished road
Hi,

you can use timeVaryingFixedValue and choose the time step in controlDict equal to your deltaT of 0.001.

kind regards
Florian
itchy is offline   Reply With Quote

Old   December 13, 2014, 13:46
Default any examples
  #3
New Member
 
Shabir Mohamed
Join Date: Jun 2014
Posts: 20
Rep Power: 12
Shabirmean is on a distinguished road
Thank You

Can you please be descriptive about how the case should be set??
Are there any examples to refer?

Like other than the BC type what other fields are to be set and how the time directories need to be defined!!!
Shabirmean is offline   Reply With Quote

Reply

Tags
boundary condition, inlet boundary condition


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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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