View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001581||OpenFOAM||[All Projects] Bug||public||2015-03-22 21:56||2015-03-29 19:56|
|Fixed in Version|
|Summary||0001581: Fatal IO error using TableFile type BC with pimpleFoam|
|Description||I have two cases which are exactly same except for the geometry, one is cylinder and the other is a box. One runs without errors and the other crashes due to an IO error. I can confirm that there are no apparent differences between the two cases. I spent a lot of time to make sure.|
The issue is with the format of the table file
A detailed explanation is given here with neat formatting which is not possible here. Check it out http://www.cfd-online.com/Forums/openfoam-solving/149213-time-varying-velocity-inlet-boundary-conditions-using-tablefile-h.html
|Steps To Reproduce||Here is the git repository to the case file https://github.com/pruthvi1991/OpenFOAM-bug-reporting/tree/master/TableFile_error|
Run the case named crashing case. This one crashes for me all the time
Run the case named successful case. This case runs without issue.
Use the Allrun.sh scripts to run a case.
|Additional Information||Make sure that you change the path to dataFile for topAndBottom, fixedInlet patches located in 0.org/include/topAndBottom,fixedInlet|
Here is the link to that file for one of the cases. https://github.com/pruthvi1991/OpenFOAM-bug-reporting/blob/master/TableFile_error/crashing_run/inertial_0.2Mach_NACA0012_1e-3_6procs/0.org/include/frontBackTopBottomPatches
The box case takes a little while to mesh.
|Tags||No tags attached.|
|I think this error is being caused because of using the same datafile for two boundaries. Looks like its necessary to have a file for every boundary with a time varying velocity. I was able to fix the error using a file for each and every boundary.|
The first issue is what you've already stated here: http://www.cfd-online.com/Forums/openfoam-solving/149213-time-varying-velocity-inlet-boundary-conditions-using-tablefile-h.html#post538784
Namely that the file "src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H" has a wrong description, because this:
0.0 (1 2 3)
1.0 (4 5 6)
is wrong and it should be:
(0.0 (1 2 3))
(1.0 (4 5 6))
I still need to check the second issue, namely if there is a problem with opening the same file twice.
@pruthvi1991: The second problem, namely the original report, doesn't exist. You had included the same file for the boundary settings "topAndBottom" for both the "U" and "p" fields. Therefore, it was a user error, not a bug.
Nonetheless, the description in the header file still needs to be updated, as indicated in the previous comment.
Thanks for the bug-report and correction.
Resolved by commit 3b4870d706d20ddec4bddd9e725e96e76e19ca9c
|2015-03-24 00:17||liuhuafei||Issue cloned: 0001584|
||Note Added: 0004500|
|2015-03-29 13:26||wyldckat||Note Added: 0004533|
|2015-03-29 13:41||wyldckat||Note Added: 0004534|
|2015-03-29 19:56||henry||Note Added: 0004541|
|2015-03-29 19:56||henry||Status||new => resolved|
|2015-03-29 19:56||henry||Resolution||open => fixed|
|2015-03-29 19:56||henry||Assigned To||=> henry|