CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

modified version of timeVaryingMappedFixedValue BC for looping through data

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By syavash

LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2020, 10:06
Default modified version of timeVaryingMappedFixedValue BC for looping through data
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 445
Rep Power: 14
syavash is on a distinguished road
Hi Foamers,

I have created a modified version of timeVaryingMappedFixedValue BC which is useful when the inflow data are to be read using a loop-fashion.

Imagine there are 5 sampled time values:


Simulations typically start from 0 and proceed in time. In the original timeVaryingMappedFixedValue BC, if the physical time goes beyond the time 0.004, the inflow data thereafter would be read from the time instant of 0.004 alone. However, in many simulations, particularly in scale-resolved approaches such as LES or DNS, it is not good to have a constant inflow data.
An alternative would be to loop through the sampled times, which start from 0 in the example above. Of course, the original sampled data should provide a statistically converged solution in the first place.
The modified version of the original BC, entitled "loopedTimeVaryingMappedFixedValue" is developed to loop through the sampled time instants when past a user-provided threshold (timeLimit). It will be also useful for saving computational cost, as substantially fewer time instants would be required to be generated in the precursor calculations (half, 1/3, 1/4, ...).

The code has been written for OpenFOAM 2.3.0, but it will be straight forward to adapt it to the more recent versions of OpenFOAM.

Kiind regards,
Attached Files
File Type: zip (13.4 KB, 0 views)
Younes_Tatari and Honda like this.
syavash is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
simpleFoam convergence issue Harnoor OpenFOAM Running, Solving & CFD 13 November 16, 2016 08:23
modified OF version on HPC federicabi OpenFOAM Running, Solving & CFD 3 October 10, 2016 19:18
strange problem with data seav OpenFOAM Running, Solving & CFD 0 April 11, 2014 05:01
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41

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